Admin DueLLoYöneticisi
Mesaj Sayısı : 928 Doğum tarihi : 06/07/90 Yaşı : 34 Nerden : Antalya İş/Hobiler : Webtasarım - Öğrenci Lakap : Site sahibi Rep Puanı : 735008
| Konu: Correct RollOver Button (ing) Cuma Ara. 04, 2009 7:50 pm | |
| - Kod:
-
<script type="text/javascript"> <!-- if(document.images) { var image_array = new Array(); // path to the directory with images var path = '/img/';
// enumeration of the "active" images image_array[0] = path + "button1_red.gif"; image_array[1] = path + "button2_red.gif"; image_array[2] = path + "button3_red.gif";
var preload_image = new Array (); for(var i=0; i<image_array.length; i++) { preload_image[i]= new Image(); preload_image[i].src = image_array[i]; } } //--> </script>
<a href="#" onmouseover="rollover('button1','button1_red.gif')" onmouseout="rollover('button1','button1_blue.gif')"><img src="/img/button1_blue.gif" name="button1" width="109" height="25" border="0"></a> <a href="#" onmouseover="rollover('button2','button2_red.gif')" onmouseout="rollover('button2','button2_blue.gif')"><img src="/img/button2_blue.gif" name="button2" width="109" height="25" border="0"></a> <a href="#" onmouseover="rollover('button3','button3_red.gif')" onmouseout="rollover('button3','button3_blue.gif')"><img src="/img/button3_blue.gif" name="button3" width="109" height="25" border="0"></a>
<script type="text/javascript"> <!-- function rollover(name, filename) { var fullpath = '/img/' + filename; document.images[name].src = fullpath; } //--> </script>
| |
|