Welcome to WebmasterWorld Guest from 23.20.184.141

Forum Moderators: not2easy

Message Too Old, No Replies

How can you change the order graphics load in?

     

vis

2:21 pm on Feb 20, 2001 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 2, 2001
posts:146
votes: 0


I don't generally venture this far down in the webmaster forums...

Is it possible to specify the order in which graphics are downloaded on a web page. I am using several css boxes all with images in and I would like some images to load before others.

Is there a simple solution?

4:53 pm on Feb 20, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 24, 2000
posts:1748
votes: 5


Try preloading the images within in the head tags.
<script language="JavaScript">
<!--
image1=new Image(20,20)
image1.src=" imagename.gif"
image2=new Image(30,30)
image2.src=" imagename2.gif"
-->
</script>

Then add the "name" to image reference.
<img name="image1" src="imagename.gif" width="20" height="20">
<img name="image2" src="imagename2.gif" width="30" height="30">

vis

11:18 am on Feb 21, 2001 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 2, 2001
posts:146
votes: 0


Thanks,

A cut-and-paste solution that works like a charm.

Much obliged.