View Single Post
Old Nov 8th, 2007, 7:43 AM   #2
Farflungfish
Newbie
 
Join Date: Nov 2007
Posts: 6
Rep Power: 0 Farflungfish is on a distinguished road
Re: .style.visibility = 'visible';

javascript Syntax (Toggle Plain Text)
  1. function toggle(DivId) {
  2. if (document.getElementById(DivId).className == "visible") {
  3. document.getElementById(DivId).className = "hidden";
  4. } else {
  5. document.getElementById(DivId).className = "visible";
  6. }
  7. }

Created css styles with display.block: false / true; names visible/hidden.
works with everything not just divs

sorry if im completely off topic
Farflungfish is offline   Reply With Quote