Thread: div

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    29
    Rep Power
    0
    Alright i have a simple question about the 'layering' with div tags.

    how do i make one disapper and reapear?
    <div id="1">
    division
    </div>
    something like
    document.1.visible = false; or something hehe

    i'm not sure about all this.. any help would be great

    Cisk

  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    ther are lots of ways - the simplest being:

    (for netscape 4+)
    document.divname.visibility = "show";//or "hide"

    (for ie 4/5)
    divname.style.visibility = "visible";//or "hidden"


    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Replies: 7
    Last Post: August 8th, 2014, 07:30 AM
  2. Replies: 4
    Last Post: March 25th, 2004, 06:30 PM
  3. variable content length and div bg sizing to fit page
    By mstrnicegui in forum HTML Programming
    Replies: 0
    Last Post: October 26th, 2003, 01:44 AM
  4. Replies: 1
    Last Post: September 1st, 2003, 01:52 AM
  5. div width/height problem
    By andyg.101 in forum HTML Programming
    Replies: 3
    Last Post: August 28th, 2003, 09:24 PM

IMN logo majestic logo threadwatch logo seochat tools logo