File
>
Edit
>
Features:
- Object-orientated code for separate menu systems and easy addition
to pages.
- Hierarchial / Multilevel menus supported -- as many levels as you
want.
- Menus can be positioned relative to triggering links in page or
parent menu.
- Customisable show/hide timers applied to menus, so they don't
have to overlap.
- HTML elements used to construct the menus, so you can build
accessible pages for legacy browsers or screenreaders.
- CSS formatting controls menu appearance.
- Tiny, fast script since data is in the page BODY; it's only 4kb in
size!
Script License Agreement
You may use this script only if you agree that:
- You must EITHER:
- Donating Users: This script is "donation-ware". If you
can make a
donation to support this script, it may be used on one website
without a crediting link. Please consider making a donation! I have spent a
lot of time developing, debugging and documenting scripts, and any support
is welcome. More info...
- Free Users: All websites using this script for free
must contain somewhere a visible crediting link to
TwinHelix Designs, e.g. 'DHTML /
JavaScript Menu by TwinHelix Designs'.
- You must leave the "Script Name/Author/URL" comment in the source of the
script file.
- This script is provided on an "AS-IS" basis, without any warranties, and
you use it entirely at your own risk.
- This script may not be redistributed, sold, rented, leased or sublicensed
to third parties without my prior consent.
If you have another use for the script (for example, within a web
application) or wish to arrange alternate licensing terms, please contact me for more
information.
Usage Instructions:
Everything's in the source of this page. The JS file itself you don't need to
edit, and you can leave the demo script unchanged. You will want to open the
.CSS file and change the menu formatting there though, and of course the menu
data in the BODY of the page.
If you're feeling adventurous, I've put in an optional animation function in
the commented JS file. It's not on by default, but feel free to uncomment it and
try it out for fancy swiping menus.
Good luck - Angus.