Hello,
I'm trying to toggle some layers using the layer.style.display = block/ layer.style.display=none method and it works fine in ever browser except Mac Opera, Mac/Windows Netscape 4.
I know these browsers handle layers differently and I've tried to use this method w/ no effect:
layer.style.visibility = 'visible'; layer.style.visibility = 'visible';
Here's the code I'm using that works in every browser:
thanks for any help you can give me.
Clem C
I'm trying to toggle some layers using the layer.style.display = block/ layer.style.display=none method and it works fine in ever browser except Mac Opera, Mac/Windows Netscape 4.
I know these browsers handle layers differently and I've tried to use this method w/ no effect:
layer.style.visibility = 'visible'; layer.style.visibility = 'visible';
Here's the code I'm using that works in every browser:
Code:
function toggle_layers( this_div )
{
doc = document.getElementsByTagName('div');
for( var i = 0; i < doc.length; i ++ )
{
if( this_div == doc[i].id )
{
doc[i].style.display = 'block';
}
else
{
doc[i].style.display = 'none';
}
}
thanks for any help you can give me.
Clem C