Apycom Software Home XP Web Buttons Example #12  
Apycom Home Web Buttons Purchase Download FAQ Templates
<< Prev Example Index Next >>
Parameters Frame Example Javascript Tips Menu Index

 

XP Web Buttons Example #12

Apycom Java Applets

Click here to set "Apycom Software" item to the pressed state...
Click here to set "Menu Applets" item to the pressed state...
Click here to set "Contact Us" item to the pressed state...
Click here to unpress items...

This example demonstrates:

  • Using javascript to dynamically change the menu by calling public functions, see also javascript tips
  • Word wrapping - use "\" to start a new line
  • Text aligned to right
  • 3D text effect (mouseover text shadow)
  • Button type 0
  • Separators
  • Horizontal menu direction

HTML Source

<applet name=apbtn Code=apXPButtonMenu.class Width=512 Height=36 MAYSCRIPT>
<a href=http://www.apycom.com>Apycom Java Applets</a>
<param name="Copyright" value="Apycom.com">
<param name="isHorizontal" value="true">
<param name="pressedItem" value="0">
<param name="alignText" value="right">
<param name="buttonType" value="0">
<param name="backColor" value="ffee00">
<param name="buttonColor" value="ffa851">
<param name="fontColor" value="ffffff">
<param name="fontHighColor" value="3775ff">
<param name="shadowHighColor" value="eeeeee">
<param name="font" value="Arial,11,1">
<param name="menuItems" value="
     {Apycom\Software,testlink.html,_self}
     {-}
     {Menu\Applets,testlink.html,_self}
     {-}
     {Main\Parameters,testlink.html,_self}
     {-}
     {Optional\Parameters,testlink.html,_self}
     {-}
     {Examples,testlink.html,_self}
     {-}
     {Contact\Us,testlink.html,_self}
     {-}
     {Order\Applets,testlink.html,_self}
     ">
</applet>
 

<a href="javascript:document.apbtn.setPressedItem(1)">
Click here to set "Apycom Software" item to the pressed state...</a>
<a href="javascript:document.apbtn.setPressedItem(3)">
Click here to set "Menu Applets" item to the pressed state...</a>
<a href="javascript:document.apbtn.setPressedItem(11)">
Click here to set "Contact Us" item to the pressed state...</a>
<a href="javascript:document.apbtn.setPressedItem(0)">
Click here to unpress items...</a>

How to setup the menu

 

<< Previous Example Example Index Next Example >>


Cross Browser Menu | Terrific Soft | Reverse IP | Flickr Slideshow Embed | Web Photo Gallery
Copyright (c) 1998-2009, Apycom Software