Jump to content


Photo

hide/show


  • Please log in to reply
1 reply to this topic

#1 Shad

Shad
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 24 October 2006 - 09:02 PM

function showhide(name) {
var object = null;
object = document.getElementById(name);
if (object.style.display == "none") { object.style.display = ""; } else { object.style.display = "none"; }
}

why doesn't this work in firefox?

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 26 October 2006 - 05:11 PM

What doesn't work about it? Maybe you have to set it to block, not ''.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users