Java
  GuestBook
  Security
     Explorer
     Netscape

JavaScript
  Mouse Over

Layers
  Menu

Windows
  File Types

     

Using Layers. The Netscape Menu

This page describes an easy to use scheme for netscape's menu.
In the HEAD area of your document.
  <SCRIPT>
  function StartPage() {
    if((top.frames.length==0)&&(navigator.userAgent.indexOf('Win16') == -1))
      {setTimeout("document.layers['menu'].show_menus();",3500)};
    }
  </SCRIPT>
Your BODY tag should include:
    <BODY onLoad="document.layers['menu'].init_menu();
      setTimeout('javascript:StartPage();',200);return false;">
Somewhere inside the BODY area:
    <LAYER NAME="menu" SRC=menu.html HEIGHT=450 WIDTH=50
      left=0 TOP=0 Z-INDEX=100 VISIBILITY="show">
    </LAYER>

Copy the and modify the file menu.html in the current directory.

Copy all the images from the images directory to a subdirectory called images!

Checklist:

Say the HTML document that you wanted to have the menu in was called test.html then you would need the following files
  • test.html
  • menu.html
  • images/
    • big_cell.gif
    • big_dark_minus.gif
    • big_dark_plus.gif
    • big_light_minus.gif
    • big_light_plus.gif
    • blank.gif
    • dark_minus.gif
    • dark_plus.gif
    • gripper.gif
    • light_minus.gif
    • light_plus.gif
    • mcombo.gif
    • no_sign.gif
    • vgripper.gif

Notes

  • This script only allows three Top Level menus.
  • Resizing, doesn't work, but it doesn't on netscape either.

Alternatively

you can grab the menu.zip file or menu.tar.gz and unpack and make the modifications.

Please don't email me about layers, I don't really understand them, I just got this one to work :-)


The information on these pages are provided on an "AS IS" basis, and may be used freely at your own risk. Addition usage information found on each particular page.
olabs@olabs.com