Go



Go is simple applet that creates a menu of different webpages and Go-button next to it. User select page from the menu, click Go-button and browser will open selected page. Go can also open selected page to totally new window or to any specified frame.

When mouse is moved over applet, browser status bar display selected link name and url. When mouse is moved over Go-button, mouse pointer change to hand-pointer as usually happens when mouse is moved over any link.

Remember that menu and button might have different size in different environments, so make applet big enough.



Parameters

Required parameters
Name Possible values Description
Title_1 String First item in choice-menu. If you leave this empty, 'URL_1' will be displayed in choice menu instead of empty title.
URL_1 Url-address
("http...", "mailto...", ...)
Pair of 'Title_1'-parameter. Defines which page will be opened when first choice-menu-item is selected. If this is empty, Go-button doesn't have any effect.
Additional parameters
Name Possible values Description
Title_X
(X=2,3,4...)
String X. item in choice-menu. You can add as many menu-items as you want.
URL_X
(X=2,3,4...)
Url-address Pair of 'Title_X'-parameter.
Target Frame or window name
(Html-names "_self", "_parent", "_top" and "_blank" will work also)
Specify where selected page will be opened. This is handy if you are using frames and want to open page to different frame or if you want to open page in new window.
Align "Left" or "Right" Put menu and button at left or right side of applet.
AppletBgColor Hex RGB-color Applet background color.
ChoiceBgColor Hex RGB-color Choice-menu background color.
ChoiceFgColor Hex RGB-color Choice-menu text color.
ButtonBgColor Hex RGB-color Button color.
ButtonFgColor Hex RGB-color Button text color.
ButtonText String Text in button.
Automatic (Anything) Makes menu more automatic. Now applet open new page immediate when user choose it from menu. (See examples below.)


Example

Example applet running Example applet HTML-code
Your browser can't run Java! <APPLET CODE="Go.class" WIDTH=250 HEIGHT=40>
<PARAM NAME="Title_1" VALUE="-- Select search engine --">
<PARAM NAME="URL_1" VALUE="">
<PARAM NAME="Title_2" VALUE="Kosmix">
<PARAM NAME="URL_2" VALUE="http://www.kosmix.com/">
<PARAM NAME="Title_3" VALUE="Google">
<PARAM NAME="URL_3" VALUE="http://www.google.com/">
<PARAM NAME="Title_4" VALUE="Altavista">
<PARAM NAME="URL_4" VALUE="http://www.altavista.com/">
<PARAM NAME="Title_5" VALUE="Yahoo">
<PARAM NAME="URL_5" VALUE="http://www.yahoo.com/">
<PARAM NAME="AppletBgColor" VALUE="CCCCCC">
Your browser can't run Java!
</APPLET>


Other examples

Your browser can't run Java! Your browser can't run Java!


Download

Go.class (4.852 bytes)




Back to "Free applets"-page

Back to "Java"-page



www.tiikoni.net/java/free/applets/go.php Full page map Copyright © Pasi Laaksonen