Apycom Software Home Navigation Bar Tabs Example #4  
Apycom Home Navigation Buttons Purchase Download FAQ Templates
<< Prev Example Index Next >>
Parameters Frame Example Javascript Tips Menu Index

 


   Navigation Bar Tabs Example #4

Apycom Java Applets


   This example demonstrates:

  • Javascript calls. For more info see "Javascript tips"
  • Line wrapping
  • Text aligned to left
  • Default selected tab not defined, but the toggle mode is active (pressedItem=0)
  • Tab type 2 - bold borders

   HTML Source

<applet Code=apTabMenu.class Width=572 Height=30 MAYSCRIPT>
<a href=http://www.apycom.com>Apycom Java Applets</a>
<param name="Copyright" value="Apycom.com">
<param name="bottomLine" value="false">
<param name="pressedItem" value="0">
<param name="tabType" value="2"> 
<param name="backColor" value="d0f0d0">
<param name="tabColor" value="e0ffe0">
<param name="tabHighColor" value="b0d0b0">
<param name="fontColor" value="707060">
<param name="fontHighColor" value="ffffff">
<param name="alignText" value="left"> 
<param name="font" value="TimesRoman,11,1">
<param name="menuItems" value="
{Message box,javascript:alert('Hello world!'),_}
{Confirmation\dialog,javascript:confirm('Do you want to confirm?'),_}
{Open 'JS Tips'\in 680x600 window,
           javascript:open('javascript.html','_blank','scrollbars,width=680,height=600'),_}
{Open 'JS Tips'\in 300x200 window,
           javascript:open('javascript.html','_blank','scrollbars,width=300,height=200'),_}
{Launch js\function,javascript:my_js_function(),_}
">
</applet>


<script language="Javascript">
function my_js_function()
{
    alert('Click to continue...');
    if (confirm('Do you want to open two small windows?'))
    {
        open('javascript.html','_blank','width=150,height=150');
        open('javascript.html','_blank','width=100,height=100');
    }
    else
    {
        alert('Canceled...');
    }
}
</script>

How to setup the menu

 

<< Previous Example Example Index Next Example >>


Drop Down List | Menu Tabs | Palabras | CSS3 Menu | jQuery Video Player
Copyright (c) 1998-2009, Apycom Software