|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
it works in IE but not in NS, how can it be fixed?
<a href="test.htm" span style="position:absolute; left: 47; top: 56;" onMouseover="document.all.picture1.style.visibility='visible'; document.all.picture2.style.visibility='visible'" onMouseout="document.all.picture1.style.visibility='hidden'; document.all.picture2.style.visibility='hidden'"> |
|
#2
|
|||
|
|||
|
first off, get rid of the inline style's, netscape barf's on these in my experience.
second, remove the "all." and "style." from your object references. Those are IE specific. third, try this code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <style type="text/css"> #picture1 {position:absolute; visibility:hidden; top:100px; left:100px; height:100px; width:100px; background-color:#94a4b1} #picture2 {position:absolute; visibility:hidden; top:200px; left:200px; height:100px; width:100px; background-color:#94a4b1} #div1 {position:absolute; left: 47; top: 56;} </style> <script language="javascript"> function changeImg(target,state){ eval("document." + target + ".visibility = " + "'" + state + "'") } </script> </head> <body> <div id="div1"><a href="javascript:void" onMouseover="document.picture1.visibility = 'visible'; document.picture2.visibility = 'visible'" onMouseout="document.picture1.visibility = 'hidden'; document.picture2.visibility = 'hidden')">shazzam</a></div> <div id="picture1">oooohhh</div> <div id="picture2">wwwweee</div> </body> </html> <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by daniza: it works in IE but not in NS, how can it be fixed? <a href="test.htm" span style="position:absolute; left: 47; top: 56;" onMouseover="document.all.picture1.style.visibility='visible'; document.all.picture2.style.visibility='visible'" onMouseout="document.all.picture1.style.visibility='hidden'; document.all.picture2.style.visibility='hidden'">[/quote] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > it works in IE but not in NS, how can it be fixed? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|