Results 1 to 6 of 6

Thread: image loading?

  1. #1

    Thread Starter
    Addicted Member herpysz's Avatar
    Join Date
    Mar 2002
    Location
    Europe>Moldova>Kishinev
    Posts
    176

    image loading?

    Is it possible to make image to be loaded by some order or index???

    exemple: the smallest imge are loaded first, then large images...than the middle one???

    thanks!
    Next regards from Herpysz!

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    No. The browser loads the images. HTML works top-down.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    you can put it in a javascript which lets the next image load when the one before is loaded..

  4. #4

    Thread Starter
    Addicted Member herpysz's Avatar
    Join Date
    Mar 2002
    Location
    Europe>Moldova>Kishinev
    Posts
    176

    how?

    Originally posted by bekkel
    you can put it in a javascript which lets the next image load when the one before is loaded..
    Please tell me how to do that? javascript or vbscript!
    Next regards from Herpysz!

  5. #5
    Addicted Member
    Join Date
    Jul 2002
    Location
    Brussels, Belgium
    Posts
    139
    use the onload event of the <img> tag


    <HTML>
    <HEAD>
    <script>
    function loadImage(strEl,strLink)
    {
    window.document.all('im'+strEl).src = strLink
    }
    </script>
    </HEAD>
    <BODY>

    <img name=im1 id=im1 src="http://www.microsoft.com/library/homepage/images/2003/ts_April042003teched.jpg" onload="loadImage(2,'http://www.microsoft.com/homepage/gif/brands.gif')">
    <img name=im2 id=im2 onload="loadImage(3,'http://www.microsoft.com/homepage/gif/artBiz5.gif')">
    <img name=im3 id=im3 onload="loadImage(4,'http://www.microsoft.com/homepage/gif/artTech5.gif')">
    <img name=im4 id=im4>

    </BODY>
    </HTML>

  6. #6
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96

    Thumbs up

    ^^
    | |

Posting Permissions

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



Click Here to Expand Forum to Full Width