I have an image declared in HTML as:
<img src="images/image_01.gif" id="man_img_file" width="400" height="300" alt="image_01" />
I'm changing the image through jQuery:
$('#man_img_file').attr('src', "images/image_02.gif");
Now I want to display a percentage progress bar while the image loads (ie. while the new src image loads through jQuery). How can this be achieved? Can it be done using the jQuery progressbar?
Note: The images are already in the server and I can get the image size through a PHP script prior loading it.
Thanks Laurence for sharing.