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
vitam
html question
Please go to website "clubcastropignano.com" on the left hand side please click on "event calendar" note nothing shows up. Please see if you can help me. And thank you in advance, Thank you so much.
sifan
Regarding filename extraction
I have created a browse button in html using
<input type="file" name="abc">. It provide full path of the file, now i want to extract the filename for comparison.
How to do that??
Thanks
khusbo
why codes are so difficult to read
all the programming and web design looked interesting to me so i looked up on it.
so if they are differnt can you explain to me why?
Maihan
Load External Page
HI,
I want to load external page into my website,
I want this http://acbar.org/job_search.php page appear as frame in my webpage,
any help will be really appreciated.
rival
Submit Button
I actually have two questions about a submit button for a feedback form. One, whenever I test my form and hit submit, it just opens my email software, in this case AOL. I need to know a way so that it automatically sends me the message. My other question is that do you know how to get that same submit button to open another page, say a thankyou page, and submit the message. Thank you, I hope you have the answer I am looking for. BTW, the code I am using is this: <form action="MAILTO:musikkreator35@gmail.com" method="post" enctype="text/plain"> --then my form stuff-- <input type="submit" value="Send" method="post">. Thanks!