| La gestione delle Immagini con JavaScript | |||||||
|
Rigo : 1 |
2 |
3 |
4 |
5 |
6 |
7 |
|
|
<script language=javascript> <!-- Cache = new Image(); Cache.src="cicogna.gif"; ImageAtCache = new Image(); ImageAtCache.src="kissing.gif"; //--> </script> 1) <img src=cicogna.gif width=16 name=storkTris> 2) <img name=stork width=23> 3) <img name=NomeImmagine1 width=28> 4) <img name=NomeImmagine2 width=36> 5) <img name=storkBis width=23> 6) <img name=X width=26> 7) <img name=Y width=38> |
<script language=javascript> <!-- stork.src=Cache.src; NomeImmagine1.src=ImageAtCache.src; NomeImmagine2.src=ImageAtCache.src; storkBis.src=Cache.src; document.X.src=Cache.src; document.Y.src=storkTris.src; //--> </script> Ricordarsi che l'ordine in cui si scrive il codice é fondamentale per una corretta implementazione delle immagini.
|