16 Replies Latest reply on Jan 8, 2008 5:13 PM by kglad

    Using variables to simplify my code


      I need to simplify my code for the use of multiple buttons..

      As you can see in my code, there is a lot of lines that repeats...I know I should use variables or something like that but I'm really not a programmer so if anybody could help me with this...
      In my test, I'm using 6 buttons but for the real project, threre will be around 36 buttons..

      How do I change btn1, btn2, btn3...., page1.html, page2.html, page3.html....etc to variables? And what will be the code on the buttons to change these variables??

      Thanks a lot in advance...(and sorry for my english!)