roll over images

liunx

Guest
IS it possible if i have roll over buttons to make the roll over images load when the web page is loading....so when someone does rollover my button the image loads straight away for the modem users ...e.g the way flash loads everthing first ....Another example I have seen is when u go to a site that has picture agallerys and u click on a thum nail and the larger version loads really quick because it was preloaded with the webpage.......thanks<!--content-->This goes in the <head> section <br />
<br />
function preload() {<br />
if (document.images) { // Checks to make sure browser supports the image array<br />
imgA = new Image; imgA.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"images/imageA.gif";<br />
imgB = new Image; imgB.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"images/imageB.gif";<br />
imgC = new Image; imgC.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"images/imageC.gif";<br />
imgD = new Image; imgD.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"images/imageD.gif";<br />
}<br />
}<br />
<br />
<body.... onLoad="preload()"><br />
<br />
Allows the page to load, and be visible to users, then loads the rollover images.<!--content-->
 
Back
Top