javascript issue with NN 6.2
by "Kim G" <kgws(at)kgwebsolutions.com>
|
Date: |
Mon, 26 Nov 2001 11:26:01 -0800 |
To: |
"hwg techniques" <hwg-techniques(at)hwg.org> |
|
todo: View
Thread,
Original
|
|
hello everyone,
i hope someone can help me with an issue i am having with layers in the new
netscape version. the code works in older netscape versions and in IE but
not NN 6.2. basically i have in the head portion a link to my stylesheet
with visibility:hidden and the following script:
<.script language="javascript" type="text/javascript"><!--
function show(object) {
if (document.layers && document.layers[object] != null)
document.layers[object].visibility = 'visible';
else if (document.all)
document.all[object].style.visibility = 'visible';
}
function hide(object) {
if (document.layers && document.layers[object] != null)
document.layers[object].visibility = 'hidden';
else if (document.all)
document.all[object].style.visibility = 'hidden';
}
//--><./script>
and in the body:
<.a href="page.html" onMouseover="show('stext')"
onMouseout="hide('stext')"><.img src="pic.jpg" width="200" height="50"
border="0"><./a>
<.br>
<.div id="stext" class="special">
A bunch of hidden text here.
<./div>
can someone please help with why the newest version won't work with this?
i've simplified the code as you'll notice,
tyia
kim
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA