Hvis du downloader CoolMenu og så skifter det ud med det herunder har du næsten en brugbar menu. Du må selv finde på en farve, da der nok skal en baggrundsfarve på hvis man skal kunne læse hvad der står.
<html>
<head>
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great
scripts.</title>
<style>
/* CoolMenus 4 - default styles - do not edit */
.clCMEvent{position:absolute; width:99%; height:99%; clip:rect(0,100%,100%,0); left:0; top:0; visibility:visible}
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
/* CoolMenus 4 - default styles - end */
/* MENU NUMBER 2 */
/*Style for the background-bar*/
.cl2Bar{position:absolute; width:10; height:10; visibility:hidden}
/*Styles for level 0*/
.cl2Level0,.cl2Level0over{position:absolute; padding:2px; font-family:verdana,tahoma,arial,helvetica; font-size:10px; font-weight:bold}
.cl2Level0{background-color:Navy; layer-background-color:Navy; color:white;}
.cl2Level0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
.cl2Level0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
/*Styles for level 1*/
.cl2Level1, .cl2Level1over{position:absolute; padding:2px; font-family:verdana,tahoma,arial,helvetica; font-size:10px; font-weight:bold}
.cl2Level1{background-color:Navy; layer-background-color:Navy; color:white;}
.cl2Level1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
.cl2Level1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
</style>
<script language="JavaScript1.2" src="coolmenus4.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
DHTML coolMenus - Get it at coolmenus.dhtmlcentral.com
Version 4.0_beta
This script can be used freely as long as all copyright messages are
intact.
Extra info - Coolmenus reference/help - Extra links to help files ****
CSS help:
http://192.168.1.31/projects/coolmenus/reference.asp?m=37General:
http://coolmenus.dhtmlcentral.com/reference.asp?m=35Menu properties:
http://coolmenus.dhtmlcentral.com/properties.asp?m=47Level properties:
http://coolmenus.dhtmlcentral.com/properties.asp?m=48Background bar properties:
http://coolmenus.dhtmlcentral.com/properties.asp?m=49Item properties:
http://coolmenus.dhtmlcentral.com/properties.asp?m=50******************************************************************************/
</script>
<script language="JavaScript1.2" src="cm_addins.js"></script>
</head>
<body>
<script>
/***
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/
//Menu object creation
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument: menuname
//Menu properties
oCMenu2.pxBetween=0
oCMenu2.fromLeft=0
oCMenu2.fromTop=50
oCMenu2.rows=1
oCMenu2.menuPlacement="center"
oCMenu2.offlineRoot="
file:///C|/Inetpub/wwwroot/dhtmlcentral/" oCMenu2.onlineRoot="/coolmenus/"
oCMenu2.resizeCheck=1
oCMenu2.wait=1000
oCMenu2.fillImg="cm_fill.gif"
oCMenu2.zIndex=0
//Background bar properties
oCMenu2.useBar=0
oCMenu2.barWidth="100%"
oCMenu2.barHeight="menu"
oCMenu2.barClass="cl2Bar"
oCMenu2.barX=0
oCMenu2.barY=0
oCMenu2.barBorderX=0
oCMenu2.barBorderY=0
oCMenu2.barBorderClass=""
//Level properties - ALL properties have to be spesified in level 0
oCMenu2.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu2.level[0].width=90
oCMenu2.level[0].height=15
oCMenu2.level[0].regClass="cl2Level0"
oCMenu2.level[0].overClass="cl2Level0over"
oCMenu2.level[0].borderX=1
oCMenu2.level[0].borderY=1
oCMenu2.level[0].borderClass="cl2Level0border"
oCMenu2.level[0].offsetX=0
oCMenu2.level[0].offsetY=0
oCMenu2.level[0].rows=0
oCMenu2.level[0].arrow=0
oCMenu2.level[0].arrowWidth=0
oCMenu2.level[0].arrowHeight=0
oCMenu2.level[0].align="bottom"
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the
same just remove this
oCMenu2.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu2.level[1].width=oCMenu2.level[0].width-2
oCMenu2.level[1].height=15
oCMenu2.level[1].regClass="cl2Level1"
oCMenu2.level[1].overClass="cl2Level1over"
oCMenu2.level[1].borderX=1
oCMenu2.level[1].borderY=1
oCMenu2.level[1].align="right"
oCMenu2.level[1].offsetX=-(oCMenu2.level[0].width-2)/2+20
oCMenu2.level[1].offsetY=0
oCMenu2.level[1].borderClass="cl2Level1border"
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink,
onclick, onmouseover, onmouseout)
*************************************/
oCMenu2.makeMenu('top0','',' Forside','example2.html','')
oCMenu2.makeMenu('sub00','top0','Newest news','/news/index.asp')
oCMenu2.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
oCMenu2.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
oCMenu2.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
oCMenu2.makeMenu('sub01','top0','News archive','/news/archive.asp')
oCMenu2.makeMenu('top1','',' Om mig','/scripts/index.asp')
oCMenu2.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
oCMenu2.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
oCMenu2.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
oCMenu2.makeMenu('top2','',' Kontakt','/articles/index.asp')
oCMenu2.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
oCMenu2.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
oCMenu2.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
oCMenu2.makeMenu('sub22','top2','Other articles','/articles/index.asp')
oCMenu2.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
oCMenu2.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
oCMenu2.makeMenu('top3','',' Links','/scripts/index.asp')
oCMenu2.makeMenu('sub30','top3','New scripts','/scripts/index.asp?show=new')
oCMenu2.makeMenu('sub31','top3','All scripts','/scripts/index.asp?show=all')
oCMenu2.makeMenu('sub32','top3','Popular scripts','/scripts/index.asp?show=pop')
oCMenu2.makeMenu('top4','',' Billeder','/scripts/index.asp')
oCMenu2.makeMenu('sub40','top4','New scripts','/scripts/index.asp?show=new')
oCMenu2.makeMenu('sub41','top4','All scripts','/scripts/index.asp?show=all')
oCMenu2.makeMenu('sub42','top4','Popular scripts','/scripts/index.asp?show=pop')
oCMenu2.makeMenu('top5','',' Min computer','/scripts/index.asp')
oCMenu2.makeMenu('sub50','top5','New scripts','/scripts/index.asp?show=new')
oCMenu2.makeMenu('sub51','top5','All scripts','/scripts/index.asp?show=all')
oCMenu2.makeMenu('sub52','top5','Popular scripts','/scripts/index.asp?show=pop')
oCMenu2.makeMenu('top6','',' Gæstebog','/scripts/index.asp')
oCMenu2.makeMenu('sub60','top6','New scripts','/scripts/index.asp?show=new')
oCMenu2.makeMenu('sub61','top6','All scripts','/scripts/index.asp?show=all')
oCMenu2.makeMenu('sub62','top6','Popular scripts','/scripts/index.asp?show=pop')
oCMenu2.makeMenu('top7','',' Login','/scripts/index.asp')
oCMenu2.makeMenu('sub70','top7','New scripts','/scripts/index.asp?show=new')
oCMenu2.makeMenu('sub71','top7','All scripts','/scripts/index.asp?show=all')
oCMenu2.makeMenu('sub72','top7','Popular scripts','/scripts/index.asp?show=pop')
//Leave this line - it constructs the menu
oCMenu2.construct()
</script>
</body>
</html>