Learn java Yourself

Text Menu Applet


This applet has won the  prize(04/09/98)
Hi everyone. You are looking at the most VERSATILE menu applet, and the best thing is that you can can create quickly and easily url menus, either Horizontal or Vertical, WITHOUT creating images. The combinations as you will see in these examples are countless. When the mouse is over text then it can change it's font color, font size, font style and background color. Text Menu supports center, left and right alignment. Also now (19/09/98) textmenu has a parameter called sticky(see example 2), like my image menu applet.
Vertical Examples:

Example 1


When the mouse is over text, it's fontsize, font color, font style and background color change

This is the code used for the above applet:
<APPLET CODE=TextMenu.class WIDTH=150 HEIGHT=70>
<param name="TextToDisplay" value="Java Boutique;Java News;Java FAQs;Java Sun">
<param name="URLtoDisplay" value="http://javaboutique.internet.com;http://javaboutique.internet.com/jbnews.html;http://javaboutique.internet.com/javafaqs.html;http://java.sun.com>
<param name="Target" value="_blank;_blank;_blank">
<param name="Position" value="Vertical">
<param name="FontSize" value="16">
<param name="FontSize2" value="20">
<param name="bgCOLOR1" value="240,240,200">
<param name="bgCOLOR2" value="0,0,255">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,255,0">
<param name="FontStyle" value="BOLD">
<param name="FontStyle2" value="BOLDandITALIC">
<param name="FontName" value="TimesRoman">
<param name="Alignment" value="CENTER">
<param name="Author" value="George Eleftheriou">
<param name="Email" value="gele@egnatia.ee.auth.gr">
Your browser doesn't support java or java is not enabled!
</APPLET>


Example 2


When the mouse is over text, it's fontsize and font color change. This example has also sticky value=yes.

This is the code used for the above applet:
<APPLET CODE=TextMenu.class WIDTH=150 HEIGHT=70>
<param name="TextToDisplay" value="Java Boutique;Java News;Java FAQs">
<param name="URLtoDisplay" value="http://javaboutique.internet.com;http://javaboutique.internet.com/jbnews.html;http://javaboutique.internet.com/javafaqs.html>
<param name="Target" value="_blank;_blank;_blank">
<param name="Position" value="Vertical">
<param name="Sticky" value="Yes">
<param name="FontSize" value="16">
<param name="FontSize2" value="20">
<param name="bgCOLOR1" value="240,240,200">
<param name="bgCOLOR2" value="240,240,200">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,0,255">
<param name="FontStyle" value="BOLD">
<param name="FontStyle2" value="BOLD">
<param name="FontName" value="TimesRoman">
<param name="Author" value="George Eleftheriou">
<param name="Email" value="gele@egnatia.ee.auth.gr">
Your browser doesn't support java or java is not enabled!
</APPLET>


Example 3


When the mouse is over text, font color changes

This is the code used for the above applet:
<APPLET CODE=TextMenu.class WIDTH=150 HEIGHT=70>
<param name="TextToDisplay" value="Java Boutique;Java News;Java FAQs">
<param name="URLtoDisplay" value="http://javaboutique.internet.com;http://javaboutique.internet.com/jbnews.html;http://javaboutique.internet.com/javafaqs.html>
<param name="Target" value="_blank;_blank;_blank">
<param name="Position" value="Vertical">
<param name="FontSize" value="20">
<param name="FontSize2" value="20">
<param name="FontStyle" value="BOLD">
<param name="FontStyle2" value="BOLD">
<param name="bgCOLOR1" value="240,240,200">
<param name="bgCOLOR2" value="240,240,200">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,0,255">
<param name="FontName" value="TimesRoman">
<param name="Author" value="George Eleftheriou">
<param name="Email" value="gele@egnatia.ee.auth.gr">
Your browser doesn't support java or java is not enabled!
</APPLET>


Example 4


When the mouse is over text, background color changes

This is the code used for the above applet:
<APPLET CODE=TextMenu.class WIDTH=150 HEIGHT=70>
<param name="TextToDisplay" value="Java Boutique;Java News;Java FAQs">
<param name="URLtoDisplay" value="http://javaboutique.internet.com;http://javaboutique.internet.com/jbnews.html;http://javaboutique.internet.com/javafaqs.html>
<param name="Target" value="_blank;_blank;_blank">
<param name="Position" value="Vertical">
<param name="FontSize" value="20">
<param name="FontSize2" value="20">
<param name="bgCOLOR1" value="0,0,255">
<param name="bgCOLOR2" value="240,240,200">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,0,0">
<param name="FontStyle" value="BOLD">
<param name="FontStyle2" value="BOLD">
<param name="FontName" value="TimesRoman">
<param name="Author" value="George Eleftheriou">
<param name="Email" value="gele@egnatia.ee.auth.gr">
Your browser doesn't support java or java is not enabled!
</APPLET>


For horizontal examples click here
Download TextMenu.zip that contains the classes and documentation
©Copyright 2001 by Faisal,ctg