Forum Moderators: open
I thought that if the browser downloads the images and rollovers once, that it shouldn't do it again. The browser seems to be re-downloaded all the images again each time I view another page within the template. It works fine in Firefox but in IE it keeps re-downloading as if each has been viewed for the first time.
I hate this. And I know my clients will see this as well. Is there a code that I can add to the page to tell the browser to download them once and stop re-downloading them each time I browse. Any help would be greatly appreciated.
I would need a simple to cut&paste to the page because I dont anything about Javascript or other programming languages.
[edited by: encyclo at 5:56 pm (utc) on June 23, 2006]
[edit reason] no links to personal sites please, see forum charter [/edit]
A simple image preload script would be something like this in the
head section of your page: <script type="text/javascript">
function imgpreload() {
var MyImg = new Image();
MyImg.src = "path/to/graphic.jpg";
}
</script> With the following on the opening
body tag: <body onload="imgpreload()"> You can get more information about preloading scripts in our JavaScript and AJAX forum [webmasterworld.com].