Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modify Styles dynamically in Netscape

Status
Not open for further replies.

vulcand4

Programmer
Jul 29, 2003
76
US
I need the ability to modify the "display" style of a <tr> element depending on a certain event.

If an event occurs I need to make the display style="none" if another event occurs, I need to change the display style back to "block".

I figured out how to do it in IE, but Netscape just sits there. Is there a way to do this in Netscape?

- Greg
 
How do you do it in IE? First, use document.getElementById(element).style.display='none';

This will work in all latest versions. If it's an older version of NS, you'll need to use document.layers[element].style.display='none' (I think).

Greg.
 

In my experience, Netscape 6 has problems with this. Are you running v6? Or maybe an earlier version... something like v4? This would probably not have much support for the display property at all... But if you're running 7.x, then I'd normally expect it to work pretty well.

Can you post your code?

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top