Example 5
Adding URL functionality.

In this example we add a hyperlink to the first button on the menu (button1). The url will be our home page and we will set the target frame to jpowered. Upon clicking item 1 our home page will then open in a new browser window.

And here is the html code,

<applet code="AWTpopupVmenuApplet.class" archive="AWTpopupSidemenu.jar" width="120" height="90" mayscript>

<!-- Start Up Parameters -->
<param name="startupmessage" value="Loading data please wait....">
<param name="startBGcolor" value="255,255,255">
<param name="startTXTcolor" value="0,0,0">

<!-- General Applet Parameters -->
<param name="OpenOnClick" value="false">
<param name="BackgroundSound" value="bgsound">

<!-- Root Menu parameters -->
<param name="rootButtonWidth" value="120"> <!-- button width -->
<param name="rootButtonHeight" value="30"> <!-- button height -->
<param name="rootGap" value="0"> <!-- gap between buttons -->
<param name="rootBorderEffect" value="1"> <!-- Border Effect -->
<param name="rootMouseoverEffect" value="2"> <!-- Border Effect mouseover -->
<param name="rootMouseclickEffect" value="2"> <!-- Border Effect mouseclick -->

<!-- Root Menu Button data -->
<!-- Text | Sub ID | Font | url | target | Background Color | Arrow Color | Mouseover Background Color | Mouseover text color | Mouseclick Background Color | Mouseclick text color | Image | mouseover image | mouseclick image | image position | text position | text color | sub menu open sound effect | button click sound effect | status message text -->
<param name="button1" value="Button One| |Helvetica,N,12|http://www.jpowered.com/|jpowered |57,156,255|0,64,128|0,97,193|170,213,255|0,97,193|170,213,255|home|home2| |3,3|30,20|0,64,128| | | ">
<param name="button2" value="Button Two|submenu|Helvetica,N,12| | |57,156,255|0,64,128|0,97,193|170,213,255|0,97,193|170,213,255|online|online2| |3,3|30,20|0,64,128| | | ">
<param name="button3" value="Button Three| |Helvetica,N,12| | |57,156,255|0,64,128|0,97,193|170,213,255|0,97,193|170,213,255|select|select2| |3,3|30,20|0,64,128| | | ">

<!-- Sub Menu definitions -->
<!-- Menu ID | Font -->
<param name="menu1" value="submenu|Hevetica,N,12">
<param name="menu2" value="submenu2|Hevetica,N,12">

<!-- Sub Menu Item definitions -->
<!-- menu ID | Text | Submenu ID | Seperator | URL | Target | Audio Clip ID -->
<param name="item1" value="submenu|Item One| |false| | | ">
<param name="item2" value="submenu|Item Two|submenu2|false| | | ">
<param name="item3" value="submenu2|Item Three| |true| | | ">
<param name="item4" value="submenu2|Item Four| |false| | | ">
<param name="item5" value="submenu2|Item Five| |false| | | ">

<!-- Images -->
<param name="image1" value="home|./IconImages/home.gif">
<param name="image2" value="home2|./IconImages/home2.gif">
<param name="image3" value="online|./IconImages/online.gif">
<param name="image4" value="online2|./IconImages/online2.gif">
<param name="image5" value="select|./IconImages/select.gif">
<param name="image6" value="select2|./IconImages/select2.gif">

</applet>

 

Click Here for Example 6