Jump to content


Photo

Showing/Hiding parts of layout


  • Please log in to reply
2 replies to this topic

#1 ReVeR

ReVeR
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 25 June 2006 - 07:12 PM

Hello.
How can i show/hide parts of the layout with javescript?
Say, i have a <div id="hideme">HIde me test </div>
How cna i show and hide that with javascript?
Thx

#2 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 25 June 2006 - 08:19 PM

You should look into some AJAX stuff. You can do a collapse and expand (like gmail) with it. There are a bunch of tutorials out there that are simple and easy to follow.

#3 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 26 June 2006 - 04:40 PM

the easiest way for something like this
<div id="hideme">HIde me test </div>
is
// hidding div
document.getElementById('hideme').style.display = "none";

//showing div
document.getElementById('hideme').style.display = "block";

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users