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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting the order that graphics get loaded/displayed?

Status
Not open for further replies.

taval

Programmer
Jul 19, 2000
192
GB
my subject basically says it all, I was wondering how on my web page I make graphics like the title, buttons get load before the actual content. Is there a way of doing this?

my site is located at
and as you can see the graphics load in any order. I want the title to load first then the buttons one by one and then the other content.

Grateful for any help. [sig][/sig]
 
This should do it:

Code:
<head>
<title>your site</title>

<script>
var image1 = new Image(); image1.src = &quot;image1.gif&quot;;
var image2 = new Image(); image2.src = &quot;images/image2.jpg&quot;;
</script>

</head>

Then when you load
Code:
<img src=&quot;image1.gif&quot;>
or
Code:
<img src=&quot;images/image2.jpg&quot;>
, it should be already cached on the user's computer. [sig]<p> Sincerely,<br><a href=mailto: > </a><br><a href= Anderson</a><br>CEO, Order amid Chaos, Inc.<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top