Orionsbelter Posted December 11, 2008 Share Posted December 11, 2008 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? Quote Link to comment Share on other sites More sharing options...
akitchin Posted December 11, 2008 Share Posted December 11, 2008 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. Quote Link to comment Share on other sites More sharing options...
phpSensei Posted December 11, 2008 Share Posted December 11, 2008 lol what? Quote Link to comment Share on other sites More sharing options...
akitchin Posted December 11, 2008 Share Posted December 11, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.