19 users online (0 members and 19 guests)  


  Results 1 to 3 of 3

Related

  1. How to turn off magic quotes in PHP ?    Forum: PHP Forum
    Replies: 0
  2. Replies: 3
  3. Replies: 4
  4. Now it's my turn!    Forum: Myspace Forum
    Replies: 1
  1. #1
    ruffster's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    1

    A button array to turn them off and on - how?

    My page displays up to 10 buttons at a time.

    I turn them on or off using
    document.getElementById("butt1").style.display

    Some buttons must disappear for a time, and then
    these same buttons must reappear.

    How do I register into an array
    buttons that were previously on display,
    but now will be shut off,
    so I can traverse the array later to turn them back on?

    Thank you for your time.

  2. #2
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: A button array to turn them off and on - how?

    Could you please show us what you've got so far.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  3. #3
    crymari2's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    6

    Re: A button array to turn them off and on - how?

    Quote Originally Posted by ruffster View Post
    My page displays up to 10 buttons at a time.

    I turn them on or off using
    document.getElementById("butt1").style.display

    Some buttons must disappear for a time, and then
    these same buttons must reappear.

    How do I register into an array
    buttons that were previously on display,
    but now will be shut off,
    so I can traverse the array later to turn them back on?

    Thank you for your time.

    Just traverse ALL buttons, and check their 'style.display' property. Or even you can assign this property the needed value for all buttons irregarding of whether the button is hidden or not.



Tags for this Thread