JavaJump

This Java applet presents a list of Web pages. The idea is that you select a page from the list and then click the Go! button to surf to that page.


To use this Java applet, follow these steps:
  1. Copy the JavaJump.class file to the same directory as your HTML file.

  2. Insert the following <APPLET> tag in your page (you may need to specify a larger width):

    <APPLET CODE="JavaJump.class" WIDTH=250 HEIGHT=32>

  3. Set the background color using the following <PARAM> tag:

    <PARAM NAME="bgcolor" VALUE="red,green,blue">

    Here, red, green, and blue are numbers between 0 and 255.

  4. Set the total number of pages in the list using the following <PARAM> tag (where total is the total number of pages):

    <PARAM NAME="pages" VALUE="total">

  5. Create a <PARAM> tag for each page you want to include in the list. Here's the general format to use:

    <PARAM NAME="urlx" VALUE="Name;URL">

    Here, x is the item number ("url1", "url2", etc.), Name is the name that appears in the list, and URL is the URL of the page.

Here's the code used in the example applet shown above:

<APPLET CODE="JavaJump.class" WIDTH=250 HEIGHT=32>
<PARAM NAME="bgcolor" VALUE="0,0,0">
<PARAM NAME="pages" VALUE="3">
<PARAM NAME="url1" VALUE="CIG to Creating a Web Page;http://www.mcfedries.com/books/cightml">
<PARAM NAME="url2" VALUE="Paul McFedries' Web Home;http://www.mcfedries.com/">
<PARAM NAME="url3" VALUE="Gamelan (Java Applets);http://www.gamelan.com/">
</APPLET>

Check out the Java source code.