/* JavaScript Unleashed, Third Edition by Richard Wagner and R. Allen Wyke
ISBN: 067231763X Publisher Sams CopyRight 2000
*/ <html> <head> <title>JavaScript Unleashed</title> <script type="text/javascript" language="JavaScript1.2"> <!-- // Check to see if this is a Navigator brower if(navigator.userAgent.indexOf("MSIE") == -1){ alert("This menu is supported in Internet Explorer"); window.back(); }
// Declare global variables var layer = new String(); var style = new String();
// Set the layer and style variables. function checkBrowser(){ layer = ".all"; style = ".style"; }
// Take the state passed in, andchange it. function changeState(layerRef, state){ eval("document" + layer + "['" + layerRef + "']" + style + ".visibility = '" + state + "'"); }
//--> </script> <style type="text/css"> <!-- /* Global styles */
a{ text-decoration: none; }
/* Properties that sets the background of entire menu */ #menubar{ background-color: #c0c0c0; left: 0; position: absolute; top: 0; width: 100%; }
/* Properties of the menus on the menubar */ #help{ background-color: #c0c0c0; position: absolute; right: 0; top: 0; }
/* Properties of the actual menus that are hidden until clicked */ #gomenu{ background-color: #c0c0c0; left: 10; position: absolute; top: 20; visibility: hidden; width: 80; }