|
Menu Applets
Menus avec Liens Textes
Principalement des browsers
|
|
Copiez le code suivant pour la version
verticale et mettez-le dans un dossier de HTML:
Fichier Commun 1
|
<APPLET CODE=TextMenu.class WIDTH=400
HEIGHT=100>
<param name="TextToDisplay" value="Yahoo;Lycos;Infoseek;Excite;HotBot">
<param name="URLtoDisplay" value="http://www.yahoo.com/;http://www.lycos.com;
http://www.infoseek.com/;http://www.excite.com/;http://www.hotbot.com/">
<param name="Position" value="Vertical">
<param name="bgCOLOR1" value="255,255,255">
<param name="bgCOLOR2" value="0,0,255">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="255,0,0">
<param name="FontSize" value="14">
<param name="FontSize2" value="16">
<param name="FontStyle" value="BOLD">
<param name="FontStyle2" value="BOLDandITALIC">
<param name="Target" value="_blank;_blank;_blank;_blank;_blank">
<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 java1.1 or java is not enabled!
</APPLET> |
|
|
Copiez le code suivant pour la version verticale et
mettez-le dans un dossier de HTML:
|
<APPLET CODE=TextMenu.class WIDTH=400
HEIGHT=100>
<param name="TextToDisplay" value="Yahoo;Lycos;Infoseek;Excite;HotBot">
<param name="URLtoDisplay" value="http://www.yahoo.com/;http://www.lycos.com;
http://www.infoseek.com/;http://www.excite.com/;http://www.hotbot.com/">
<param name="Position" value="Vertical">
<param name="bgCOLOR1" value="0,0,255">
<param name="bgCOLOR2" value="255,255,255">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,0,0">
<param name="Target" value="_blank;_blank;_blank;_blank;_blank">
<param name="FontSize" value="14">
<param name="FontSize2" value="20">
<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 java1.1 or java is not enabled!
</APPLET> |
|
|
Copiez le code suivant pour la version verticale et
mettez-le dans un dossier de HTML:
|
<APPLET CODE=TextMenu.class WIDTH=400
HEIGHT=100>
<param name="TextToDisplay" value="Yahoo;Lycos;Infoseek;Excite;HotBot">
<param name="URLtoDisplay" value="http://www.yahoo.com/;http://www.lycos.com;
http://www.infoseek.com/;http://www.excite.com/;http://www.hotbot.com/">
<param name="Position" value="Vertical">
<param name="bgCOLOR1" value="255,255,255">
<param name="bgCOLOR2" value="255,255,255">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,0,255">
<param name="Target" value="_blank;_blank;_blank;_blank;_blank">
<param name="FontSize" value="16">
<param name="FontSize2" value="16">
<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 java1.1 or java is not enabled!
</APPLET> |
|
|
Copiez le code suivant pour la version
horizontale et mettez-le dans un dossier de HTML:
|
<APPLET CODE=TextMenu.class WIDTH=400
HEIGHT=30>
<param name="TextToDisplay" value="Yahoo;Lycos;Infoseek;Excite;HotBot">
<param name="URLtoDisplay" value="http://www.yahoo.com/;http://www.lycos.com;
http://www.infoseek.com/;http://www.excite.com/;http://www.hotbot.com/">
<param name="Position" value="Horizontal">
<param name="bgCOLOR1" value="255,255,255">
<param name="bgCOLOR2" value="255,0,0">
<param name="textCOLOR1" value="0,0,0">
<param name="textCOLOR2" value="0,0,0">
<param name="Target" value="_blank;_blank;_blank;_blank;_blank">
<param name="FontSize" value="16">
<param name="FontSize2" value="20">
<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 java1.1 or java is not enabled!
</APPLET> |
As you can see in these examples the combinatons are countless.
Parameters
- TextToDisplay is the text you want to appear in the applet. Must be
separated with ";"
- URLtoDisplay contains the URLs that correspond to the above text
values.Must be separated with ";"
- Position is either Horizontal or Vertical
- bgCOLOR1 is the background color of each label. All colors are defined as
triples of R,G,B values where 0<R,G,B<255. All values zero indicate black,
all values 255 indicate white.
- bgCOLOR2 is the background color of the label when the mouse is over it
- textCOLOR1 is the foreground color of each label
- textCOLOR2 is the foreground color of the label when the mouse is over it
- FontSize is the font size
- FontSize2 is the font size when the mouse is over it.
- FontName is the name of the font. If you don't know what fonts your java
support, you 'd better leave it as it is.
- FontStyle: the style can be "PLAIN" or "BOLD" or "ITALIC", or "BOLDandITALIC".
Default is "BOLD".This means that if you don't specify this parameter, or if
you specify it wrong, fontstyle will be "BOLD"
- FontStyle2: the style when the mouse is over the text. Default is "BOLD"
- Target can have any of the values "_self", "_parent", "_top", "_blank" or
the name of the frame you want the URL to appear.Must be separated with ";".
Default is "_blank"
You can customize all the values but remember to change the width and height
of the applet accordingly.
|