popup menu tree script
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Menus > Popup menu tree

 

Popup menu tree script

AUTHOR: PEN99
TYPE: Freeware
BROWSERS: IE 4+, IE 5+, IE 6+

A popup menu tree that contains links. Mouseover on the image to expand it. You can copy the images we made or make your own images for a top image, the menu item images and for a bottom image.


EXAMPLE


Shareware Publishers
Sponsors of STB
Special pages
Contact Us


1
) Download this ZIP file with lmenu.js  and submenus.js script files and main.css stylesheet and unzip into the appropriate directory. The ZIP file also contains the images used in this example to help you configure the script.

2) Insert the following code into the <HEAD> section of your page.

then copy (CTRL-C) & paste (CTRL-V)

3) Insert the onload event handler inside the <BODY> tag as follows:

<body onload="init();", followed by all other tags such as bgcolor, etc..

then copy (CTRL-C) & paste (CTRL-V)

4) Place this code right after the <BODY> tag (adjust the directory if necessary):

then copy (CTRL-C) & paste (CTRL-V)

5) Insert the following code in the <BODY> section where you want the menu to be displayed. Change this as is needed. Our example has 5 buttons, copy the text from <a href.. to <br> for every button you wish to add or delete per button. Number them appropriately, i.e. 2,2, 3,3, etc..

then copy (CTRL-C) & paste (CTRL-V)

6) Change the horizontal and vertical positioning as needed. Find these lines of code in the lmenu.js script file and try changing the value in bold to more or less:

horizontal: document.all[menuID].style.pixelLeft = xxPos+120;

vertical: mtop=yyPos+30+offset*16-dif

7) Edit the main.css file to change rollover colors and such. Edit the submenus.js to make the menus you want. Follow through the file for each <a href> to </a> command.


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.