Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load Images Last?

Status
Not open for further replies.

JavaTurkey

Technical User
Dec 24, 2001
42
US
How do you do it? I need all the text to appear, and then the images and javascripts. Any ideas? Thanks...
 
You could do the following to make the images load after everything else..
Code:
<body>
<img src=&quot;blank.bmp&quot; name=&quot;a&quot;>
<img src=&quot;blank.bmp&quot; name=&quot;b&quot;>
<img src=&quot;blank.bmp&quot; name=&quot;c&quot;>
</body>

<script>
<!--
onload = loadImages;

function loadImages() {
	a.src = &quot;yourimage.jpg&quot;;
	b.src = &quot;anotherimage.jpg&quot;;
	c.src = &quot;finalimage.jpg&quot;;
}
//-->
</script>
Am I close? ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top