dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Loading screen for an image

  1. #1
    Join Date
    Dec 2005
    Location
    Turkiye
    Posts
    13

    Loading screen for an image

    Hello,

    i can make loading screens for text documents but, how can i make a loading screen for images (<img>) ?

    Thanks,
    azer

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    How are you doing it for text?

  3. #3
    Join Date
    Aug 2006
    Posts
    3
    are you looking to have an image on a page which displays something like "loading" then shows the image when it has completed loading?

    Set the visibility of the image to hidden then use the onload function of the IMG tag to set the visibility when the image has finished loading, and to hide your text message.

    snippet :
    <IMG
    SRC="images/animage.gif" ALT="loading image"
    onLoad="alert('image loaded')">
    this shows you roughly how the function works.

  4. #4
    Join Date
    Nov 2002
    Location
    Nashua, NH
    Posts
    3,195

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles