JavaScript PopUp Menu.
This control is based on JavaScript code and was tested on Netscape and IE platforms. It is fully customized through CSS file. Fill free to mail us any questions. Our email address:
contact@web4w3.com
This is a working example. Take your time to play.
CLICK RIGHT BUTTON HERE
Implementation
To assign pop-up menu to object:
- Create function with desired functionality
function New() { alert("New"); }
function Yahoo() { document.location="http://yahoo.com"; }
- Create menu array
arrayMenu[0] = ["New",New];
arrayMenu[1] = ["Go Yahoo",Yahoo];
- Setup menu width
var menuWidth = "100px";
- Call function
addPopUpMenu(elementID,arrayMenu,menuWidth),
where elementID is ID of the object to assign pop-up menu.
Web4W3 team