Please Help Me <img src="" alt="--My question --">

Discussion in 'JavaScript' started by strgraphics, Dec 3, 2010.

  1. #1
    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..
     
    strgraphics, Dec 3, 2010 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    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!
     
    rainborick, Dec 3, 2010 IP
  3. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Ya got you.. thanks my friend.
     
    strgraphics, Dec 4, 2010 IP