"Transporter"
Part 1 - The Button
|
|
Relax - you're half way there!
|
Part ThreeScripting- Making it all Work
|
tag.
Select "Tools", "Script Wizard" This opens up a window interface containing three parts: the Event window, the Action window and the Events Schuduled window.
In the Event window you will see: an icon labeled window, a little box icon labled commandbutton1(or whatever you named your command button) and a little box icon labled "textbox1"(or the name of your text box). Click open the commandbutton icon.
A list of actions should appear directly under the commandbutton icon. Select the "click" option.
Now look at the Action window. Choose the "Go to Page" option. Enter the url for the page you want to go to from the button. (example: www.somewhere.else/this-page.htm) This action will now appear in the Events Schuduled window.
Select "click" again in the Event window.
Choose the "commandbutton1" icon in the Action window. Click on backcolor. Change it to a different color. This will appear in the Events Schuduled window. When the button is clicked, it will not only send the browser to a different page, but it will also change it's background color.
At this point, you can continue to change properties of the commandbutton, such as font, font color, etc. ( The catch is you had to have chosen to include the specific property you want to change when you created the object. You can go back and re- edit the object, if you need to).
Now, once again choose the "commandbutton" in the Event window. Select "click".
In the Action window, choose the "textbox". Again you can select the properties you want to change: backcolor, font, font color, special effects, and even the displayed text.(One action at a time.) These will write to the Events Schuduled window.
Continue to select "click" and "textbox" properties until you have made all the changes you want to happen when the "button" is clicked.
Choose "ok" and the "wizard" will write the script to your html file.
Now you can test it in your browser to see how it works.
At this point, you can save the file as a templete for later use and just edit the "param" to customize it, then copy and paste into any html file.
Take a deep breath! ---You're done!