View Single Post
  #3 (permalink)  
Old 05-12-2005, 06:32 PM
tthurgo's Avatar
tthurgo tthurgo is offline
Moderator
 
Join Date: Jan 2002
Location: Lebanon, PA
Posts: 357
This is tough since it uses another function from dreamweaver (mm_findobj). So anyway, here is a piece of code that should work.

Code:
function show_hide_layer(the_layer){
  if(document.getElementById(the_layer).style.display == 'none'){
    document.getElementById(the_layer).style.display = 'inline';
  }else{
    document.getElementById(the_layer).style.display = 'none';
  }
}
Works for me in IE, Firefox, Safari and so on. Even Opera does it (I think! ).
__________________
Tom Thurgo
my future is coming on
Reply With Quote