mainpage.html

Previous Example Index Next
Parameters Frame Example Javascript Tips Applet Index

 

apButtonMenu Frame Example

This example demonstrates:

  • Using the target parameter with frames
  • Javascript calls - "Change all" item allows to change the contents of all frames by single click. See also "Javascript tips"
  • Inactive items
  • Label text aligned to center
  • Button type 1 ("flat buttons")
  • Vertical menu direction

HTML Source

exframe.html

<FRAMESET cols=135,85%>
<FRAME name = left_wnd scrolling=no src="leftpage.html">
<FRAMESET rows=15%,85%>
<FRAME name = top_wnd scrolling=no src="toppage.html">
<FRAME name = main_wnd scrolling=yes src="mainpage.html">
</FRAMESET>
</FRAMESET>

leftpage.html

<APPLET code="apButtonMenu" Archive="apButtonMenu.jar" height=270 width=115 mayscript>
<param name="Copyright" value="Apycom Software - www.apycom.com">
<param name="solidArrows" value="true">
<param name="backColor" value="FFCCFF">
<param name="backHighColor" value="ddaadd">
<param name="fontColor" value="880000">
<param name="fontHighColor" value="ffffff">
<param name="buttonType" value="1">
<param name="alignText" value="center">
<param name="font" value="Courier,12,0">
<param name="javascript:1" value="changeAll()">
<param name="menuItems" value="
    {Applet,index.html,_parent}
    {_,_,_}
    {Main in Main,mainpage.html,main_wnd}
    {Top in Main,toppage.html,main_wnd}
    {Left in Main,leftpage.html,main_wnd}
    {Top in Top,toppage.html,top_wnd}
    {Main in Top,mainpage.html,top_wnd}
    {Left in Top,leftpage.html,top_wnd}
    {Change All,javascript:1,_}
    {_,_,_}
    {Previous,ex7.html,_parent}
    {Index,../index.html,_parent}
    ">
</APPLET>
 
<script language="Javascript">
function changeAll()
{
open('mainpage.html','left_wnd');
open('leftpage.html','main_wnd');
open('leftpage.html','top_wnd');
}
</script>

 


Copyright (c) 1998-2001, Apycom Software