Updated: 01/14/2008

Multi-Level DHTML Menu

The script allows creating DHTML menus with several levels of nestings. To create a menu, write an array of titles && URLs and pass it to a JavaScript function. The appearance is controlled by Style Sheets, so you can easily change colors, dimensions, background images, etc. Top level elements are purely HTML (anchor tags with id attributes), so that the site can be browsed by the users with JavaScript disabled and so that its structure is transparent for search engines. Also, unlike commercial analogs, this script is short (about 100 lines of code) and written in clear language. Tested with IE 7/6, FireFox, Opera, and Safari.