An expanding dropdown menu script. The script
uses a cookie to determine if a visitor has been here
before and to remember the settings of the expanded or minimized state of the menus. You can use the dropdown windows as information or news boxes as well,
and include any HTML code inside the dropdowns.
EXAMPLE
Click on the arrow image to expand
or minimize a menu window.
1) Insert these scripts with the style command in the <HEAD> section of the page.
2) Download
this ZIP filewith
the menu.js script file and unzip into the appropriate directory.
3) Insert the following HTML code inside
the <BODY> section where you want the menu windows to appear in your page.
4) Define the style of the menu windows in this section of the <STYLE> command:
<style type="text/css">
<!--
#header1 {background-color:#0F5890; color:#FFFFFF} //
background color of header and header color
#backgr1 {background-color:#FFFFFF} //
background color of the menu window
TD.cell1 {border:1 solid #0F5890} //
border size and color of the menu window
#header2 {background-color:#006600; color:#FFFFFF}
#backgr2 {background-color:#FFFFFF}
TD.cell2 {border:1 solid #006600}
TH {font-family:Tahoma,Arial; font-size:10pt; font-weight:bold;
text-align:left} // font style and
alignment of the headers
//-->
</style>
5) Define the menu windows and the content
in this section of the HTML code:
6) Define the path of the .js file (relative to the page) in the call
to the script which is located in the <HEAD> section:
<script src="dropdown/menu.js"></script>
We offer a version of this script with the menus in a closed
state rather than the initial open state. This modification can be purchased
using Paypal via this link.