|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Loading Images?
in HTML, is there any way to load images that aren't displayed on the screen when the page is loaded. I want to have some roll over images on the site, and sometimes it lags when you rollover the first time, due to the computer having to download the image.
|
|
#2
|
|||||
|
|||||
|
Re: Loading Images?
Code:
<div style="display:none;"> (images go here) </div> |
|
#3
|
|||
|
|||
|
Re: Loading Images?
ok im not completely understanding that.
so thats how you would load them? but then how would you refrence that in a later portion of the site? |
|
#4
|
||||||
|
||||||
|
Re: Loading Images?
He's using some CSS which would download the images, but not display them. In the section where it says, images go here, you would put <img> tags for each of the images. The browser would download them as part of loading the page, and when you go to rollover the images, they would already be downloaded, and display instantly. This solution wouldn't require any changes to your rollover script.
If you want to do it completely in javascript, have a look at some of the scripts over at hotscripts.com: http://www.hotscripts.com/JavaScript...ges/index.html |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NASA Mars Landing Rover -- Spirit | geo | NASA Discussion | 36 | 06-01-2004 15:43 |
| Custom Listen-to Images | Jeff Rodriguez | Chit-Chat | 0 | 06-06-2003 00:42 |
| Pictures not loading | sanddrag | CD Forum Support | 32 | 11-10-2002 01:55 |