|
How to make multi-link jump boxes.
These little guys are actually pretty easy to make. First you'll need a few target documents. Save this as here.html (Windows 3.x users save it as here.htm)... <HTML>
Save this as there.html... <HTML>
And this as anywhere.html... <HTML>
Next we'll work on the jump box. Save this as index.html... <HTML>
Add the function to the <HEAD> tag. <HTML>
<SCRIPT LANGUAGE="JavaScript">
</HEAD>
Now build the jump box. Start with a couple form tags... <HTML>
<SCRIPT LANGUAGE="JavaScript">
</HEAD>
<FORM>
</BODY>
Add a drop down list... <HTML>
<SCRIPT LANGUAGE="JavaScript">
</HEAD>
<FORM>
</BODY>
Here, There & Anywhere are just labels,
that is, they just specify what the drop box says. here.html,
there.html & anywhere.html are the values.
That is what gets passed to the function.
Lastly, add the button... <HTML>
<SCRIPT LANGUAGE="JavaScript">
</HEAD>
<FORM>
</BODY>
The value "Go" is what the button says. This can be
anything you want.
Wasn't that a piece of cake! There's one more thing we can do with this. What if you wanted this to work within frames?? That is, a jump box in one frame altering the contents of another. Well, that's pretty easy too. All you do is add to the function like so... <SCRIPT LANGUAGE="JavaScript">
main_frame being the name of the target frame. And that's that for that!
|