Sevencolors studies:
experiments with Javascript, CSS, PHP and web standards

Printer icon

Javascript menu

A menu that uses Javascript and session cookies

The menu opens and closes with the use of the 'display' property of the CSS changed on the fly using JavaScript.Then I use session cookies that will be deleted on closing the browser to record the right display value and assign it on changing page.Since the links don`t go anywhere just refresh the page and you`ll see that the menu stays open or closed as it was. To optimize the menu, the Javascript file should be imported and the inline function calls that open and close the menu removed and changed with events registered to the elements, so that, if Javascript and CSS are disabled, the menu stays open and it`s usable. Any suggestions and improvements will be highly appreciated,just write me and let me know.
Click will open a window with the menu, view the source to copy, change and use it anywhere as you wish: [ menu ]