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

Controlling Appearance/Loading

Status
Not open for further replies.

TheConeHead

Programmer
Joined
Aug 14, 2002
Messages
2,106
Location
US
What I want to do is have a bg image load and display and then having NOTHING else display until it is all loaded and ready to be shown at once... how?
 
you could use javascript to preload your image (so this is probably the wrong forum for me to post this). Try a script something like the following:

<HTML>
<HEAD>
<script language=&quot;Javascript&quot;>
var myimages=new Array();
function preloadimages()
{
for (i=0;i<preloadimages.arguments.length;i++) {
myimages=new Image();
myimages.src=preloadimages.arguments;
}
}
preloadimages(&quot;$imagepath/$image.gif&quot;)
</script>
</HEAD>

<BODY>
<FORM>
<IMG src=&quot;/$imagepath/$image.gif&quot;></IMG>
<TD> does this load first?</TD>
</FORM>
</BODY>
</HTML>

let me know how you get on...

Joe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top