SiteExperts.com Logo Home | Community | Developer's Paradise
High-Tech Jobs | User Groups | Site Information

DHTMLLib Demos/ Menu

www.siteExperts.com

Using DHTMLLib we are able to create a drop-down menu with minimal script:

function displayPopup() {
	document.all.navBar.style.visibility = "visible"
	window.event.cancelBubble = true
	window.event.returnValue = false
}

function hidePopup() {
	document.all.navBar.style.visibility = "hidden"
}	

function doLoad() {
	setup()
	document.onmouseup = hidePopup	
}
window.onload = doLoad;

The menu itself is created with an absolutely positioned table immediately following a link that displays the menu. View the source for this document to see the menu HTML.

See our sliding menu for a more enhanced version.