mainpage.html

<< Prev Example Index Next >>
Parameters Frame Example Javascript Tips Applet Index

 

apChoiceMenu Frame Example

This example demonstrates:

  • Using the target parameter with frames
  • Javascript calls - "Change all" item allows to change the contents of two frames by single click. See also "Javascript tips"
  • Inactive items

HTML Source

exframe.html

<FRAMESET rows=45,85%>
<FRAME name = top_wnd scrolling=no src="toppage.html">
<FRAME name = main_wnd scrolling=yes src="mainpage.html">
</FRAMESET>
</FRAMESET>

toppage.html

<APPLET code=apChoiceMenu.class height=20 width=115 mayscript>
<a href=http://www.apycom.com>Apycom Java Applets</a>
<param name="Copyright" value="Apycom.com">
<param name="backColor" value="CCCCFF">
<param name="menuColor" value="ccccff">
<param name="fontColor" value="000000">
<param name="font" value="Courier,11,0">
<param name="menuItems" value="
  {Applet Index,index.html,_parent}
  {--------,_,_}
  {Main in Main,mainpage.html,main_wnd} 
  {Top in Main,toppage.html,main_wnd} 
  {Top in Top,toppage.html,top_wnd}
  {Main in Top,mainpage.html,top_wnd}
  {Change All,javascript:changeAll(),_}
  {--------,_,_}
  {Previous,ex2.html,_parent}
  {Index,../index.html,_parent}
  ">
</APPLET> 

<script language="Javascript">
function changeAll()
{
open('mainpage.html','top_wnd');
open('toppage.html','main_wnd');
}
</script>

How to setup the menu

 




Fatal error: Call to undefined function jambanner() in /home/apycomcom/public_html/pull-down-menu/mainpage.html on line 137