Jump to content

I WANT TO LOAD IMAGE IN THE BACKGROUND BEFORE THEY VIEW IT


Orionsbelter

Recommended Posts

ok, its there any coding which i can use to load an image in the background, because i have a roll over image

 

<img src="registerl.png" alt="Register Button" border="0"  onmouseover="this.src='registerl-over.png';" onmouseout="this.src='registerl.png';"/>

 

and when they roll over it take long to load i want it to be instant so is there anyway of loading in when the page is first viewed?

THIS IS NOT A PHP QUESTION, AND THEREFORE I AM MOVING THIS TO THE JAVASCRIPT FORUM. IF YOU GOOGLE "JAVASCRIPT IMAGE ROLLOVER," MOST OF THE EXAMPLE SCRIPTS HAVE PRE-LOADING FEATURES IN THEM, ALTHOUGH I'VE NEVER CONSCIOUSLY NOTICED THEM WORKING VERY WELL.

ok, its there any coding which i can use to load an image in the background, because i have a roll over image

 

<img src="registerl.png" alt="Register Button" border="0"  onmouseover="this.src='registerl-over.png';" onmouseout="this.src='registerl.png';"/>

 

and when they roll over it take long to load i want it to be instant so is there anyway of loading in when the page is first viewed?

 

google "javascript preload image rollover"

 

it's a fascinating internet.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.