Q. fast Images loading

In order to preload images, just add this code after your </head> command:

<SCRIPT LANGUAGE="JavaScript">
<!-- hide from none JavaScript Browsers

Image1 = new Image(25,30)
Image1.src = "image1.gif"

Image2 = new Image(25,30)
Image2.src = "image2.gif"

Image3 = new Image(25,30)
Image3.src = "image3.gif"

// End Hiding -->
</SCRIPT>  


(25,30) should be replaced by the width and height of your image, and image1.gif, image2.gif and so on should be replaced with the names of your images.  You can add more if you have more images to preload.

I would recommend using this...it works really well, and the lowsrc tag only works in Netscape, which most people don't use.

--------------------------
Answer:- In order to preload images, just add this code after your </head> command:

<SCRIPT LANGUAGE="JavaScript">
<!-- hide from none JavaScript Browsers

Image1 = new Image(25,30)
Image1.src = "image1.gif"

Image2 = new Image(25,30)
Image2.src = "image2.gif"

Image3 = new Image(25,30)
Image3.src = "image3.gif"

// End Hiding -->
</SCRIPT>  


(25,30) should be replaced by the width and height of your image, and image1.gif, image2.gif and so on should be replaced with the names of your images.  You can add more if you have more images to preload.

I would recommend using this...it works really well, and the lowsrc tag only works in Netscape, which most people don't use.

Related Questions