Actually i used to write text in the alt attrubute..., but now my requirement is i need to display some loading.., image before load the original into the browser.. <img scr="image.gif" alt="NEED TO DISPLAY SOME IMAGE.."> Would be helpful to your help..
You can change the value of the .src property on image objects, so you could replace that value to a "loading" message images as your intended images load by testing the .complete property with a setTimeout() function. I thought about writing some example code, but I felt it was better to avoid the issue in the first place. Just make your pages load faster by optimizing all of your images, using thumbnails for large images and creating pop-up windows that show them full size, and limiting the number of images displayed on each page as needed. Good luck!