Jackal Posted October 13, 2007 Report Posted October 13, 2007 function rollover(img_name, img_src){ document[img_name].src = img_src; } <li><a href="index.php?id=5" onmouseover="rollover('id5', 'css/images/menu_5r.gif')" onmouseout="rollover('id5', 'css/images/menu_5.gif')"><img id="id5" src="css/images/menu_5.gif" /></a></li> Esmu vairākas reizes pārbaudijis arī iztīrijis cache, bet uz IE un Operas neiet. Kas varētu būt par problēmu? Firebug errorus arī neparāda.
Vebers Posted October 13, 2007 Report Posted October 13, 2007 (edited) Tādā veidā vari nemaz nebrīnīties, ka uz citiem browseriem nestrādā! function rollover(img_name, img_src){ document.getElementById(img_name).src = img_src; } Edited October 13, 2007 by MakaTaNaw
Recommended Posts