3 panels 1 button

Results 1 to 2 of 2

Thread: 3 panels 1 button

  1. #1
    Join Date
    Dec 1969

    Default 3 panels 1 button

    I want to use 1 button to go through 3 panels. I got stuck cause I have only one button_click sub. I guess I&#039;ll have to add a if statement to handle if the button_click is for panel 1 or panel 2 ?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: 3 panels 1 button

    To make things even quicker, you don&#039;t even need to go back to the server. Load all the panels and just change the visibility in javascript when the button is pressed.<BR><BR>So in the javascript onclick method for the button, you would just do something like:<BR><BR>if PanelID1.style.visibility == &#039;hidden&#039; {<BR>PanelID1.style.visibility = &#039;visible&#039;;<BR>PanelID2.style.visibili ty = &#039;hidden&#039;;<BR>PanelID3.style.visibilit y = &#039;hidden&#039;;<BR>}<BR>return false;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts