![]() |
|
|
|
|
|||||||
| Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I make script to pre-load the images stored in my hosting? In this way the visitors will be able to open instantly the full sized image when clicked.
|
|
#2
|
||||
|
||||
|
The easiest way is to load and remove them when visitors open your page so the images will be stored in the browser cache. Here's how it is implemented. Load the images in a 'div' tag and remove them with JavaScript when page is loaded.
Part with the div: HTML Code:
<div id='remove'> <img src='imge1.jpg' alt='' /> <img src='imge2.jpg' alt='' /> </div> HTML Code:
window.onload = removeIMG;
function removeIMG(){
document.getElementByID("remove").style.display = "none";
}
|
|
#3
|
|||
|
|||
|
Default Re: please check my site
Thanks for the suggestion, I wish it had worked.
__________________
Watch The Crazies Online Free |
![]() |
| Tags |
| hosting, images, instantly, opening, stored |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|