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!
Printable View
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!
No. The browser loads the images. HTML works top-down.
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!Quote:
Originally posted by bekkel
you can put it in a javascript which lets the next image load when the one before is loaded..
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>
^^
| |