..


Sponsored Links

How do I pre-load (preload) picture?

You must fill in the header of your page (<head> ...</ head>) the following code:

 



 <script type="text/javascript">







 miaImg = new Image ();







 miaImg.src = 'nuova_immagine.jpg';

 





 </ Script>

 
doing so the image will be saved in the browser cache and can be invoked with extreme speed in any dynamic operations (such as a rollover) made with Javascript.

On the topic of interest might be reading this article .

In the same category ...
E-Learning
CSS (Course) CSS (Course)
Web Design and Accessibility according to W3C CSS and XHTML. Starting from 29 €.
HTML (Course) HTML (Course)
The markup language for the Web from 29 €.
Javascript (Course) Javascript (Course)
Complete guide to client-side scripting. From 39 €.
Sponsored Links