Applets by JObjects.net

 
   
Fugazi Consulting Ltd

   Combo Box Hyperlink Menu

Features

Use the drop down combo box to present any number of web pages.  When the user makes a selection, they are instantly transported to a URL of your choice !  A nice simple, tidy menu system.  Very small (3k)

Demonstration


HTML Example

<APPLET CODE="jonetComboLink.class" WIDTH=250 HEIGHT=40>
<PARAM NAME="target" VALUE="_top">
<PARAM NAME="bgColor" VALUE="white">
<PARAM NAME="number" VALUE="4">
<PARAM NAME="link0" VALUE="Select a Link\\not a link">
<PARAM NAME="link1" VALUE="Java (TM)Objects\\http://www.javaobjects.net/">
<PARAM NAME="link2" VALUE="JPowered\\http://www.jpowered.com">
<PARAM NAME="link3" VALUE="TrafficFile\\http://www.trafficfile.com">
<PARAM NAME="link4" VALUE="Fugazi\\http://www.fugazi.co.uk/">
</APPLET>

Installation and Configuration

Download the class file.  Use the "Buy Now" button above.

Copy the above code (in bold) into your HTML (note, not the content) of your web page, then copy the class file into the same directory.

You may wish to adjust the WIDTH and/or HEIGHT to suit your web page.  The combo box will auto adjust to the length of the entries you supply.

You can have as many choices on your menu as you like, by including extra link lines, like this.  Note the \\ (double backslash) between the displayed name ("Yahoo") and the URL which the applet will jump to ("http://www.yahoo.com").  This MUST be included.

<PARAM NAME="link5" VALUE="Yahoo\\http://www.yahoo.com/">

Ensure that the numbering system continues, i.e. link5, link6 and so on.  You may remove the links I've shown for demonstration purposes.  Change the "number" parameter to reflect the new number of links you have (excluding the default, '0' link of "Select a Link"). e.g.

<PARAM NAME="number" VALUE="5">

Would mean you have parameters link0 through link5 inclusive.

Valid colors are : red, blue, green, yellow, white, orange, cyan, magenta, black or a RGB color of your choice.  If you wish to specify a RGB color, replace the color "white" with the RGB values separated by commas e.g. "10,100,200"

Note that the URL you specify can be absolute or relational.  For example, you could specify a full URL as follows :

<PARAM NAME="link5" VALUE="Yahoo\\http://www.yahoo.com/">

Or you could specify the name of a document or web page in the same folder on your server as the applet :

<PARAM NAME="link5" VALUE="Yahoo\\another_page.html">

Or you could specify the name of a document buried in subfolders :

<PARAM NAME="link5" VALUE="Yahoo\\folder1/docs.html">

The target frame can be specified as either _top _self _parent or _blank.  For example _top opens the target page in the current window.  _blank will open the target page in a new window.

 
 

[home]   [products]   [site map]   [license information]   [support]   [links]

Buy and Download

from only $9.99 !

Support

Having problems ?  Can't get it to work ? Confused ? We're here to help !  Click here for our Support Page

[Java (TM) Trademark Disclaimer - click here]
Java and all Java-based marks are a trademark or registered trademark of Sun Microsystems, Inc, in the United States and other countries.

[Copyright © 1997 - 2004 Fugazi Consulting Limited - All rights reserved. ]

 
 

TrafficFile :

  • Want to know who's visiting your site ?  For everything from a free feature rich hit counter to Advanced Web Site and Visitor Tracking, click here

    Web Hosting :

    • Are you looking for a better web hosting company ? Superb web hosting at a Superb price, click here 

      Recommended Links :

      • After Graphs and Charts ? MANMAN development ? For further information click here
      • Learning Web Development ? JScript ? Indispensable books we recommend can be found here