Collapsible Menu with Memory | JavaScriptSource

Collapsible Menu with Memory

Sandeep Gangadharan Jul 14, 2008

General

This script creates a collapsible menu. Unlimited nested sub-links can also be added. The script uses a cookie to remember what portion of the menu the visitor has displayed so it will remain open when he returns to the page. The appearance of the menu can be changed to match any site.


Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: collapsibleMenuMem.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)