Feedback on: irt.org FAQ Knowledge Base Q1191
Worth:
Not worth reading
Comments:
Hi:
This solution did not work for me with Netscape Communicator version 4.08:
function hide(object)
{ alert("0");
if (document.layers && document.layers[object])
{ alert("1");
document.layers[object].visibility = 'hidden';
}
else if (document.all)
{ alert("2");
document.all[object].style.visibility = 'hidden';
}
}
<style type="text/css"></style>
<select name=checkit ONCHANGE="hide('sh1')">
<option value=job1>Visible</option>
<option value=job2>Hidden</option>
</select>
<div id="sh1" class="myLayersClass" >
<table>...
My alerts in the hide() only got to the "0". Can you please offer suggestions on how I can make this work?
Thank you,
Alex Enk
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
This solution no longer works for NN 7.0. Apparently they removed the document.layers object.
I tried to use the getElementById(object).style.visibility instead but for some reason this isn't working either.