View Full Version : How to create SubMenus?
www.mx3d.org
I would like to create a submenu to pop out (without Java if possible), to make navigation easier. Anyone know how to do this? Perhaps can someone get my source, and make a little example so I can learn it and do it all myself? thanks :)
Damian
05-02-2001, 12:35 PM
MX3D -- I threw together a javascript pulldown menu that I got from javascriptsource, and am using it as an include (SSI). The code itself is really basic and easy....
Everytime I add a new page that I want listed in the menu, I just update the include page...
Put this in the <head>:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
Place this in the <body>
<form name="form">
Jump to a page
<select name="site" onChange="javascript:formHandler()" size=1>
<option value="">Go to.... </option>
<option value="pageone.html">Page One </option>
<option value="pagetwo.html">Page Two </option>
<option value="pagethree.html">Page Three </option>
</select>
</form>
Just keep adding more "option value=" lines to add selections...also, this menu will autojump once a page has been selected...there are other ones out there that will make you click a button to be jumped...okay..I've rambled long enough :)
WackyMan
mark_olson
05-02-2001, 07:05 PM
http://www.opencube.com/dhtmlmenu.htm
http://www.insidedhtml.com/tips/webfx/ts03/dhtmlmenu.asp
http://www.webreference.com/dhtml/hiermenus/
I've used the last one, and was quite pleased with it.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.