Hi : )
I am trying to load a image X when I mouse over Y. Actually the code bellow do this, but this is getting a annoying flick. I tried to work with z-index but without success. Is someone has some light, please let me know.
Code and test images bellow.
And the image link become unuseful.Code:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Link 1</title> <script language="Javascript"> <!-- function toggleDiv(id,flagit) { if (flagit=="1"){ if (document.layers) document.layers[''+id+''].visibility = "show" else if (document.all) document.all[''+id+''].style.visibility = "visible" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible" } else if (flagit=="0"){ if (document.layers) document.layers[''+id+''].visibility = "hide" else if (document.all) document.all[''+id+''].style.visibility = "hidden" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden" } } //--> </script> <style type="text/css">#div1, #div2, #div3 {position:absolute; top: 0; left: 0; z-index: 0; width:200; visibility:hidden}</style> </head> <body> <a onMouseOver="toggleDiv('div1',1)" onMouseOut="toggleDiv('div1',0)" target="_blank" href="http://www.google.com"><img border="0" src="page_edit.gif"></a><div id="div1"><img border="0" src="bartest.gif"></div> </body> </html>
If you have some ideias in how to do this in a different way, please let me know ^^
Thanks for any info. : )






