Click to See Complete Forum and Search --> : Preload Image Script


asamuelsen
12-29-2002, 12:59 AM
In the preload image script, do I make the source of the image link to the image on the page or do I need to link the image in the Images folder?

Script is between head tags on file "Index.html"

<head><script language="JavaScript">
<!--

image1 = new Image();
image1.src = "blahblahblah.jpg";

//-->
</script></head>

!!!-----OR-----!!!

<head><script language="JavaScript">
<!--

image1 = new Image();
image1.src = "Images/blahblahblah.jpg";

//-->
</script></head>

Thanks in advance,

asamuelsen@attbi.com

Rick Bull
12-29-2002, 05:45 AM
Make it to whereever the image is location on your server, so if I understand you right you want the second one.

asamuelsen
12-29-2002, 01:37 PM
Awesome, thanks alot. Andy