removed cool menus nav in favor of yui nav
|
|
@ -1,4 +1,5 @@
|
|||
7.5.11
|
||||
- Replaced Cool Menus nav with a YUI nav, which works and looks better.
|
||||
- fix: widget dialogues weren't opening correctly inside a widgetized
|
||||
view of a widget
|
||||
- fix: snippets were exporting as index.html or such. pass them through
|
||||
|
|
|
|||
BIN
docs/upgrades/packages-7.5.11/import_hierarchical-top-nav.wgpkg
Normal file
|
|
@ -1,279 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* DEFAULT STYLES ---- NEEEDED START */
|
||||
.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}
|
||||
/* DEFAULT STYLES ---- NEEEDED END */
|
||||
.clT,.clTover,.clS,.clSover,.clS2,.clS2over{position:absolute; width:120; font-family:arial,helvetica; cursor:pointer; cursor:hand; ;}
|
||||
.clT,.clTover{padding:4px; font-size:12px; font-weight:bold}
|
||||
.clS,.clSover{padding:2px; font-size:11px; font-weight:bold}
|
||||
.clS2,.clS2over{padding:2px; font-size:11px;}
|
||||
.clT,.clS,.clS2{color:#006699; background-color:#CDDBEB; layer-background-color:#CDDBEB;}
|
||||
.clTover{color:#FCCE55; background-color:#336699; layer-background-color:#336699;}
|
||||
.clSover{color:white; background-color:#339966; layer-background-color:#339966}
|
||||
.clS2{background-color:silver; width:230; layer-background-color:silver;}
|
||||
.clS2over{background-color:#00cccc; width:230; layer-background-color:#00cccc; color:black}
|
||||
.clStest{position:absolute; font-family:verdana; font-size:10px; color:red; layer-background-color:silver; background-color:silver;cursor:pointer; cursor:hand; }
|
||||
.clStestover{position:absolute; color:#ffff33; font-weight:bold; font-family:courier; layer-background-color:#00ccff; background-color:#00ccff; cursor:pointer; cursor:hand; }
|
||||
.clB1{position:absolute; layer-background-color:#ff9933; background-color:#ff9933; visibility:hidden}
|
||||
.clB2{position:absolute; layer-background-color:#996600; background-color:#996600; visibility:hidden}
|
||||
.clB3{position:absolute; layer-background-color:red; background-color:red; visibility:hidden}
|
||||
.clB{position:absolute; background-color:#336699; layer-background-color:#336699; visibility:hidden}
|
||||
.clBar{position:absolute; width:10; height:10; visibility:hidden; layer-background-color:#336699; background-color:#336699;}
|
||||
.clNoLink{position:absolute; font-family:arial,helvetica;}
|
||||
.clNoLink2{position:absolute; padding:2px; font-size:11px; color:#006699; layer-background-color:silver; background-color:silver; font-family:arial,helvetica;}
|
||||
.clNoLink3{position:absolute; background-color:#CDDBEB; layer-background-color:#CDDBEB; font-family:arial,helvetica;}
|
||||
</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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin=0 marginheight=0>
|
||||
|
||||
<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.
|
||||
**/
|
||||
|
||||
var oM=new makeCM("oM")
|
||||
oM.pxBetween =0
|
||||
oM.fromTop=180
|
||||
oM.fromLeft=10
|
||||
oM.menuPlacement="center"
|
||||
oM.wait=600
|
||||
oM.fillImg="cm_fill.gif"
|
||||
oM.zIndex=100
|
||||
oM.resizeCheck=1
|
||||
oM.zIndex=100
|
||||
|
||||
oM.onlineRoot=""
|
||||
oM.offlineRoot="file:///C|/myfiles/"
|
||||
|
||||
oM.rows=1
|
||||
|
||||
//Background bar properties
|
||||
oM.useBar=1
|
||||
oM.barWidth="100%"
|
||||
oM.barHeight="menu"
|
||||
oM.barX=0
|
||||
oM.barY="menu"
|
||||
oM.barClass="clBar"
|
||||
oM.barBorderX=0
|
||||
oM.barBorderY=2
|
||||
oM.barBorderClass="clB3"
|
||||
|
||||
|
||||
//Level properties
|
||||
//Syntax for fast creation (advanced users only)
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
|
||||
oM.level[0]=new cm_makeLevel()
|
||||
oM.level[0].width=120
|
||||
oM.level[0].height=20
|
||||
oM.level[0].regClass="clT"
|
||||
oM.level[0].overClass="clTover"
|
||||
oM.level[0].borderX=1
|
||||
oM.level[0].borderY=0
|
||||
oM.level[0].borderClass="clB2"
|
||||
oM.level[0].rows=0
|
||||
oM.level[0].align="bottom"
|
||||
oM.level[0].offsetX=0
|
||||
oM.level[0].offsetY=0
|
||||
oM.level[0].arrow=0
|
||||
oM.level[0].arrowWidth=0
|
||||
oM.level[0].arrowHeight=0
|
||||
|
||||
|
||||
oM.level[1]=new cm_makeLevel()
|
||||
oM.level[1].width=120
|
||||
oM.level[1].height=null
|
||||
oM.level[1].regClass="clS"
|
||||
oM.level[1].overClass="clSover"
|
||||
oM.level[1].borderX=1
|
||||
oM.level[1].borderY=10
|
||||
oM.level[1].borderClass="clB1"
|
||||
oM.level[1].align="bottomright"
|
||||
oM.level[1].rows=1
|
||||
oM.level[1].arrow="menu_arrow.gif"
|
||||
oM.level[1].arrowWidth=10
|
||||
oM.level[1].arrowHeight=10
|
||||
|
||||
oM.level[2]=new cm_makeLevel()
|
||||
oM.level[2].width=60
|
||||
oM.level[2].height=22
|
||||
oM.level[2].borderClass="clB3"
|
||||
oM.level[2].regClass="clS2"
|
||||
oM.level[2].borderX=3
|
||||
oM.level[2].borderY=1
|
||||
oM.level[2].rows=0
|
||||
oM.level[2].borderX=5
|
||||
oM.level[2].borderY=2
|
||||
oM.level[2].offsetX=0
|
||||
oM.level[2].offsetY=0
|
||||
oM.level[2].overClass="clS2over"
|
||||
oM.level[2].align="bottom"
|
||||
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
oM.level[3]=new cm_makeLevel(0,0,"","",3,3,"clB",0,"left")
|
||||
oM.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
|
||||
|
||||
oM.level[4]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[4].filter=""
|
||||
oM.level[4].slidepx=10
|
||||
|
||||
|
||||
oM.level[5]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[5].slidepx=0
|
||||
oM.level[5].clippx=10
|
||||
|
||||
oM.level[6]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[6].clippx=10
|
||||
oM.level[6].regClass="clS"
|
||||
oM.level[6].overClass="clSover"
|
||||
oM.level[6].border=null
|
||||
oM.level[6].borderClass="clB1"
|
||||
|
||||
oM.level[7]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[7].clippx=10
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oM.makeMenu('top0','','Align left','','',100,'','','','','',"left")
|
||||
oM.makeMenu('0sub10','top0','New scripts','script/index.asp?new=1','',110,20)
|
||||
oM.makeMenu('0sub11','top0','All scripts','script/index.asp','',110,30)
|
||||
oM.makeMenu('0sub13','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('0sub12','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('aa','0sub12','With subs aligned bottom','','',150)
|
||||
oM.makeMenu('','aa','Item')
|
||||
oM.makeMenu('tt','0sub12','Item')
|
||||
oM.makeMenu('','tt','Item')
|
||||
oM.makeMenu('kk','0sub12','Item')
|
||||
oM.makeMenu('','kk','Item')
|
||||
|
||||
oM.makeMenu('top1','','','','',100,0,'img1.gif','img1_on.gif','','',"bottom")
|
||||
oM.makeMenu('1sub10','top1','Different class','script/index.asp?new=1','',150,30,'','','clStest',"clStestover","right")
|
||||
oM.makeMenu('1sub11','top1','Different class','script/index.asp','',150,20,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub12','top1','Regular','','',150,30)
|
||||
oM.makeMenu('1sub13','top1','Different class','script/index.asp','',150,30,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub14','top1','Subs aligned left','','',150,20,'','','','','left')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
oM.makeMenu('bb','1sub14','Subs aligned top','','',150,0,'','','','','top')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
|
||||
|
||||
oM.makeMenu('top2','','Align top','','',100,0,'','','','',"top",0)
|
||||
oM.makeMenu('2sub12','top2','Columns<br>aligned<br>topleft','','',94,70,'','','','','topleft')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('2sub10','top2','','','',94,20,'img_sub.gif','img_sub_on.gif')
|
||||
oM.makeMenu('2sub11','top2','All scripts','script/index.asp','',94,20)
|
||||
|
||||
oM.makeMenu('top3','','Align right','','',100,0,'','','','',"right")
|
||||
oM.makeMenu('3sub10','top3','No link item','','',150,30,'','','','','','',1)
|
||||
oM.makeMenu('3sub11','top3','Columns aligned bottom left','','',150,30,'','','','','bottomleft')
|
||||
oM.makeMenu('cc','3sub11','Align bottom','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','cc','Item','','',150)
|
||||
oM.makeMenu('ff','cc','Align left with filter (ie only)<br>Go down for more add-in<br>effects','','',150,50,'','','','','left')
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('ee','ff','Align righttop with slide','','',130,0,'','','','','righttop')
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('','ee','Nolink','','',0,0,'','','clNoLink2','','','',1)
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('dd','ff','Align lefttop with slide','','',130,0,'','','','','lefttop')
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('gg','dd','Align bottom with clip','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('hh','gg','columns with clip','','',150,0)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Nolink','','',50,0,'','','clNoLink3','','','',1)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
|
||||
oM.construct()
|
||||
|
||||
|
||||
//Extra test code to customize the CoolMenus.
|
||||
var xx,yy
|
||||
oM.m["top0"].b.hideIt() //Hiding the first item.
|
||||
|
||||
function getCoords(e){
|
||||
xx=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX
|
||||
yy=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY
|
||||
}
|
||||
|
||||
//Capturing onmousemove event
|
||||
if(bw.ns4) document.captureEvents(Event.MOUSEMOVE)
|
||||
document.onmousemove=getCoords;
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<a href="#" onclick="oM.m['top0'].b.moveIt(xx,yy); oM.showsub('top0'); return false">Click me to show a menu</a>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,274 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* DEFAULT STYLES ---- NEEEDED START */
|
||||
.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}
|
||||
/* DEFAULT STYLES ---- NEEEDED END */
|
||||
.clT,.clTover,.clS,.clSover,.clS2,.clS2over{position:absolute; width:120; font-family:arial,helvetica; cursor:pointer; cursor:hand; ;}
|
||||
.clT,.clTover{padding:4px; font-size:12px; font-weight:bold}
|
||||
.clS,.clSover{padding:2px; font-size:11px; font-weight:bold}
|
||||
.clS2,.clS2over{padding:2px; font-size:11px;}
|
||||
.clT,.clS,.clS2{color:#006699; background-color:#CDDBEB; layer-background-color:#CDDBEB;}
|
||||
.clTover{color:#FCCE55; background-color:#336699; layer-background-color:#336699;}
|
||||
.clSover{color:white; background-color:#339966; layer-background-color:#339966}
|
||||
.clS2{background-color:silver; width:230; layer-background-color:silver;}
|
||||
.clS2over{background-color:#00cccc; width:230; layer-background-color:#00cccc; color:black}
|
||||
.clStest{position:absolute; font-family:verdana; font-size:10px; color:red; layer-background-color:silver; background-color:silver;cursor:pointer; cursor:hand; }
|
||||
.clStestover{position:absolute; color:#ffff33; font-weight:bold; font-family:courier; layer-background-color:#00ccff; background-color:#00ccff; cursor:pointer; cursor:hand; }
|
||||
.clB1{position:absolute; layer-background-color:#ff9933; background-color:#ff9933; visibility:hidden}
|
||||
.clB2{position:absolute; layer-background-color:#996600; background-color:#996600; visibility:hidden}
|
||||
.clB3{position:absolute; layer-background-color:red; background-color:red; visibility:hidden}
|
||||
.clB{position:absolute; background-color:#336699; layer-background-color:#336699; visibility:hidden}
|
||||
.clBar{position:absolute; width:10; height:10; visibility:hidden; layer-background-color:#336699; background-color:#336699;}
|
||||
.clNoLink{position:absolute; font-family:arial,helvetica;}
|
||||
.clNoLink2{position:absolute; padding:2px; font-size:11px; color:#006699; layer-background-color:silver; background-color:silver; font-family:arial,helvetica;}
|
||||
.clNoLink3{position:absolute; background-color:#CDDBEB; layer-background-color:#CDDBEB; font-family:arial,helvetica;}
|
||||
</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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin=0 marginheight=0>
|
||||
|
||||
<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.
|
||||
**/
|
||||
|
||||
var oM=new makeCM("oM")
|
||||
oM.pxBetween =0
|
||||
oM.fromTop=180
|
||||
oM.fromLeft=10
|
||||
oM.menuPlacement="center"
|
||||
oM.wait=600
|
||||
oM.fillImg="cm_fill.gif"
|
||||
oM.zIndex=100
|
||||
oM.resizeCheck=1
|
||||
oM.zIndex=100
|
||||
|
||||
oM.onlineRoot=""
|
||||
oM.offlineRoot="file:///C|/myfiles/"
|
||||
|
||||
oM.rows=1
|
||||
|
||||
//Background bar properties
|
||||
oM.useBar=0
|
||||
oM.barWidth="100%"
|
||||
oM.barHeight="menu"
|
||||
oM.barX=0
|
||||
oM.barY="menu"
|
||||
oM.barClass="clBar"
|
||||
oM.barBorderX=0
|
||||
oM.barBorderY=2
|
||||
oM.barBorderClass="clB3"
|
||||
|
||||
|
||||
//Level properties
|
||||
//Syntax for fast creation (advanced users only)
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
|
||||
oM.level[0]=new cm_makeLevel()
|
||||
oM.level[0].width=120
|
||||
oM.level[0].height=20
|
||||
oM.level[0].regClass="clT"
|
||||
oM.level[0].overClass="clTover"
|
||||
oM.level[0].borderX=1
|
||||
oM.level[0].borderY=5
|
||||
oM.level[0].borderClass="clB2"
|
||||
oM.level[0].rows=0
|
||||
oM.level[0].align="bottom"
|
||||
oM.level[0].offsetX=0
|
||||
oM.level[0].offsetY=0
|
||||
oM.level[0].arrow=0
|
||||
oM.level[0].arrowWidth=0
|
||||
oM.level[0].arrowHeight=0
|
||||
|
||||
|
||||
oM.level[1]=new cm_makeLevel()
|
||||
oM.level[1].width=120
|
||||
oM.level[1].height=null
|
||||
oM.level[1].regClass="clS"
|
||||
oM.level[1].overClass="clSover"
|
||||
oM.level[1].borderX=1
|
||||
oM.level[1].borderY=10
|
||||
oM.level[1].borderClass="clB1"
|
||||
oM.level[1].align="bottomright"
|
||||
oM.level[1].rows=1
|
||||
oM.level[1].arrow="menu_arrow.gif"
|
||||
oM.level[1].arrowWidth=10
|
||||
oM.level[1].arrowHeight=10
|
||||
|
||||
oM.level[2]=new cm_makeLevel()
|
||||
oM.level[2].width=60
|
||||
oM.level[2].height=22
|
||||
oM.level[2].borderClass="clB3"
|
||||
oM.level[2].regClass="clS2"
|
||||
oM.level[2].borderX=3
|
||||
oM.level[2].borderY=1
|
||||
oM.level[2].rows=0
|
||||
oM.level[2].borderX=5
|
||||
oM.level[2].borderY=2
|
||||
oM.level[2].offsetX=0
|
||||
oM.level[2].offsetY=0
|
||||
oM.level[2].overClass="clS2over"
|
||||
oM.level[2].align="bottom"
|
||||
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
oM.level[3]=new cm_makeLevel(0,0,"","",3,3,"clB",0,"left")
|
||||
oM.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
|
||||
|
||||
oM.level[4]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[4].filter=""
|
||||
oM.level[4].slidepx=10
|
||||
|
||||
|
||||
oM.level[5]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[5].slidepx=0
|
||||
oM.level[5].clippx=10
|
||||
|
||||
oM.level[6]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[6].clippx=10
|
||||
oM.level[6].regClass="clS"
|
||||
oM.level[6].overClass="clSover"
|
||||
oM.level[6].border=null
|
||||
oM.level[6].borderClass="clB1"
|
||||
|
||||
oM.level[7]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[7].clippx=10
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oM.makeMenu('top0','','Align left','','',100,'','','','','',"left")
|
||||
oM.makeMenu('0sub10','top0','New scripts','script/index.asp?new=1','',110,20)
|
||||
oM.makeMenu('0sub11','top0','All scripts','script/index.asp','',110,30)
|
||||
oM.makeMenu('0sub13','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('0sub12','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('aa','0sub12','With subs aligned bottom','','',150)
|
||||
oM.makeMenu('','aa','Item')
|
||||
oM.makeMenu('tt','0sub12','Item')
|
||||
oM.makeMenu('','tt','Item')
|
||||
oM.makeMenu('kk','0sub12','Item')
|
||||
oM.makeMenu('','kk','Item')
|
||||
|
||||
oM.makeMenu('top1','','','','',100,0,'img1.gif','img1_on.gif','','',"bottom")
|
||||
oM.makeMenu('1sub10','top1','Different class','script/index.asp?new=1','',150,30,'','','clStest',"clStestover","right")
|
||||
oM.makeMenu('1sub11','top1','Different class','script/index.asp','',150,20,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub12','top1','Regular','','',150,30)
|
||||
oM.makeMenu('1sub13','top1','Different class','script/index.asp','',150,30,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub14','top1','Subs aligned left','','',150,20,'','','','','left')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
oM.makeMenu('bb','1sub14','Subs aligned top','','',150,0,'','','','','top')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
|
||||
|
||||
oM.makeMenu('top2','','Align top','','',100,0,'','','','',"top",0)
|
||||
oM.makeMenu('2sub12','top2','Columns<br>aligned<br>topleft','','',94,70,'','','','','topleft')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('2sub10','top2','','','',94,20,'img_sub.gif','img_sub_on.gif')
|
||||
oM.makeMenu('2sub11','top2','All scripts','script/index.asp','',94,20)
|
||||
|
||||
oM.makeMenu('top3','','Align right','','',100,0,'','','','',"right")
|
||||
oM.makeMenu('3sub10','top3','No link item','','',150,30,'','','','','','',1)
|
||||
oM.makeMenu('3sub11','top3','Columns aligned bottom left','','',150,30,'','','','','bottomleft')
|
||||
oM.makeMenu('cc','3sub11','Align bottom','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','cc','Item','','',150)
|
||||
oM.makeMenu('ff','cc','Align left with filter (ie only)<br>Go down for more add-in<br>effects','','',150,50,'','','','','left')
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('ee','ff','Align righttop with slide','','',130,0,'','','','','righttop')
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('','ee','Nolink','','',0,0,'','','clNoLink2','','','',1)
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('dd','ff','Align lefttop with slide','','',130,0,'','','','','lefttop')
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('gg','dd','Align bottom with clip','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('hh','gg','columns with clip','','',150,0)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Nolink','','',50,0,'','','clNoLink3','','','',1)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
|
||||
oM.construct()
|
||||
|
||||
|
||||
//Extra test code to customize the CoolMenus - moving the items to totally different positions:
|
||||
oM.m["top0"].b.moveIt(100,100)
|
||||
oM.m["top1"].b.moveIt(50,50)
|
||||
oM.m["top2"].b.moveIt(cmpage.x2-150,cmpage.y2-100)
|
||||
oM.m["top3"].b.moveIt(500,200)
|
||||
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<a href="#" onclick="oM.m['top0'].b.moveIt(xx,yy); oM.showsub('top0'); return false">Click me to show a menu</a>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,253 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* DEFAULT STYLES ---- NEEEDED START */
|
||||
.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}
|
||||
/* DEFAULT STYLES ---- NEEEDED END */
|
||||
.clT,.clTover,.clS,.clSover,.clS2,.clS2over{position:absolute; width:120; font-family:arial,helvetica; cursor:pointer; cursor:hand; ;}
|
||||
.clT,.clTover{padding:4px; font-size:12px; font-weight:bold}
|
||||
.clS,.clSover{padding:2px; font-size:11px; font-weight:bold}
|
||||
.clS2,.clS2over{padding:2px; font-size:11px;}
|
||||
.clT,.clS,.clS2{color:#006699; background-color:#CDDBEB; layer-background-color:#CDDBEB;}
|
||||
.clTover{color:#FCCE55; background-color:#336699; layer-background-color:#336699;}
|
||||
.clSover{color:white; background-color:#339966; layer-background-color:#339966}
|
||||
.clS2{background-color:silver; width:230; layer-background-color:silver;}
|
||||
.clS2over{background-color:#00cccc; width:230; layer-background-color:#00cccc; color:black}
|
||||
.clStest{position:absolute; font-family:verdana; font-size:10px; color:red; layer-background-color:silver; background-color:silver;cursor:pointer; cursor:hand; }
|
||||
.clStestover{position:absolute; color:#ffff33; font-weight:bold; font-family:courier; layer-background-color:#00ccff; background-color:#00ccff; cursor:pointer; cursor:hand; }
|
||||
.clB1{position:absolute; layer-background-color:#ff9933; background-color:#ff9933; visibility:hidden}
|
||||
.clB2{position:absolute; layer-background-color:#996600; background-color:#996600; visibility:hidden}
|
||||
.clB3{position:absolute; layer-background-color:red; background-color:red; visibility:hidden}
|
||||
.clB{position:absolute; background-color:#336699; layer-background-color:#336699; visibility:hidden}
|
||||
.clBar{position:absolute; width:10; height:10; visibility:hidden; layer-background-color:#336699; background-color:#336699;}
|
||||
.clNoLink{position:absolute; font-family:arial,helvetica;}
|
||||
.clNoLink2{position:absolute; padding:2px; font-size:11px; color:#006699; layer-background-color:silver; background-color:silver; font-family:arial,helvetica;}
|
||||
.clNoLink3{position:absolute; background-color:#CDDBEB; layer-background-color:#CDDBEB; font-family:arial,helvetica;}
|
||||
</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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin=0 marginheight=0>
|
||||
|
||||
<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.
|
||||
**/
|
||||
|
||||
var oM=new makeCM("oM")
|
||||
oM.pxBetween =0
|
||||
oM.fromTop=280
|
||||
oM.fromLeft=10
|
||||
oM.menuPlacement="center"
|
||||
oM.wait=600
|
||||
oM.fillImg="cm_fill.gif"
|
||||
oM.zIndex=100
|
||||
oM.resizeCheck=1
|
||||
oM.zIndex=100
|
||||
|
||||
oM.onlineRoot=""
|
||||
oM.offlineRoot="file:///C|/myfiles/"
|
||||
|
||||
oM.rows=1
|
||||
|
||||
//Background bar properties
|
||||
oM.useBar=0
|
||||
oM.barWidth="100%"
|
||||
oM.barHeight="menu"
|
||||
oM.barX=0
|
||||
oM.barY="menu"
|
||||
oM.barClass="clBar"
|
||||
oM.barBorderX=0
|
||||
oM.barBorderY=2
|
||||
oM.barBorderClass="clB3"
|
||||
|
||||
|
||||
//Level properties
|
||||
//Syntax for fast creation (advanced users only)
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
|
||||
oM.level[0]=new cm_makeLevel()
|
||||
oM.level[0].width=120
|
||||
oM.level[0].height=20
|
||||
oM.level[0].regClass="clT"
|
||||
oM.level[0].overClass="clTover"
|
||||
oM.level[0].borderX=1
|
||||
oM.level[0].borderY=5
|
||||
oM.level[0].borderClass="clB2"
|
||||
oM.level[0].rows=0
|
||||
oM.level[0].align="bottom"
|
||||
oM.level[0].offsetX=0
|
||||
oM.level[0].offsetY=0
|
||||
oM.level[0].arrow=0
|
||||
oM.level[0].arrowWidth=0
|
||||
oM.level[0].arrowHeight=0
|
||||
|
||||
|
||||
oM.level[1]=new cm_makeLevel()
|
||||
oM.level[1].width=120
|
||||
oM.level[1].height=null
|
||||
oM.level[1].regClass="clS"
|
||||
oM.level[1].overClass="clSover"
|
||||
oM.level[1].borderX=1
|
||||
oM.level[1].borderY=10
|
||||
oM.level[1].borderClass="clB1"
|
||||
oM.level[1].align="bottomright"
|
||||
oM.level[1].rows=1
|
||||
oM.level[1].arrow="menu_arrow.gif"
|
||||
oM.level[1].arrowWidth=10
|
||||
oM.level[1].arrowHeight=10
|
||||
|
||||
oM.level[2]=new cm_makeLevel()
|
||||
oM.level[2].width=60
|
||||
oM.level[2].height=22
|
||||
oM.level[2].borderClass="clB3"
|
||||
oM.level[2].regClass="clS2"
|
||||
oM.level[2].borderX=3
|
||||
oM.level[2].borderY=1
|
||||
oM.level[2].rows=0
|
||||
oM.level[2].borderX=5
|
||||
oM.level[2].borderY=2
|
||||
oM.level[2].offsetX=0
|
||||
oM.level[2].offsetY=0
|
||||
oM.level[2].overClass="clS2over"
|
||||
oM.level[2].align="bottom"
|
||||
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
oM.level[3]=new cm_makeLevel(0,0,"","",3,3,"clB",0,"left")
|
||||
oM.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
|
||||
|
||||
oM.level[4]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[4].filter=""
|
||||
oM.level[4].slidepx=10
|
||||
|
||||
|
||||
oM.level[5]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[5].slidepx=0
|
||||
oM.level[5].clippx=10
|
||||
|
||||
oM.level[6]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[6].clippx=10
|
||||
oM.level[6].regClass="clS"
|
||||
oM.level[6].overClass="clSover"
|
||||
oM.level[6].border=null
|
||||
oM.level[6].borderClass="clB1"
|
||||
|
||||
oM.level[7]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[7].clippx=10
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oM.makeMenu('top0','','Align left','','',100,'','','','','',"left")
|
||||
oM.makeMenu('0sub10','top0','New scripts','script/index.asp?new=1','',110,20)
|
||||
oM.makeMenu('0sub11','top0','All scripts','script/index.asp','',110,30)
|
||||
oM.makeMenu('0sub13','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('0sub12','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('aa','0sub12','With subs aligned bottom','','',150)
|
||||
oM.makeMenu('','aa','Item')
|
||||
oM.makeMenu('tt','0sub12','Item')
|
||||
oM.makeMenu('','tt','Item')
|
||||
oM.makeMenu('kk','0sub12','Item')
|
||||
oM.makeMenu('','kk','Item')
|
||||
|
||||
oM.makeMenu('top1','','','','',100,0,'img1.gif','img1_on.gif','','',"bottom")
|
||||
oM.makeMenu('1sub10','top1','Different class','script/index.asp?new=1','',150,30,'','','clStest',"clStestover","right")
|
||||
oM.makeMenu('1sub11','top1','Different class','script/index.asp','',150,20,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub12','top1','Regular','','',150,30)
|
||||
oM.makeMenu('1sub13','top1','Different class','script/index.asp','',150,30,'','','clStest',"clStestover")
|
||||
|
||||
|
||||
oM.makeMenu('top2','','Align top','','',100,0,'','','','',"top",0)
|
||||
oM.makeMenu('2sub12','top2','Columns<br>aligned<br>topleft','','',94,70,'','','','','topleft')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('2sub10','top2','','','',94,20,'img_sub.gif','img_sub_on.gif')
|
||||
oM.makeMenu('2sub11','top2','All scripts','script/index.asp','',94,20)
|
||||
|
||||
oM.makeMenu('top3','','Align right','','',100,0,'','','','',"right")
|
||||
oM.makeMenu('3sub10','top3','No link item','','',150,30,'','','','','','',1)
|
||||
oM.makeMenu('3sub11','top3','Columns aligned bottom left','','',150,30,'','','','','bottomleft')
|
||||
oM.makeMenu('cc','3sub11','Align bottom','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','cc','Item','','',150)
|
||||
oM.makeMenu('ff','cc','Align left with filter (ie only)<br>Go down for more add-in<br>effects','','',150,50,'','','','','left')
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('ee','ff','Align righttop with slide','','',130,0,'','','','','righttop')
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('','ee','Nolink','','',0,0,'','','clNoLink2','','','',1)
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('dd','ff','Align lefttop with slide','','',130,0,'','','','','lefttop')
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('gg','dd','Align bottom with clip','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('hh','gg','columns with clip','','',150,0)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Nolink','','',50,0,'','','clNoLink3','','','',1)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
|
||||
oM.construct()
|
||||
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Change alignment of the first menu:<br>
|
||||
<a href="#" onclick="oM.m['top0'].subx=0; oM.m['top0'].align=cm_checkalign('bottom'); return false">bottom</a>
|
||||
<a href="#" onclick="oM.m['top0'].subx=0; oM.m['top0'].align=cm_checkalign('top'); return false">top</a>
|
||||
<br>
|
||||
<br>
|
||||
Change the rows of the second item:<br>
|
||||
<a href="#" onclick="oM.m['top1'].subx=0; oM.m['top1'].rows=1; return false">On</a>
|
||||
<a href="#" onclick="oM.m['top1'].subx=0; oM.m['top1'].rows=0; return false">Off</a>
|
||||
|
||||
<!-- We have to set the subx to zero because if now it try and use the last created coords -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,270 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* DEFAULT STYLES ---- NEEEDED START */
|
||||
.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}
|
||||
/* DEFAULT STYLES ---- NEEEDED END */
|
||||
.clT,.clTover,.clS,.clSover,.clS2,.clS2over{position:absolute; width:120; font-family:arial,helvetica; cursor:pointer; cursor:hand; ;}
|
||||
.clT,.clTover{padding:4px; font-size:12px; font-weight:bold}
|
||||
.clS,.clSover{padding:2px; font-size:11px; font-weight:bold}
|
||||
.clS2,.clS2over{padding:2px; font-size:11px;}
|
||||
.clT,.clS,.clS2{color:#006699; background-color:#CDDBEB; layer-background-color:#CDDBEB;}
|
||||
.clTover{color:#FCCE55; background-color:#336699; layer-background-color:#336699;}
|
||||
.clSover{color:white; background-color:#339966; layer-background-color:#339966}
|
||||
.clS2{background-color:silver; width:230; layer-background-color:silver;}
|
||||
.clS2over{background-color:#00cccc; width:230; layer-background-color:#00cccc; color:black}
|
||||
.clStest{position:absolute; font-family:verdana; font-size:10px; color:red; layer-background-color:silver; background-color:silver;cursor:pointer; cursor:hand; }
|
||||
.clStestover{position:absolute; color:#ffff33; font-weight:bold; font-family:courier; layer-background-color:#00ccff; background-color:#00ccff; cursor:pointer; cursor:hand; }
|
||||
.clB1{position:absolute; layer-background-color:#ff9933; background-color:#ff9933; visibility:hidden}
|
||||
.clB2{position:absolute; layer-background-color:#996600; background-color:#996600; visibility:hidden}
|
||||
.clB3{position:absolute; layer-background-color:red; background-color:red; visibility:hidden}
|
||||
.clB{position:absolute; background-color:#336699; layer-background-color:#336699; visibility:hidden}
|
||||
.clBar{position:absolute; width:10; height:10; visibility:hidden; layer-background-color:#336699; background-color:#336699;}
|
||||
.clNoLink{position:absolute; font-family:arial,helvetica;}
|
||||
.clNoLink2{position:absolute; padding:2px; font-size:11px; color:#006699; layer-background-color:silver; background-color:silver; font-family:arial,helvetica;}
|
||||
.clNoLink3{position:absolute; background-color:#CDDBEB; layer-background-color:#CDDBEB; font-family:arial,helvetica;}
|
||||
</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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin=0 marginheight=0>
|
||||
|
||||
<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.
|
||||
**/
|
||||
|
||||
var oM=new makeCM("oM")
|
||||
oM.pxBetween =0
|
||||
oM.fromTop=0
|
||||
oM.fromLeft=10
|
||||
oM.menuPlacement="center"
|
||||
oM.wait=600
|
||||
oM.fillImg="cm_fill.gif"
|
||||
oM.zIndex=100
|
||||
oM.resizeCheck=1
|
||||
oM.zIndex=100
|
||||
|
||||
oM.onlineRoot=""
|
||||
oM.offlineRoot="file:///C|/myfiles/"
|
||||
|
||||
oM.rows=1
|
||||
|
||||
//Background bar properties
|
||||
oM.useBar=1
|
||||
oM.barWidth="100%"
|
||||
oM.barHeight="menu"
|
||||
oM.barX=0
|
||||
oM.barY="menu"
|
||||
oM.barClass="clBar"
|
||||
oM.barBorderX=0
|
||||
oM.barBorderY=2
|
||||
oM.barBorderClass="clB3"
|
||||
|
||||
|
||||
//Level properties
|
||||
//Syntax for fast creation (advanced users only)
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
|
||||
oM.level[0]=new cm_makeLevel()
|
||||
oM.level[0].width=120
|
||||
oM.level[0].height=20
|
||||
oM.level[0].regClass="clT"
|
||||
oM.level[0].overClass="clTover"
|
||||
oM.level[0].borderX=1
|
||||
oM.level[0].borderY=0
|
||||
oM.level[0].borderClass="clB2"
|
||||
oM.level[0].rows=0
|
||||
oM.level[0].align="bottom"
|
||||
oM.level[0].offsetX=0
|
||||
oM.level[0].offsetY=0
|
||||
oM.level[0].arrow=0
|
||||
oM.level[0].arrowWidth=0
|
||||
oM.level[0].arrowHeight=0
|
||||
|
||||
|
||||
oM.level[1]=new cm_makeLevel()
|
||||
oM.level[1].width=120
|
||||
oM.level[1].height=null
|
||||
oM.level[1].regClass="clS"
|
||||
oM.level[1].overClass="clSover"
|
||||
oM.level[1].borderX=1
|
||||
oM.level[1].borderY=10
|
||||
oM.level[1].borderClass="clB1"
|
||||
oM.level[1].align="bottomright"
|
||||
oM.level[1].rows=1
|
||||
oM.level[1].arrow="menu_arrow.gif"
|
||||
oM.level[1].arrowWidth=10
|
||||
oM.level[1].arrowHeight=10
|
||||
|
||||
oM.level[2]=new cm_makeLevel()
|
||||
oM.level[2].width=60
|
||||
oM.level[2].height=22
|
||||
oM.level[2].borderClass="clB3"
|
||||
oM.level[2].regClass="clS2"
|
||||
oM.level[2].borderX=3
|
||||
oM.level[2].borderY=1
|
||||
oM.level[2].rows=0
|
||||
oM.level[2].borderX=5
|
||||
oM.level[2].borderY=2
|
||||
oM.level[2].offsetX=0
|
||||
oM.level[2].offsetY=0
|
||||
oM.level[2].overClass="clS2over"
|
||||
oM.level[2].align="bottom"
|
||||
|
||||
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
oM.level[3]=new cm_makeLevel(0,0,"","",3,3,"clB",0,"left")
|
||||
oM.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
|
||||
|
||||
oM.level[4]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[4].filter=""
|
||||
oM.level[4].slidepx=10
|
||||
|
||||
|
||||
oM.level[5]=new cm_makeLevel(0,0,"","",3,3,"clB2",0,"left")
|
||||
oM.level[5].slidepx=0
|
||||
oM.level[5].clippx=10
|
||||
|
||||
oM.level[6]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[6].clippx=10
|
||||
oM.level[6].regClass="clS"
|
||||
oM.level[6].overClass="clSover"
|
||||
oM.level[6].border=null
|
||||
oM.level[6].borderClass="clB1"
|
||||
|
||||
oM.level[7]=new cm_makeLevel(0,0,"","",3,3,"clB2",1,"right")
|
||||
oM.level[7].clippx=10
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oM.makeMenu('top0','','Align left','other_tests/test.html','',100,'','','','','',"left")
|
||||
oM.makeMenu('0sub10','top0','New scripts','test.html','',110,20)
|
||||
oM.makeMenu('0sub11','top0','All scripts','script/index.asp','',110,30)
|
||||
oM.makeMenu('0sub13','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('0sub12','top0','Sub columns<br>aligned bottom','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('','0sub12','Item')
|
||||
oM.makeMenu('aa','0sub12','With subs aligned bottom','','',150)
|
||||
oM.makeMenu('','aa','Item')
|
||||
oM.makeMenu('tt','0sub12','Item')
|
||||
oM.makeMenu('','tt','Item')
|
||||
oM.makeMenu('kk','0sub12','Item')
|
||||
oM.makeMenu('','kk','Item')
|
||||
|
||||
oM.makeMenu('top1','','','','',100,0,'img1.gif','img1_on.gif','','',"bottom")
|
||||
oM.makeMenu('1sub10','top1','Different class','script/index.asp?new=1','',150,30,'','','clStest',"clStestover","right")
|
||||
oM.makeMenu('1sub11','top1','Different class','script/index.asp','',150,20,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub12','top1','Regular','','',150,30)
|
||||
oM.makeMenu('1sub13','top1','Different class','script/index.asp','',150,30,'','','clStest',"clStestover")
|
||||
oM.makeMenu('1sub14','top1','Subs aligned left','','',150,20,'','','','','left')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
oM.makeMenu('bb','1sub14','Subs aligned top','','',150,0,'','','','','top')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
|
||||
|
||||
oM.makeMenu('top2','','Align top','','',100,0,'','','','',"top",0)
|
||||
oM.makeMenu('2sub12','top2','Columns<br>aligned<br>topleft','','',94,70,'','','','','topleft')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('','2sub12','Item')
|
||||
oM.makeMenu('2sub10','top2','','','',94,20,'img_sub.gif','img_sub_on.gif')
|
||||
oM.makeMenu('2sub11','top2','All scripts','script/index.asp','',94,20)
|
||||
|
||||
oM.makeMenu('top3','','Align right','','',100,0,'','','','',"right")
|
||||
oM.makeMenu('3sub10','top3','No link item','','',150,30,'','','','','','',1)
|
||||
oM.makeMenu('3sub11','top3','Columns aligned bottom left','','',150,30,'','','','','bottomleft')
|
||||
oM.makeMenu('cc','3sub11','Align bottom','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','cc','Item','','',150)
|
||||
oM.makeMenu('ff','cc','Align left with filter (ie only)<br>Go down for more add-in<br>effects','','',150,50,'','','','','left')
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('','ff','Item','','',130)
|
||||
oM.makeMenu('ee','ff','Align righttop with slide','','',130,0,'','','','','righttop')
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('','ee','Nolink','','',0,0,'','','clNoLink2','','','',1)
|
||||
oM.makeMenu('','ee','Item','')
|
||||
oM.makeMenu('dd','ff','Align lefttop with slide','','',130,0,'','','','','lefttop')
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('','dd','Item','','',150)
|
||||
oM.makeMenu('gg','dd','Align bottom with clip','','',150,0,'','','','','bottom')
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('','gg','Item','','',150)
|
||||
oM.makeMenu('hh','gg','columns with clip','','',150,0)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Nolink','','',50,0,'','','clNoLink3','','','',1)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','hh','Item','','',50)
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
oM.makeMenu('','3sub11','Item')
|
||||
|
||||
oM.construct()
|
||||
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Hide subs example:<br>
|
||||
<a href="#" onclick="oM.m['0sub10'].hide=1">Turn of sub "0sub10" - oM.m['0sub10'].hide=1</a>
|
||||
<br>
|
||||
<a href="#" onclick="oM.m['0sub10'].hide=0">Turn on sub "0sub10" - oM.m['0sub10'].hide=0</a>
|
||||
<br>
|
||||
<a href="#" onclick="oM.m['0sub11'].hide=1">Turn of sub "0sub11" - oM.m['0sub11'].hide=1</a>
|
||||
<br>
|
||||
<a href="#" onclick="oM.m['0sub11'].hide=0">Turn on sub "0sub11" - oM.m['0sub11'].hide=0</a>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,167 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style type="text/css">
|
||||
.clCMEvent{position:absolute; width:99%; height:99%; left:0px; top:0px; visibility:visible}
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0px; top:0px}
|
||||
.clT,.clTover{position:absolute; padding:4px; font-size:12px; font-weight:bold; width:120px; font-family:arial,helvetica,serif; cursor:pointer;}
|
||||
.clT{color:#006699; background-color:#CDDBEB;}
|
||||
.clTover{color:#FCCE55; background-color:#336699;}
|
||||
.clB{position:absolute; color:#FFFFFF; background-color: #ff0000; visibility:hidden}
|
||||
.clB1{position:absolute; color:#FFFFFF; background-color: #996600; visibility:hidden}
|
||||
.clBar{position:absolute; color:#FFFFFF; width:10px; height:10px; visibility:hidden; background-color: #336699;}
|
||||
</style>
|
||||
<script src="coolmenus4.js" type="text/javascript">
|
||||
/*****************************************************************************
|
||||
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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script src="cm_addins.js" type="text/javascript">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script type="text/javascript">
|
||||
/***
|
||||
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.
|
||||
**/
|
||||
|
||||
//Setting IE5.5 and IE6 to use dom creation for standard compatability - though you don't really need to
|
||||
//bw.usedom=bw.ns6||bw.ie6||bw.ie55
|
||||
|
||||
var oM=new makeCM("oM")
|
||||
oM.pxBetween =0
|
||||
oM.fromTop=0
|
||||
oM.fromLeft=10
|
||||
oM.menuPlacement="center"
|
||||
oM.wait=600
|
||||
oM.fillImg="cm_fill.gif"
|
||||
oM.zIndex=100
|
||||
oM.resizeCheck=1
|
||||
oM.zIndex=100
|
||||
|
||||
oM.onlineRoot=""
|
||||
oM.offlineRoot="file:///C|/myfiles/"
|
||||
|
||||
oM.rows=1
|
||||
|
||||
//Background bar properties
|
||||
oM.useBar=1
|
||||
oM.barWidth="100%"
|
||||
oM.barHeight="menu"
|
||||
oM.barX=0
|
||||
oM.barY="menu"
|
||||
oM.barClass="clBar"
|
||||
oM.barBorderX=0
|
||||
oM.barBorderY=2
|
||||
oM.barBorderClass="clB1"
|
||||
|
||||
|
||||
//Level properties
|
||||
//Syntax for fast creation (advanced users only)
|
||||
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
|
||||
|
||||
oM.level[0]=new cm_makeLevel()
|
||||
oM.level[0].width=120
|
||||
oM.level[0].height=20
|
||||
oM.level[0].regClass="clT"
|
||||
oM.level[0].overClass="clTover"
|
||||
oM.level[0].borderX=1
|
||||
oM.level[0].borderY=1
|
||||
oM.level[0].borderClass="clB"
|
||||
oM.level[0].rows=0
|
||||
oM.level[0].align="bottom"
|
||||
oM.level[0].offsetX=0
|
||||
oM.level[0].offsetY=0
|
||||
oM.level[0].arrow="menu_arrow.gif"
|
||||
oM.level[0].arrowWidth=10
|
||||
oM.level[0].arrowHeight=10
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oM.makeMenu('top0','','Align left','other_tests/test.html','',100)
|
||||
oM.makeMenu('0sub10','top0','New scripts','test.html','',110,20)
|
||||
oM.makeMenu('0sub11','top0','All scripts','script/index.asp','',110,30)
|
||||
oM.makeMenu('0sub13','top0','Sub columns','','',110,80,'','','',0,'right')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
oM.makeMenu('','0sub13','Item')
|
||||
|
||||
|
||||
oM.makeMenu('top1','','','','',100,0,'img1.gif','img1_on.gif')
|
||||
oM.makeMenu('1sub10','top1','Different class','script/index.asp?new=1','',150,30)
|
||||
oM.makeMenu('1sub11','top1','Different class','script/index.asp','',150,20)
|
||||
oM.makeMenu('1sub12','top1','Regular','','',150,30)
|
||||
oM.makeMenu('1sub13','top1','Different class','script/index.asp')
|
||||
oM.makeMenu('1sub14','top1','Subs','','',150,20)
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
oM.makeMenu('bb','1sub14','Subs aligned top')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','bb','Item')
|
||||
oM.makeMenu('','1sub14','Item')
|
||||
|
||||
oM.construct()
|
||||
|
||||
|
||||
function loopNodes(){
|
||||
|
||||
}
|
||||
</script>
|
||||
<p>
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
Small example using a "proper" xhtml DTD.
|
||||
<br />
|
||||
<br />
|
||||
This will work in all browsers but NS4 will not show a proper background-color because of the missing layer-background-color
|
||||
in the stylesheet.
|
||||
<br />
|
||||
<br />
|
||||
The output for NS4 will not validate because of the name attribute added to images, but then again NS4 is the only
|
||||
browser that will see that (NS4 also writes all tags upper-case when you use document.write). You
|
||||
can see the NS4 output <a href="html/ns4_DTD_output.html">here</a>.
|
||||
<br />
|
||||
<br />
|
||||
The output for Opera will not validate either because I have to use border="0" on the image tags. You can
|
||||
see the Opera output <a href="html/opera_DTD_output.html">here</a>
|
||||
<br />
|
||||
<br />
|
||||
The output for IE4 and IE5 (and IE5.5 and IE6 if you don't use dom creation) will validate.
|
||||
You can see the output <a href="html/ie_DTD_output.html">here</a>
|
||||
<br />
|
||||
<br />
|
||||
The output for the DOM browsers is a little worse to display. But if your using mozilla you can try the dom
|
||||
inspector on this page.
|
||||
<br />
|
||||
<br />
|
||||
You have to view source on the source pages to see the actual output. The script creation is removed so
|
||||
the pages will not work.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,272 +0,0 @@
|
|||
<%@LANGUAGE = "JAVASCRIPT"%>
|
||||
<html>
|
||||
<head>
|
||||
<title>ASP example</title>
|
||||
<style>
|
||||
BODY{
|
||||
font-family:arial,helvetica;
|
||||
font-size:12px;
|
||||
}
|
||||
code,pre{
|
||||
color:red;
|
||||
}
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
|
||||
<%
|
||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
ASP CODE START - READING ITEMS FROM THE DATABASE
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||
function readItemsFromDatabase(){
|
||||
//The path to your database:
|
||||
var db ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("menu.mdb")
|
||||
|
||||
var q = "SELECT menuID,mName,mLink,parent from tblMenu ORDER BY parent,menuID ASC"
|
||||
|
||||
var rs=Server.CreateObject("ADODB.Recordset")
|
||||
rs.CacheSize = 25; // Cache data fetching
|
||||
rs.CursorType = 3
|
||||
rs.LockType = 3
|
||||
|
||||
//Opening database --- --
|
||||
rs.Open(q,db)
|
||||
|
||||
//Now using getRows because that's so sexy :}
|
||||
if(!rs.EOF){
|
||||
var rsarr = rs.GetRows();
|
||||
rsarr = rsarr.toArray();
|
||||
var cols= rs.Fields.Count //Setting how much to add to row each for
|
||||
}else var rsarr=new Array()
|
||||
|
||||
//Closing database, we don't need it anymore - we have the info in the array
|
||||
rs.close()
|
||||
rs = null
|
||||
|
||||
var menuID,mName,mLink,parent
|
||||
|
||||
for(row=0;row<rsarr.length;row+=cols){ //Looping rows
|
||||
//Setting variables
|
||||
menuID = "m" + rsarr[row]
|
||||
mName = rsarr[row+1]
|
||||
mLink = String(rsarr[row+2])
|
||||
if(mLink=="null") mLink=""
|
||||
parent = rsarr[row+3]
|
||||
if(parent!=0) parent = "m" + parent
|
||||
else parent=""
|
||||
//Making menu item
|
||||
Response.write("oCMenu.makeMenu('"+menuID+"','"+parent+"','"+mName+"','"+mLink+"')\n")
|
||||
}
|
||||
}
|
||||
//Calling function
|
||||
readItemsFromDatabase()
|
||||
|
||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
ASP CODE END - READING ITEMS FROM THE DATABASE
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||
%>
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
This file is a simple example of how to get items from a access database. I code ASP with javascript so the example
|
||||
is in javascript. I will make a more advances example later. The table consist of 4 simple columns:
|
||||
<br>
|
||||
<br>
|
||||
<code>menuID</code> - Autonumber - the id of the menuitem.<br>
|
||||
<code>mName</code> - String - The menu name<br>
|
||||
<code>mLink</code> - String - The link<br>
|
||||
<code>parent</code> - Number - a recursive relation to menuID.<br>
|
||||
<br>
|
||||
<br>
|
||||
This can rather easily be converted to control the entire menu and by adding a server-side admin *anyone* could
|
||||
easily change the menu. The new menumaker that I will hopefully soon have time
|
||||
to make will probably use something like this.
|
||||
<br>
|
||||
<br>
|
||||
On this site I use a similar approuch, the only difference is that I make a js file everytime I update, that way
|
||||
I don't have to get the items from the database on every visit. I will try and make an example like that as well later.
|
||||
<br>
|
||||
<br>
|
||||
|
||||
ASP source-code:
|
||||
<pre>
|
||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
ASP CODE START - READING ITEMS FROM THE DATABASE
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||
function readItemsFromDatabase(){
|
||||
//The path to your database:
|
||||
var db ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("menu.mdb")
|
||||
|
||||
var q = "SELECT menuID,mName,mLink,parent from tblMenu ORDER BY parent,menuID ASC"
|
||||
|
||||
var rs=Server.CreateObject("ADODB.Recordset")
|
||||
rs.CacheSize = 25; // Cache data fetching
|
||||
rs.CursorType = 3
|
||||
rs.LockType = 3
|
||||
|
||||
//Opening database --- --
|
||||
rs.Open(q,db)
|
||||
|
||||
//Now using getRows because that's so sexy :}
|
||||
if(!rs.EOF){
|
||||
var rsarr = rs.GetRows();
|
||||
rsarr = rsarr.toArray();
|
||||
var cols= rs.Fields.Count //Setting how much to add to row each for
|
||||
}else var rsarr=new Array()
|
||||
|
||||
//Closing database, we don't need it anymore - we have the info in the array
|
||||
rs.close()
|
||||
rs = null
|
||||
|
||||
var menuID,mName,mLink,parent
|
||||
|
||||
for(row=0;row<rsarr.length;row+=cols){ //Looping rows
|
||||
//Setting variables
|
||||
menuID = "m" + rsarr[row]
|
||||
mName = rsarr[row+1]
|
||||
mLink = String(rsarr[row+2])
|
||||
if(mLink=="null") mLink=""
|
||||
parent = rsarr[row+3]
|
||||
if(parent!=0) parent = "m" + parent
|
||||
else parent=""
|
||||
//Making menu item
|
||||
Response.write("oCMenu.makeMenu('"+menuID+"','"+parent+"','"+mName+"','"+mLink+"')\n")
|
||||
}
|
||||
}
|
||||
//Calling function
|
||||
readItemsFromDatabase()
|
||||
|
||||
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
ASP CODE END - READING ITEMS FROM THE DATABASE
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,283 +0,0 @@
|
|||
<%@LANGUAGE = "VBSCRIPT"%>
|
||||
<html>
|
||||
<head>
|
||||
<title>ASP example</title>
|
||||
<style>
|
||||
BODY{
|
||||
font-family:arial,helvetica;
|
||||
font-size:12px;
|
||||
}
|
||||
code,pre{
|
||||
color:red;
|
||||
}
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
<%
|
||||
'*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
'ASP CODE START - READING ITEMS FROM THE DATABASE
|
||||
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
Sub readItemsFromDatabase
|
||||
'The path to your database:
|
||||
Dim db,q,rs,rsarr,menuID,mName,mLink,parent,cols,max
|
||||
|
||||
db ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("menu.mdb")
|
||||
|
||||
q = "SELECT menuID,mName,mLink,parent from tblMenu ORDER BY parent,menuID ASC"
|
||||
|
||||
Set rs=Server.CreateObject("ADODB.Recordset")
|
||||
rs.CacheSize = 25 ' Cache data fetching
|
||||
rs.CursorType = 3
|
||||
rs.LockType = 3
|
||||
|
||||
'Opening database --- --
|
||||
rs.Open q,db
|
||||
|
||||
'Now using getRows because that's so sexy :}
|
||||
if NOT rs.EOF then
|
||||
rsarr = rs.GetRows()
|
||||
max = Ubound(rsarr,2)
|
||||
|
||||
else
|
||||
max = 0
|
||||
end if
|
||||
'Closing database, we don't need it anymore - we have the info in the array
|
||||
rs.close()
|
||||
Set rs = Nothing
|
||||
|
||||
row=0
|
||||
do while(row<=max) 'Looping rows
|
||||
'Setting variables
|
||||
menuID = "m" & rsarr(0,row)
|
||||
mName = rsarr(1,row)
|
||||
mLink = rsarr(2,row)
|
||||
if(mLink="null") then mLink=""
|
||||
parent = rsarr(3,row)
|
||||
if(parent<>0) then
|
||||
parent = "m" & parent
|
||||
else
|
||||
parent=""
|
||||
end if
|
||||
'Making menu item
|
||||
Response.write("oCMenu.makeMenu('" & menuID & "','" &parent & "','" & mName & "','" & mLink & "')" & vbcrlf)
|
||||
row = row + 1
|
||||
loop
|
||||
End Sub
|
||||
|
||||
'Calling sub
|
||||
call readItemsFromDatabase
|
||||
|
||||
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
'ASP CODE END - READING ITEMS FROM THE DATABASE
|
||||
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%>
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
This file is a simple example of how to get items from a access database. It's more or less
|
||||
the same as the javascript example, only coded in VBSCRIPT. I will make a more advanced example later. The table consist of 4 simple columns:
|
||||
<br>
|
||||
<br>
|
||||
<code>menuID</code> - Autonumber - the id of the menuitem.<br>
|
||||
<code>mName</code> - String - The menu name<br>
|
||||
<code>mLink</code> - String - The link<br>
|
||||
<code>parent</code> - Number - a recursive relation to menuID.<br>
|
||||
<br>
|
||||
<br>
|
||||
This can rather easily be converted to control the entire menu and by adding a server-side admin *anyone* could
|
||||
easily change the menu. The new menumaker that I will hopefully soon have time
|
||||
to make will probably use something like this.
|
||||
<br>
|
||||
<br>
|
||||
On this site I use a similar approuch, the only difference is that I make a js file everytime I update, that way
|
||||
I don't have to get the items from the database on every visit. I will try and make an example like that as well later.
|
||||
<br>
|
||||
<br>
|
||||
|
||||
ASP source-code:
|
||||
<pre>
|
||||
'*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
'ASP CODE START - READING ITEMS FROM THE DATABASE
|
||||
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
Sub readItemsFromDatabase
|
||||
'The path to your database:
|
||||
Dim db,q,rs,rsarr,menuID,mName,mLink,parent,cols,max
|
||||
|
||||
db ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("menu.mdb")
|
||||
|
||||
q = "SELECT menuID,mName,mLink,parent from tblMenu ORDER BY parent,menuID ASC"
|
||||
|
||||
Set rs=Server.CreateObject("ADODB.Recordset")
|
||||
rs.CacheSize = 25 ' Cache data fetching
|
||||
rs.CursorType = 3
|
||||
rs.LockType = 3
|
||||
|
||||
'Opening database --- --
|
||||
rs.Open q,db
|
||||
|
||||
'Now using getRows because that's so sexy :}
|
||||
if NOT rs.EOF then
|
||||
rsarr = rs.GetRows()
|
||||
max = Ubound(rsarr,2)
|
||||
else
|
||||
max = 0
|
||||
end if
|
||||
'Closing database, we don't need it anymore - we have the info in the array
|
||||
rs.close()
|
||||
Set rs = Nothing
|
||||
|
||||
row=0
|
||||
do while(row<=max) 'Looping rows
|
||||
'Setting variables
|
||||
menuID = "m" & rsarr(0,row)
|
||||
mName = rsarr(1,row)
|
||||
mLink = rsarr(2,row)
|
||||
if(mLink="null") then mLink=""
|
||||
parent = rsarr(3,row)
|
||||
if(parent<>0) then
|
||||
parent = "m" & parent
|
||||
else
|
||||
parent=""
|
||||
end if
|
||||
'Making menu item
|
||||
Response.write("oCMenu.makeMenu('" & menuID & "','" &parent & "','" & mName & "','" & mLink & "')" & vbcrlf)
|
||||
row = row + 1
|
||||
loop
|
||||
End Sub
|
||||
|
||||
'Calling sub
|
||||
call readItemsFromDatabase
|
||||
|
||||
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
'ASP CODE END - READING ITEMS FROM THE DATABASE
|
||||
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,262 +0,0 @@
|
|||
/******************************************
|
||||
CM_ADD-IN - hideselectboxes (last updated: 11/13/02)
|
||||
IE5+ and NS6+ only - ignores the other browsers
|
||||
|
||||
Because of the selectbox bug in the browsers that makes
|
||||
selectboxes have the highest z-index whatever you do
|
||||
this script will check for selectboxes that interfear with
|
||||
your menu items and then hide them.
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page as well.
|
||||
*****************************************/
|
||||
if(bw.dom&&!bw.op){
|
||||
makeCM.prototype.sel=0
|
||||
makeCM.prototype.onshow+=";this.hideselectboxes(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
|
||||
makeCM.prototype.hideselectboxes=function(pm,x,y,w,h,l){
|
||||
var selx,sely,selw,selh,i
|
||||
if(!this.sel){
|
||||
this.sel=this.doc.getElementsByTagName("SELECT")
|
||||
this.sel.level=0
|
||||
}
|
||||
var sel=this.sel
|
||||
for(i=0;i<sel.length;i++){
|
||||
selx=0; sely=0; var selp;
|
||||
if(sel[i].offsetParent){selp=sel[i]; while(selp.offsetParent){selp=selp.offsetParent; selx+=selp.offsetLeft; sely+=selp.offsetTop;}}
|
||||
selx+=sel[i].offsetLeft; sely+=sel[i].offsetTop
|
||||
selw=sel[i].offsetWidth; selh=sel[i].offsetHeight
|
||||
if(selx+selw>x && selx<x+w && sely+selh>y && sely<y+h){
|
||||
if(sel[i].style.visibility!="hidden"){sel[i].level=l; sel[i].style.visibility="hidden"; if(pm){ if(!pm.mout) pm.mout=""; pm.mout+=this.name+".sel["+i+"].style.visibility='visible';"}}
|
||||
}else if(l<=sel[i].level && !(pm&&l==0)) sel[i].style.visibility="visible"
|
||||
}
|
||||
}
|
||||
}
|
||||
/******************************************
|
||||
CM_ADD-IN - checkscrolled (last updated: 01/29/02)
|
||||
This is supported by all browsers
|
||||
- IE5 for MAC has some screen refreshing problems
|
||||
- Using this for non-ie browsers might slow down the page
|
||||
because the other browsers do not support the onscroll event
|
||||
so the script uses a timer.
|
||||
|
||||
Now with two new features.
|
||||
- Set scrollstop to 1 to get another scrolling effect.
|
||||
If you do it will work the way it does on DHTMLCentral.com.
|
||||
Note that this feature is not perfect on menus not in rows.
|
||||
- If you have the hideselectboxes add-in as well this function
|
||||
will now check for interfearing selectboxes when you scroll as
|
||||
well.
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page as well.
|
||||
*****************************************/
|
||||
if(bw.ie) makeCM.prototype.onconstruct='document.body.onscroll=new Function(c.name+".checkscrolled("+c.name+")")'
|
||||
else makeCM.prototype.onconstruct='setTimeout(c.name+".checkscrolled()",200)' //REMOVE THIS LINE TO HAVE SCROLLING ON FOR EXPLORER ONLY!!
|
||||
makeCM.prototype.lscroll=0
|
||||
makeCM.prototype.scrollstop=0 //Set this variable to 1 for another scrolling effect. Leave at 0 to scroll regular
|
||||
makeCM.prototype.checkscrolled=function(obj){
|
||||
var i;
|
||||
if(bw.mac) return //REMOVE THIS LINE TO HAVE SCROLLING ON THE MAC AS WELL - unstable!
|
||||
var c=bw.ie?obj:this, o
|
||||
if(bw.ns4 || bw.ns6 || bw.op5) c.scrollY=window.pageYOffset
|
||||
else c.scrollY=document.body.scrollTop
|
||||
if(c.scrollY!=c.lscroll){
|
||||
c.hidesub()
|
||||
if(c.scrollY>c.fromTop&&c.scrollstop){
|
||||
for(i=0;i<c.l[0].m.length;i++){o=c.m[c.l[0].m[i]].b; o.moveIt(o.x,c.scrollY)}
|
||||
if(c.useBar) c.bar.moveIt(c.bar.x,c.scrollY)
|
||||
}else{
|
||||
if(c.scrollstop){
|
||||
for(i=0;i<c.l[0].m.length;i++){o=c.m[c.l[0].m[i]].b; o.moveIt(o.x,c.fromTop)}
|
||||
if(c.useBar) c.bar.moveIt(c.bar.x,c.barY)
|
||||
}else{
|
||||
for(i=0;i<c.l[0].m.length;i++){o=c.m[c.l[0].m[i]].b; o.moveIt(o.x,o.oy+c.scrollY)}
|
||||
if(c.useBar) c.bar.moveIt(c.bar.x,c.barY+c.scrollY)
|
||||
}
|
||||
}
|
||||
c.lscroll=c.scrollY; cmpage.y=c.scrollY; cmpage.y2=cmpage.orgy+c.scrollY
|
||||
if(bw.ie){ clearTimeout(c.tim); c.isover=0; c.hidesub()}
|
||||
if(c.hideselectboxes){ //If you are using the hideselect add-in as well the script will now check for selectboxes when scrolling as well
|
||||
var x = c.useBar?c.m[c.l[0].m[0]].b.x>c.bar.x?c.bar.x:c.m[c.l[0].m[0]].b.x:c.m[c.l[0].m[0]].b.x;
|
||||
var y = c.useBar?c.m[c.l[0].m[0]].b.y>c.bar.y?c.bar.y:c.m[c.l[0].m[0]].b.y:c.m[c.l[0].m[0]].b.y;
|
||||
var maxw = c.useBar?c.bar.w:c.rows?c.totw:c.maxw; var maxh = c.useBar?c.bar.h:!c.rows?c.toth:c.maxh
|
||||
c.hideselectboxes(0,x,y,maxw,maxh,0)
|
||||
}
|
||||
}
|
||||
if(!bw.ie) setTimeout(c.name+".checkscrolled()",200)
|
||||
}
|
||||
/******************************************
|
||||
CM_ADD-IN - pagecheck (last updated: 08/02/02)
|
||||
|
||||
Simple code that *tries* to keep the menus inside the
|
||||
bounderies of the page.
|
||||
|
||||
Code updated. It's still not perfect (obviosly)
|
||||
but it will now do another check to try and place
|
||||
the menus inside.
|
||||
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page.
|
||||
*****************************************/
|
||||
makeCM.prototype.onshow+=";this.pagecheck(b,pm,pm.subx,pm.suby,maxw,maxh)"
|
||||
makeCM.prototype.pagecheck=function(b,pm,x,y,w,h,n){
|
||||
var l=pm.lev+1,a=b.align; if(!n) n=1
|
||||
var ok=1
|
||||
if(x<cmpage.x) {pm.align=1; ok=0;}
|
||||
else if(x+w>cmpage.x2){ pm.align=2; ok=0;}
|
||||
else if(y<cmpage.y) { pm.align=3; ok=0;}
|
||||
else if(h+y>cmpage.y2) {pm.align=4; ok=0;}
|
||||
if(!ok) this.getcoords(pm,this.l[l-1].borderX,this.l[l-1].borderY,pm.b.x,pm.b.y,w,h,this.l[l-1].offsetX,this.l[l-1].offsetY)
|
||||
x=pm.subx; y=pm.suby
|
||||
//Added check --- still not ok? --- part of the code by Denny Caldwell (thanks) -- badly immplemented by me though
|
||||
if(x<cmpage.x) {x += cmpage.x-x;}
|
||||
else if(x+w>cmpage.x2){ x = -(x+w-cmpage.x2);}
|
||||
else if(y<cmpage.y) { y = cmpage.y-y; }
|
||||
else if(h+y>cmpage.y2) {y = -(y+h-cmpage.y2);}
|
||||
if(x<cmpage.x) {x += cmpage.x-x;}
|
||||
else if(x+w>cmpage.x2){ x = -(x+w-cmpage.x2);}
|
||||
else if(y<cmpage.y) { y = cmpage.y-y;}
|
||||
else if(h+y>cmpage.y2) {y = -(y+h-cmpage.y2);}
|
||||
b.moveIt(x,y)
|
||||
}
|
||||
/******************************************
|
||||
CM_ADD-IN - pagecheck (last updated: 01/26/02)
|
||||
Simple code that *tries* to keep the menus inside thebounderies of
|
||||
the page.A more advanced version of this code will come later.
|
||||
Just add this code to the coolmenus js fileor link the cm_addins.
|
||||
js file to your page as well.
|
||||
*****************************************/
|
||||
//makeCM.prototype.onshow+=";this.pagecheck2(b,pm,x,y,maxw,maxh)"
|
||||
makeCM.prototype.pagecheck2=function(b,pm,x,y,w,h){
|
||||
var fixX = 0
|
||||
var fixY = 0
|
||||
var ok=1
|
||||
if(x+w>cmpage.x2) {
|
||||
;
|
||||
ok=0;
|
||||
}else if(x<cmpage.x) {
|
||||
ok=0;
|
||||
}if(y+h>cmpage.y2){
|
||||
fixY = -(y+h-cmpage.y2);
|
||||
ok=0;
|
||||
}else if(y<cmpage.y) {
|
||||
fixY = cmpage.y-y;
|
||||
ok=0;
|
||||
}// self.status="x:"+x+" y:" +y+ " fixX:" +fixX+ " fixY:" +fixY
|
||||
if(!ok) {
|
||||
self.status = x + " - " +cmpage.x + " - " + fixX + " - " + (x+fixX)
|
||||
x+=fixX;
|
||||
y+=fixY
|
||||
pm.moveIt(x,y)
|
||||
self.status = b.css.left
|
||||
}
|
||||
}
|
||||
|
||||
/******************
|
||||
CM_ADD-IN - filterIt (last updated: 01/26/02)
|
||||
|
||||
Explorer5.5+ only. Other browser will ignore it.
|
||||
|
||||
This function uses filters for Explorer to show
|
||||
the subitems.
|
||||
If you use this add-in you will get 1 new
|
||||
level property called "filter". You have
|
||||
to specify which filter to use and what
|
||||
level to use them on.
|
||||
(this properties will also be inherited though)
|
||||
|
||||
Example setting:
|
||||
oCMenu.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
|
||||
|
||||
Examples on how to use this will come later.
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page as well.
|
||||
*****************/
|
||||
bw.filter=(bw.ie55||bw.ie6) && !bw.mac
|
||||
makeCM.prototype.onshow+=";if(c.l[pm.lev].filter) b.filterIt(c.l[pm.lev].filter)"
|
||||
cm_makeLevel.prototype.filter=null
|
||||
cm_makeObj.prototype.filterIt=function(f){
|
||||
if(bw.filter){
|
||||
if(this.evnt.filters[0]) this.evnt.filters[0].Stop();
|
||||
else this.css.filter=f;
|
||||
this.evnt.filters[0].Apply();
|
||||
this.showIt();
|
||||
this.evnt.filters[0].Play();
|
||||
}
|
||||
}
|
||||
/******************
|
||||
CM_ADD-IN - slide (last updated: 01/26/02)
|
||||
|
||||
This works in all browsers, but it can be
|
||||
unstable on all other browsers then Explorer.
|
||||
|
||||
This function shows the submenus in a sliding
|
||||
effect. If you use this add-in you get two
|
||||
new level properties called "slidepx" and
|
||||
"slidetim". You have to specify this for
|
||||
the levels you want this to happen on
|
||||
(these properties will also be inherited though)
|
||||
|
||||
slidepx is the number of pixels you want the
|
||||
div to slide each setTimout, while "slidetim"
|
||||
is the setTimeout speed (in milliseconds)
|
||||
|
||||
Example setting:
|
||||
oCMenu.level[3].slidepx=10
|
||||
oCMenu.level[3].slidetim=20
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page as well.
|
||||
*****************/
|
||||
makeCM.prototype.onshow+="; if(c.l[pm.lev].slidepx){b.moveIt(x,b.y-b.h); b.showIt(); b.tim=null; b.slide(y,c.l[pm.lev].slidepx,c.l[pm.lev].slidetim,c,pm.lev,pm.name)}"
|
||||
makeCM.prototype.going=0
|
||||
cm_makeObj.prototype.tim=10;
|
||||
cm_makeLevel.prototype.slidepx=null
|
||||
cm_makeLevel.prototype.slidetim=30
|
||||
cm_makeObj.prototype.slide=function(end,px,tim,c,l,name){
|
||||
if(!this.vis || c.l[l].a!=name) return
|
||||
if(this.y<end-px){
|
||||
if(this.y>(end-px*px-px) && px>1) px-=px/5; this.moveIt(this.x,this.y+px)
|
||||
this.clipTo(end-this.y,this.w,this.h,0)
|
||||
this.tim=setTimeout(this.obj+".slide("+end+","+px+","+tim+","+c.name+","+l+",'"+name+"')",tim)
|
||||
}else{this.moveIt(this.x,end)}
|
||||
}
|
||||
/******************
|
||||
CM_ADD-IN - clipout (last updated: 01/26/02)
|
||||
|
||||
This works in all browsers, but it can be
|
||||
unstable on all other browsers then Explorer.
|
||||
|
||||
This function shows the submenus with a clipping
|
||||
effect. If you use this add-in you get two
|
||||
new level properties called "clippx" and
|
||||
"cliptim". You have to specify this for
|
||||
the levels you want this to happen on
|
||||
(these properties will also be inherited though)
|
||||
|
||||
"clippx" is the number of pixels you want the
|
||||
div to slide each setTimout, while "cliptim"
|
||||
is the setTimeout speed (in milliseconds)
|
||||
|
||||
Example setting:
|
||||
oCMenu.level[3].clippx=10
|
||||
oCMenu.level[3].cliptim=20
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page as well.
|
||||
|
||||
*****************/
|
||||
makeCM.prototype.onshow+="if(c.l[pm.lev].clippx){h=b.h; if(!rows) b.clipTo(0,maxw,0,0,1); else b.clipTo(0,0,maxh,0,1); b.clipxy=0; b.showIt(); clearTimeout(b.tim); b.clipout(c.l[pm.lev].clippx,!rows?maxw:maxh,!rows?maxh:maxw,c.l[pm.lev].cliptim,rows)}"
|
||||
cm_makeObj.prototype.tim=10;
|
||||
cm_makeLevel.prototype.clippx=null
|
||||
cm_makeLevel.prototype.cliptim=30
|
||||
cm_makeObj.prototype.clipxy=0
|
||||
cm_makeObj.prototype.clipout=function(px,w,stop,tim,rows){
|
||||
if(!this.vis) return; if(this.clipxy<stop-px){this.clipxy+=px;
|
||||
if(!rows) this.clipTo(0,w,this.clipxy,0,1);
|
||||
else this.clipTo(0,this.clipxy,w,0,1);
|
||||
this.tim=setTimeout(this.obj+".clipout("+px+","+w+","+stop+","+tim+","+rows+")",tim)
|
||||
}else{if(bw.ns6){this.hideIt();}; if(!rows) this.clipTo(0,w,stop,0,1); else this.clipTo(0,stop,w,0,1);if(bw.ns6){this.showIt()}}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 46 B |
|
|
@ -1,461 +0,0 @@
|
|||
/************************************************************
|
||||
Coolmenus Beta 4.06 - Copyright Thomas Brattli - www.dhtmlcentral.com
|
||||
Last updated: 11.13.02
|
||||
|
||||
v4.06 - with basic frame support
|
||||
*************************************************************/
|
||||
/*Browsercheck object*/
|
||||
function cm_bwcheck(){
|
||||
//In theory we should use object detection, but this script needs work-arounds for almost every browser...
|
||||
this.ver=navigator.appVersion
|
||||
this.agent=navigator.userAgent.toLowerCase()
|
||||
this.dom=document.getElementById?1:0
|
||||
this.ns4=(!this.dom && document.layers)?1:0;
|
||||
this.op=window.opera
|
||||
this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
|
||||
this.ie=this.agent.indexOf("msie")>-1 && !this.op
|
||||
if(this.op){
|
||||
this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
|
||||
this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
|
||||
this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
|
||||
}else if(this.moz) this.ns6 = 1
|
||||
else if(this.ie){
|
||||
this.ie4 = !this.dom && document.all
|
||||
this.ie5 = (this.agent.indexOf("msie 5")>-1)
|
||||
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
|
||||
this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
|
||||
}
|
||||
this.mac=(this.agent.indexOf("mac")>-1)
|
||||
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
|
||||
this.usedom= this.ns6||this.op7//Use dom creation
|
||||
this.reuse = this.ie||this.op7||this.usedom //Reuse layers
|
||||
this.px=this.dom&&!this.op5?"px":""
|
||||
return this
|
||||
}
|
||||
var bw=new cm_bwcheck()
|
||||
/*Variable declaration*/
|
||||
var cmpage
|
||||
/*Crossbrowser objects functions*/
|
||||
function cm_message(txt){alert(txt); return false}
|
||||
function cm_makeObj(obj,nest,o,doc){ //Changed in v4.05
|
||||
if(!doc) doc=document
|
||||
if(bw.usedom&&o) this.evnt=o
|
||||
else{nest=(!nest) ? "doc.":'doc.layers.'+nest+'.'
|
||||
this.evnt=bw.dom? doc.getElementById(obj):
|
||||
bw.ie4?doc.all[obj]:bw.ns4?eval(nest+"layers." +obj):0;
|
||||
}
|
||||
if(!this.evnt) return cm_message('The layer does not exist ('+obj+')'
|
||||
+'- \nIf your using Netscape please check the nesting of your tags (on the entire page)\nNest:'+nest)
|
||||
this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt; this.ok=0
|
||||
this.ref=bw.dom||bw.ie4?doc:this.css.document;
|
||||
this.obj = obj + "Object"; eval(this.obj + "=this");
|
||||
this.x=0; this.y=0; this.w=0; this.h=0; this.vis=0; return this
|
||||
}
|
||||
cm_makeObj.prototype.moveIt = function(x,y){this.x=x;this.y=y; this.css.left=x+bw.px;this.css.top=y+bw.px}
|
||||
cm_makeObj.prototype.showIt = function(o){this.css.visibility="visible"; this.vis=1; if(bw.op5&&this.arr){ this.arr.showIt(); }}//alert('showing arrow')}}
|
||||
cm_makeObj.prototype.hideIt = function(no){this.css.visibility="hidden"; this.vis=0;}
|
||||
cm_makeObj.prototype.clipTo = function(t,r,b,l,setwidth){
|
||||
this.w=r; this.h=b; if(bw.ns4){this.css.clip.top=t;this.css.clip.right=r; this.css.clip.bottom=b;this.css.clip.left=l
|
||||
}else{if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0; this.css.clip="rect("+t+bw.px+","+r+bw.px+","+b+bw.px+","+l+bw.px+")";
|
||||
if(setwidth){if(bw.op5||bw.op6){this.css.pixelWidth=r; this.css.pixelHeight=b;}else{this.css.width=r+bw.px; this.css.height=b+bw.px;}}}}
|
||||
function cm_active(on,h){
|
||||
if(this.o.arr) on?this.o.arr.hideIt():bw.op5?this.o.arr.showIt():this.o.arr.css.visibility="inherit"
|
||||
if(bw.reuse||bw.usedom){
|
||||
if(!this.img2) this.o.evnt.className=on?this.cl2:this.cl
|
||||
else this.o.ref.images["img"+this.name].src=on?this.img2.src:this.img1.src; //Changed v4.05
|
||||
if(on && bw.ns6){this.o.hideIt(); this.o.css.visibility='inherit' }; //netscape 6 bug fix
|
||||
}else{
|
||||
if(!this.img2){ if(on) this.o.over.showIt(); else this.o.over.hideIt();
|
||||
}else this.o.ref.images["img"+this.name].src=on?this.img2.src:this.img1.src;
|
||||
}this.isactive=on?1:0
|
||||
}
|
||||
/***Pageobject **/
|
||||
function cm_page(frame){ //Changed v4.05
|
||||
if(!frame) frame = self
|
||||
this.x=0; this.x2 =(!bw.ie)?frame.innerWidth:frame.document.body.offsetWidth-20;
|
||||
this.y=0; this.orgy=this.y2= (!bw.ie)?frame.innerHeight:frame.document.body.offsetHeight-6;
|
||||
this.x50=this.x2/2; this.y50=this.y2/2; return this
|
||||
}
|
||||
/***check positions**/
|
||||
function cm_cp(num,w,minus){
|
||||
if(num){if(num.toString().indexOf("%")!=-1){var t = w?cmpage.x2:cmpage.y2; num=parseInt((t*parseFloat(num)/100))
|
||||
if(minus) num-=minus }else num=eval(num);} else num=0; return num
|
||||
}
|
||||
/**Level object**/
|
||||
function cm_makeLevel(){//changed 4.06
|
||||
var c=this, a=arguments; c.width=a[0]||null; c.height=a[1]||null;
|
||||
c.regClass=a[2]||null; c.overClass=a[3]||null; c.borderX=a[4]>-1?a[4]:null;
|
||||
c.borderY=a[5]>-1?a[5]:null; c.borderClass=a[6]||null; c.rows=a[7]>-1?a[7]:null;
|
||||
c.align=a[8]||null; c.offsetX=a[9]||null; c.offsetY=a[10]||null; c.arrow=a[11]||null;
|
||||
c.arrowWidth=a[12]||null; c.arrowHeight=a[13]||null; c.roundBorder=a[14]||null; return c
|
||||
}
|
||||
/***Making the main menu object**/
|
||||
function makeCM(name){ //Changed v4.06
|
||||
var c=this; c.mc=0; c.name = name; c.m=new Array(); c.scrollY=-1; c.level=new Array(); c.l=new Array(); c.tim=100; c.isresized=0;
|
||||
c.isover=0; c.zIndex=100; c.frameStartLevel=1; c.bar=0; c.z=0; c.totw=0; c.toth=0; c.maxw=0; c.maxh=0; cmpage = new cm_page(); c.constructed = 0;
|
||||
return this
|
||||
}//events
|
||||
makeCM.prototype.onshow=""; makeCM.prototype.onhide=""; makeCM.prototype.onconstruct="";
|
||||
/***Creating layers**/
|
||||
function cm_divCreate(id,cl,txt,w,c,app,ex,txt2){
|
||||
if(bw.usedom){var div=document.createElement("DIV"); div.className=cl; div.id=id;
|
||||
if(txt) div.innerHTML=txt; if(app){app.appendChild(div); return div}
|
||||
if(w) document.body.appendChild(div); return div
|
||||
}else{var dstr='<div id="'+id+'" class="'+cl+'"'
|
||||
if(ex&&bw.reuse) dstr+=" "+ex; dstr+=">"+txt; ; if(txt2) dstr+=txt2;
|
||||
if(c) dstr+='</div>'; if(w) document.write(dstr); else return dstr
|
||||
}return ""
|
||||
}
|
||||
/***Getting layer string for each menu**/
|
||||
function cm_getLayerStr(m,app,name,fill,clb,arrow,ah,aw,root){
|
||||
var no=m.nolink,arrstr='',l=m.lev,str='',txt=m.txt,ev='', id=name + '_' + m.name,d1; if(app) d1=app
|
||||
if((!bw.reuse||l==0) && !no){
|
||||
ev=' onmouseover="'+name+'.showsub(\''+m.name+'\')"'
|
||||
+' onmouseout="'+name+'.mout(\''+m.name+'\')"'
|
||||
+' onclick="'+name+'.onclck(\''+m.name+'\'); return false" '
|
||||
}
|
||||
if(bw.reuse&&l!=0) txt=''; if(l==0) str+=d1=cm_divCreate(id+'_0',clb,''); str+=m.d2=cm_divCreate(id,m.cl,txt,0,0,d1,ev)
|
||||
if(l==0&&bw.usedom){
|
||||
m.d2.onclick=new Function(name+'.onclck("'+m.name+'")');
|
||||
m.d1=d1;
|
||||
m.d2.onmouseover=new Function(name+'.showsub("'+m.name+'")');
|
||||
m.d2.onmouseout=new Function(name+'.mout("'+m.name+'")')
|
||||
}if(!bw.reuse && !m.img1 && !no){
|
||||
str+=cm_divCreate(id+'_1',m.cl2,txt,0,1)
|
||||
str+=cm_divCreate(id+'_3',"clCMAbs",'<a href="#" '+ev+'><img alt="" src="'+root+fill+'" width="'+m.w+'" height="'+m.h+'" border="0" /></a>',0,1)
|
||||
}str+='</div>';
|
||||
if(l==0){if(arrow)str+=m.d3=cm_divCreate(id+'_a','clCMAbs','<img alt="" height="'+aw+'" width="'+ah+'" src="'+root+arrow+'" />',0,1,d1); str+="</div>"}
|
||||
str+="\n"; if(!bw.reuse){m.txt=null; m.d2=null; m.d3=null;}
|
||||
if(bw.usedom){ if(l==0) document.body.appendChild(d1); str=''}
|
||||
return str
|
||||
}
|
||||
/***get align num from text (better to evaluate numbers later)**/
|
||||
function cm_checkalign(a){
|
||||
switch(a){
|
||||
case "right": return 1; break; case "left": return 2; break;
|
||||
case "bottom": return 3; break; case "top": return 4; break;
|
||||
case "righttop": return 5; break; case "lefttop": return 6; break;
|
||||
case "bottomleft": return 7; break; case "topleft": return 8; break;
|
||||
}return null
|
||||
}
|
||||
/**Making each individual menu **/
|
||||
makeCM.prototype.makeMenu=function(name,parent,txt,lnk,targ,w,h,img1,img2,cl,cl2,align,rows,nolink,onclick,onmouseover,onmouseout){
|
||||
var c = this; if(!name) name = c.name+""+c.mc; var p = parent!=""&&parent&&c.m[parent]?parent:0;
|
||||
if(c.mc==0){
|
||||
//Added 4.07 - bug(?) in opera 7 - you cannot dom-add layers created in one document to another one (or so it seems) - so turn of usedom
|
||||
if(bw.op7 && this.frames) bw.usedom=0
|
||||
var tmp=location.href;
|
||||
if(tmp.indexOf('file:')>-1||tmp.charAt(1)==':') c.root=c.offlineRoot; else c.root=c.onlineRoot
|
||||
if(c.useBar){if(!c.barBorderClass) c.barBorderClass=c.barClass; c.bar1 = cm_divCreate(c.name+'bbar_0',c.barClass,'',0,1);
|
||||
c.bar = cm_divCreate(c.name+'bbar',c.barBorderClass,'',1,1,0,0,c.bar1); if(bw.usedom) c.bar.appendChild(c.bar1);
|
||||
}}var create=1,img,arrow; var m = c.m[name] = new Object(); m.name=name; m.subs=new Array(); m.parent=p; m.arnum=0; m.arr=0
|
||||
var l = m.lev = p?c.m[p].lev+1:0; c.mc++; m.hide=0;
|
||||
if(l>=c.l.length){
|
||||
var p1,p2=0; if(l>=c.level.length) p1=c.l[c.level.length-1];
|
||||
else p1=c.level[l]; c.l[l]=new Array(); if(!p2) p2=c.l[l-1]
|
||||
if(l!=0){ if(isNaN(p1.align)) p1["align"]=cm_checkalign(p1.align)
|
||||
for(var i in p1){if(i!="str"&&i!="m"){if(p1[i]==null) c.l[l][i]=p2[i]; else c.l[l][i]=p1[i] }}
|
||||
}else{c.l[l]=c.level[0]; c.l[l].align=cm_checkalign(c.l[l].align)}
|
||||
c.l[l]["str"]=''; c.l[l].m=new Array(); if(!c.l[l].borderClass) c.l[l].borderClass=c.l[l].regClass
|
||||
c.l[l].app=0; c.l[l].max=0; c.l[l].arnum=0; c.l[l].o=new Array(); c.l[l].arr=new Array()
|
||||
c.level[l]=p1=p2=null
|
||||
if(l!=0) c.l[l].str=c.l[l].app=cm_divCreate(c.name+ '_' +l+'_0',c.l[l].borderClass,'')
|
||||
}if(p){p = c.m[p]; p.subs[p.subs.length]=name;
|
||||
if(p.subs.length==1&&c.l[l-1].arrow){ p.arr=1;
|
||||
if(p.parent){c.m[p.parent].arnum++
|
||||
if(c.m[p.parent].arnum>c.l[l-1].arnum){
|
||||
c.l[l-1].str+=c.l[l-1].arr[c.l[l-1].arnum]=cm_divCreate(c.name+ '_a' +(l-1)+'_'+c.l[l-1].arnum,'clCMAbs','<img height="'+c.l[l-1].arrowHeight
|
||||
+'" width="'+c.l[l-1].arrowWidth+'" src="'+c.root+c.l[l-1].arrow+'" alt="" />',0,1,c.l[l-1].app); c.l[l-1].arnum++
|
||||
}}}if(bw.reuse) if(p.subs.length>c.l[l].max) c.l[l].max = p.subs.length; else create=0
|
||||
}m.rows=rows>-1?rows:c.l[l].rows; m.w=cm_cp(w||c.l[l].width,1); m.h=cm_cp(h||c.l[l].height,0); m.txt=txt; m.lnk=lnk;
|
||||
if(align) align=cm_checkalign(align); m.align=align||c.l[l].align; m.cl=cl=cl||c.l[l].regClass;
|
||||
m.targ=targ; m.cl2=cl2||c.l[l].overClass; m.create=create; m.mover=onmouseover; m.mout=onmouseout;
|
||||
m.onclck=onclick; m.active = cm_active; m.isactive=0; m.nolink=nolink
|
||||
if(create) c.l[l].m[c.l[l].m.length]=name
|
||||
if(img1){m.img1 = new Image(); m.img1.src=c.root+img1; if(!img2) img2=img1; m.img2 = new Image(); m.img2.src=c.root+img2;
|
||||
m.cl="clCMAbs"; m.txt=''; if(!bw.reuse&&!nolink) m.txt = '<a href="#" onmouseover="'+c.name+'.showsub(\''+name+'\')" onmouseout="'+c.name+'.mout(\''+name+'\')" onclick="'+c.name+'.onclck(\''+name+'\'); return false">';;
|
||||
m.txt+='<img alt="" src="'+c.root+img1+'" width="'+m.w+'" height="'+m.h+'" id="img'+m.name+'" '
|
||||
if(bw.dom&&!nolink) m.txt+='style="cursor:pointer;"'; if(!bw.reuse){if(!bw.dom) m.txt+='name="img'+m.name+'"'; m.txt+=' border="0"'}; m.txt+=' />'; if(!bw.reuse&&!nolink) m.txt+='</a>'
|
||||
}else{m.img1=0; m.img2=0};
|
||||
if(l==0||create) c.l[l].str+=cm_getLayerStr(m,c.l[l].app,c.name,c.fillImg,c.l[l].borderClass,c.l[l].arrow,c.l[l].arrowWidth,c.l[l].arrowHeight,c.root)
|
||||
if(l==0){if(m.w>c.maxw) c.maxw=m.w; if(m.h>c.maxh) c.maxh=m.h; c.totw+=c.pxBetween+m.w+c.l[0].borderX;c.toth+=c.pxBetween+m.h+c.l[0].borderY}
|
||||
if(lnk && !onmouseover){
|
||||
var path=lnk.indexOf("mailto:")>-1||lnk.indexOf("http://")>-1?"":c.root
|
||||
m.mover="self.status='"+path+m.lnk+"'"
|
||||
if(!m.mout) m.mout=""; m.mout+=";self.status='';"
|
||||
}
|
||||
}
|
||||
/**Getting x/y coords for subs **/
|
||||
makeCM.prototype.getcoords=function(m,bx,by,x,y,maxw,maxh,ox,oy){
|
||||
var a=m.align; x+=m.o.x; y+=m.o.y
|
||||
switch(a){
|
||||
case 1: x+=m.w+bx; break; case 2: x-=maxw+bx; break;
|
||||
case 3: y+=m.h+by; break; case 4: y-=maxh+by; break;
|
||||
case 5: x-=maxw+bx; y-=maxh-m.h; break;
|
||||
case 6: x+=m.w+bx; y-=maxh-m.h; break;
|
||||
case 7: y+=m.h+by; x-=maxw-m.w; break;
|
||||
case 8: y-=maxh+by; x-=maxw-m.w+bx; break;
|
||||
}//Added v4.05
|
||||
if(m.lev==this.frameStartLevel-1 && this.frames){
|
||||
switch(a){
|
||||
case 1: x=0; break;
|
||||
case 2: x=this.cmpage.x2-maxw; break;
|
||||
case 3: y=0; break;
|
||||
case 4: y-=maxh+by; break;
|
||||
case 5: x-=maxw+bx; y-=maxh-m.h; break;
|
||||
case 6: x+=m.w+bx; y-=maxh-m.h; break;
|
||||
case 7: y+=m.h+by; x-=maxw-m.w; break;
|
||||
case 8: y-=maxh+by; x-=maxw-m.w+bx; break;
|
||||
}
|
||||
}
|
||||
m.subx=x + ox; m.suby=y + oy
|
||||
}
|
||||
/**Showing sub elements**/
|
||||
makeCM.prototype.showsub=function(el){ //Changed v4.06
|
||||
var c=this,pm=c.m[el],m,o,nl
|
||||
if(!pm.b||(c.isresized&&pm.lev>0)) pm.b=c.l[pm.lev].b; c.isover=1
|
||||
clearTimeout(c.tim);
|
||||
var ln=pm.subs.length,l=pm.lev+1
|
||||
if(c.l[pm.lev].a==el&&l!=c.l.length && !c.openOnClick){if(c.l[pm.lev+1].a) c.hidesub(l+1,el); return}
|
||||
c.hidesub(l,el); if(pm.mover) eval(pm.mover); if(!pm.isactive) pm.active(1);
|
||||
c.l[pm.lev].a = el; if(ln==0) return;
|
||||
if(c.openOnClick && !c.clicked) return//Added v4.06
|
||||
if(!c.l[l].b) return //Added v4.05
|
||||
var b = c.l[l].b, bx=c.l[l].borderX, by=c.l[l].borderY, rows=pm.rows
|
||||
var rb=c.l[l].roundBorder;//added 4.06
|
||||
var x=bx+rb,y=by+rb,maxw=0,maxh=0,cn=0; b.hideIt()
|
||||
for(var i=0;i<c.l[l].m.length;i++){
|
||||
if(!bw.reuse) m=c.m[c.l[l].m[i]]
|
||||
else m=c.m[c.m[el].subs[i]]
|
||||
if(m && m.parent==el&&!m.hide){
|
||||
if(!bw.reuse) o=m.o; else o=m.o=c.l[l].o[i]
|
||||
if(x!=o.x||y!=o.y) o.moveIt(x,y); nl=m.subs.length //changed 4.06
|
||||
if(bw.reuse){
|
||||
if(o.w!=m.w || o.h!=m.h) o.clipTo(0,m.w,m.h,0,1)
|
||||
if(o.evnt.className!=m.cl){
|
||||
m.isactive=0; o.evnt.className=m.cl
|
||||
if(bw.ns6){o.hideIt(); o.css.visibility='inherit'} //NS6 bugfix
|
||||
}if(bw.ie6) b.showIt()//IE6 bugfix (scrollbars)
|
||||
o.evnt.innerHTML=m.txt; if(bw.ie6) b.hideIt()
|
||||
if(!m.nolink){
|
||||
o.evnt.onmouseover=new Function(c.name+".showsub('"+m.name+"')")
|
||||
o.evnt.onmouseout=new Function(c.name+".mout('"+m.name+"')") //Added v4.05
|
||||
o.evnt.onclick=new Function(c.name+".onclck('"+m.name+"')")
|
||||
if(o.oldcursor){o.css.cursor=o.oldcursor; o.oldcursor=0;}
|
||||
}else{o.evnt.onmouseover=''; o.evnt.onclick=''; if(o.css.cursor=='') o.oldcursor="pointer"; else o.oldcursor=o.css.cursor; o.css.cursor="auto"}
|
||||
}if(m.arr){o.arr=c.l[l].arr[cn]; o.arr.moveIt(x + m.w-c.l[l].arrowWidth-3,y+m.h/2-(c.l[l].arrowHeight/2));
|
||||
o.arr.css.visibility="inherit"; cn++;} else o.arr=0
|
||||
if(!rows){y+=m.h+by; if(m.w>maxw) maxw=m.w; maxh=y}
|
||||
else{x+=m.w+bx; if(m.h>maxh) maxh=m.h; maxw=x;}
|
||||
o.css.visibility="inherit"; if(bw.op5||bw.op6) o.showIt()
|
||||
}else{o = c.m[c.l[l].m[i]].o; o.hideIt();} }
|
||||
if(!rows) maxw+=bx*2+rb; else maxh+=by*2+rb; //changed 4.06
|
||||
if(rb){maxw+=rb; maxh+=rb}//added 4.06
|
||||
b.clipTo(0,maxw,maxh,0,1)
|
||||
//Check frame scroll
|
||||
if(c.chkscroll) c.chkscroll() //Added v4.05 - not the best solution
|
||||
if(c.chkscroll||!pm.subx||!pm.suby||c.scrollY>-1||c.isresized) c.getcoords(pm,c.l[l-1].borderX,c.l[l-1].borderY,pm.b.x,pm.b.y,maxw,maxh,c.l[l-1].offsetX,c.l[l-1].offsetY) //Changed 4.06
|
||||
x=pm.subx; if(c.chkscroll&&l==c.frameStartLevel) pm.suby+=c.scrollY; y=pm.suby; b.moveIt(x,y); if(c.onshow) eval(c.onshow); b.showIt()
|
||||
}
|
||||
/**Hide sub elements **/
|
||||
makeCM.prototype.hidesub=function(l,el){ //Changed v4.05
|
||||
var c = this,tmp,m,i,j,hide
|
||||
if(!l) {l=1; hide=1; c.clicked=0}
|
||||
for(i=l-1;i<c.l.length;i++){
|
||||
if(i>0&&i>l-1) if(c.l[i].b) c.l[i].b.hideIt()//Changed v4.05
|
||||
if(c.l[i].a&&c.l[i].a!=el){
|
||||
m=c.m[c.l[i].a]; m.active(0,1); if(m.mout) eval(m.mout); c.l[i].a=0
|
||||
if(i>0&&i>l-1) if(bw.op5||bw.op6) for(j=0;j<c.l[i].m.length;j++) c.m[c.l[i].m[j]].o.hideIt()
|
||||
}if(i>l){for(j=0;j<c.l[i-1].arnum;j++){c.l[i-1].arr[j].hideIt(); if(bw.op6) c.l[i-1].arr[j].moveIt(-1000,-1000)}} //opera bug
|
||||
}if(hide&&c.onhide) eval(c.onhide) //onhide event
|
||||
}
|
||||
/***Make all menu div objects**/
|
||||
makeCM.prototype.makeObjects=function(nowrite,fromframe){ //Changed v4.06
|
||||
var c = this,oc,name,bx,by,w,h,l,no,ar,id,nest,st=0,en=c.l.length,bobj,o,m,i,j
|
||||
//Added v4.05
|
||||
if(fromframe){
|
||||
st = this.frameStartLevel
|
||||
this.body = fromframe.document.body
|
||||
this.doc = fromframe.document
|
||||
this.deftarget=fromframe
|
||||
this.cmpage = new cm_page(fromframe)
|
||||
}else{
|
||||
this.body=document.body
|
||||
this.doc=document
|
||||
if(this.frames) en = this.frameStartLevel
|
||||
this.deftarget=self
|
||||
}
|
||||
if(!nowrite){
|
||||
for(i=st;i<en;i++){ //changed 4.06
|
||||
if(!bw.usedom) this.doc.write(c.l[i].str)
|
||||
else if(i>0) this.body.appendChild(c.l[i].app)
|
||||
if(!this.frames) c.l[i].str=null
|
||||
}}c.z=c.zIndex+2
|
||||
for(i=st;i<en;i++){oc=0
|
||||
if(i!=0){bobj=c.l[i].b = new cm_makeObj(c.name + "_"+i+"_0","",c.l[i].app,this.doc); bobj.css.zIndex=c.z;
|
||||
if(bw.dom) bobj.css.overflow='hidden'}; bx=c.l[i].borderX; by=c.l[i].borderY; c.l[i].max=0;
|
||||
for(j=0;j<c.l[i].m.length;j++){
|
||||
m = c.m[c.l[i].m[j]]; name=m.name; w=m.w; h=m.h; l=m.lev; no=m.nolink;
|
||||
if(i>0){m.b = bobj; nest=i}
|
||||
else{m.b = new cm_makeObj(c.name + "_"+name+"_0","",m.d1,this.doc); m.b.css.zIndex=c.z; m.b.clipTo(0,w+bx*2,h+by*2,0,1); nest=name}
|
||||
id = c.name + "_"+name; nest=c.name + "_"+nest;
|
||||
if(m.create){
|
||||
o=m.o=new cm_makeObj(id,nest+"_0",m.d2,this.doc); o.z=o.css.zIndex=c.z+1; if(bw.reuse){c.l[l].o[oc]=o; oc++};
|
||||
if(l==0&&m.img1) o.css.visibility='inherit'; if(bw.op5) o.showIt(); o.arr=0;
|
||||
}if(!bw.reuse||l==0) o.clipTo(0,w,h,0,1); o.moveIt(bx,by); o.z=o.css.zIndex=c.z+2
|
||||
if(j<c.l[i].arnum){
|
||||
c.l[i].arr[j]=new cm_makeObj(c.name+"_a"+i+"_"+j,nest+"_0",nowrite?0:c.l[i].arr[j],this.doc)
|
||||
c.l[i].arr[j].css.zIndex=c.z+30+j;
|
||||
}else if(l==0&&m.arr==1){
|
||||
o.arr=new cm_makeObj(id+"_a",nest+"_0",m.d3,this.doc)
|
||||
o.arr.moveIt(bx+m.w-c.l[i].arrowWidth-3,by+m.h/2-(c.l[i].arrowHeight/2));
|
||||
o.arr.css.zIndex=c.z+20;
|
||||
}if(!no && !bw.reuse && !m.img1){
|
||||
o.over=new cm_makeObj(c.name + "_"+name+"_1",nest+"_0"+".document.layers."+id,"",this.doc)
|
||||
o.over.moveIt(0,0); o.over.hideIt(); o.over.clipTo(0,w,h,0,1); o.over.css.zIndex=c.z+3
|
||||
img=new cm_makeObj(c.name + "_"+name+"_3",nest+"_0"+".document.layers."+id,"",this.doc); img.moveIt(0,0)
|
||||
img.css.visibility="inherit"; img.css.zIndex=c.z+4; if(bw.op5) img.showIt()
|
||||
}c.z++;
|
||||
}
|
||||
}
|
||||
if(fromframe){ ///Set scroll vars - added v4.05
|
||||
c.chkscroll = function(){//changed 4.06
|
||||
if (bw.ie&&!bw.ie6) this.scrollY=this.body.scrollTop;
|
||||
else if (bw.ie6 || bw.op7){
|
||||
if (this.doc.compatMode && document.compatMode != "BackCompat") this.scrollY=this.doc.documentElement.scrollTop
|
||||
else this.scrollY=this.body.scrollTop
|
||||
}else this.scrollY=this.deftarget.pageYOffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
/**Onmouseout**/
|
||||
makeCM.prototype.mout = function(){ //Changed v4.06
|
||||
var c = this; clearTimeout(c.tim); c.isover = 0; var f="if(!"+c.name+".isover)"+c.name+".hidesub()"
|
||||
if(!c.closeOnClick) c.tim = setTimeout(f,c.wait)
|
||||
else{
|
||||
if(bw.ns4){ document.captureEvents("Event.MOUSEDOWN"); document.onmousedown=new Function(f)}
|
||||
else document.onclick=new Function(f);
|
||||
if(this.frames){
|
||||
if(bw.ns4){this.doc.captureEvents("Event.MOUSEDOWN"); this.doc.onmousedown=new Function(f)}
|
||||
else this.doc.onclick=new Function(f)
|
||||
}
|
||||
}
|
||||
}
|
||||
/**Constructing and initiating top items and bar**/
|
||||
makeCM.prototype.construct=function(nowrite){ //Changed v4.06
|
||||
var c=this; if(!c.l[0]||c.l[0].m.length==0) return cm_message('No menus defined');
|
||||
if(!nowrite){for(var i=1;i<c.l.length;i++){c.l[i].str+="</div>"}} //Added 4.06
|
||||
c.makeObjects(nowrite); cmpage = new cm_page();
|
||||
var mpa,o,maxw=c.maxw,maxh=c.maxh,i,totw=c.totw,toth=c.toth,m,px=c.pxBetween
|
||||
var bx=c.l[0].borderX,by=c.l[0].borderY,x=c.fromLeft,y=c.fromTop,mp=c.menuPlacement,rows=c.rows
|
||||
if(rows){toth=maxh+by*2; totw=totw-px+bx;}else{totw=maxw+bx*2; toth=toth-px+by;}
|
||||
switch(mp){
|
||||
case "center": x=cmpage.x2/2-totw/2; if(bw.ns4) x-=9; break;
|
||||
case "right": x=cmpage.x2-totw; break;
|
||||
case "bottom": case "bottomcenter": y=cmpage.y2-toth; if(mp=="bottomcenter") x=cmpage.x2/2-totw/2; break;
|
||||
default: if(mp.toString().indexOf(",")>-1) mpa=1; break;
|
||||
}for(var i=0;i<c.l[0].m.length;i++){
|
||||
m = c.m[c.l[0].m[i]]; o = m.b; if(mpa) rows?x=cm_cp(mp[i]):y=cm_cp(mp[i],0,0,1);
|
||||
o.moveIt(x,y); o.showIt(); if(m.arr) m.o.arr.showIt(); o.oy=y;
|
||||
if(!mpa) rows?x+=m.w+px+bx:y+=m.h+px+by
|
||||
}if(c.useBar==1){ //Background-Bar
|
||||
var bbx=c.barBorderX,bby=c.barBorderY;
|
||||
var bar1=c.bar1= new cm_makeObj(c.name+'bbar_0',c.name+'bbar',nowrite?0:c.bar1,document)
|
||||
var bar=c.bar= new cm_makeObj(c.name+'bbar','',nowrite?0:c.bar,document); bar.css.zIndex=c.zIndex+1
|
||||
var barx=c.barX=="menu"?c.m[c.l[0].m[0]].b.x-bbx:cm_cp(c.barX,1);
|
||||
var bary=c.barY=="menu"?c.m[c.l[0].m[0]].b.y-bby:cm_cp(c.barY);
|
||||
var barw=c.barWidth=="menu"?totw:cm_cp(c.barWidth,1,bbx*2);
|
||||
var barh=c.barHeight=="menu"?toth:cm_cp(c.barHeight,0,bby*2);
|
||||
bar1.clipTo(0,barw,barh,0,1); bar1.moveIt(bbx,bby); bar1.showIt();
|
||||
bar.clipTo(0,barw+bbx*2,barh+bby*2,0,1); bar.moveIt(barx,bary); bar.showIt();
|
||||
}if(c.resizeCheck){ //Window resize code - updated 4.06 - stil sucks
|
||||
if(bw.ns4||bw.op5||bw.op6)setTimeout('window.onresize=new Function("'+c.name+'.resized()")',500)
|
||||
else window.onresize=new Function(c.name+".resized()")
|
||||
c.resized=cm_resized; if(bw.op5||bw.op6) document.onmousemove=new Function(c.name+".resized()")
|
||||
}if(c.onconstruct) eval(c.onconstruct) //onconstruct event
|
||||
c.constructed = 1 //Added v4.05
|
||||
return true
|
||||
}
|
||||
/**Capturing resize**/
|
||||
var cm_inresize=0
|
||||
function cm_resized(){
|
||||
if(cm_inresize) return
|
||||
page2=new cm_page(); var off=(bw.op6||bw.op5)?20:5
|
||||
if(page2.x2<cmpage.x2-off || page2.y2<cmpage.orgy-off || page2.x2>cmpage.x2+off || page2.y2>cmpage.orgy+off){
|
||||
if(bw.ie||bw.ns6||bw.op7||bw.ns4){
|
||||
cmpage=page2; this.isresized=1;
|
||||
if(this.onresize) eval(this.onresize); this.construct(1);
|
||||
if(this.onafterresize) eval(this.onafterresize);
|
||||
}else{cm_inresize=1; location.reload()}
|
||||
}
|
||||
}
|
||||
/**Onclick of an item**/
|
||||
makeCM.prototype.onclck=function(m){ //Changed v4.06
|
||||
m = this.m[m]
|
||||
if(m.onclck) eval(m.onclck);
|
||||
if(this.openOnClick && m.subs.length>0){
|
||||
this.clicked = 1; this.showsub(m.name); return
|
||||
}
|
||||
var lnk=m.lnk, targ=m.targ
|
||||
if(lnk){
|
||||
if(lnk.indexOf("mailto")!=0 && lnk.indexOf("http")!=0) lnk=this.root+lnk
|
||||
if(String(targ)=="undefined" || targ=="" || targ==0 || targ=="_self"){
|
||||
if(this.frames){ //Turning of all level 1 + vars
|
||||
if(this.l[0].a){
|
||||
this.m[this.l[0].a].active(0,1)
|
||||
this.l[0].a =0
|
||||
}
|
||||
for(i=this.frameStartLevel;i<this.l.length;i++){
|
||||
if(this.l[i].b){
|
||||
this.l[i].b.hideIt()
|
||||
this.l[i].b = null
|
||||
for(j=0;j<this.l[i].m.length;j++){
|
||||
this.m[this.l[i].m[j]].b = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isover=0
|
||||
}
|
||||
this.deftarget.location.href=lnk
|
||||
}
|
||||
else if(targ=="_blank") window.open(lnk)
|
||||
else if(targ=="_top" || targ=="window") top.location.href=lnk
|
||||
else if(top[targ]) top[targ].location.href=lnk
|
||||
else if(parent[targ]) parent[targ].location.href=lnk
|
||||
}else return false
|
||||
}
|
||||
|
||||
/******************************************
|
||||
CM_ADD-IN - hideselectboxes (last updated: 11/13/02)
|
||||
IE5+ and NS6+ only - ignores the other browsers
|
||||
|
||||
Because of the selectbox bug in the browsers that makes
|
||||
selectboxes have the highest z-index whatever you do
|
||||
this script will check for selectboxes that interfear with
|
||||
your menu items and then hide them.
|
||||
|
||||
Just add this code to the coolmenus js file
|
||||
or link the cm_addins.js file to your page as well.
|
||||
*****************************************/
|
||||
if(bw.dom&&!bw.op){
|
||||
makeCM.prototype.sel=0
|
||||
makeCM.prototype.onshow+=";this.hideselectboxes(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
|
||||
makeCM.prototype.hideselectboxes=function(pm,x,y,w,h,l){
|
||||
var selx,sely,selw,selh,i
|
||||
if(!this.sel){
|
||||
this.sel=this.doc.getElementsByTagName("SELECT")
|
||||
this.sel.level=0
|
||||
}
|
||||
var sel=this.sel
|
||||
for(i=0;i<sel.length;i++){
|
||||
selx=0; sely=0; var selp;
|
||||
if(sel[i].offsetParent){selp=sel[i]; while(selp.offsetParent){selp=selp.offsetParent; selx+=selp.offsetLeft; sely+=selp.offsetTop;}}
|
||||
selx+=sel[i].offsetLeft; sely+=sel[i].offsetTop
|
||||
selw=sel[i].offsetWidth; selh=sel[i].offsetHeight
|
||||
if(selx+selw>x && selx<x+w && sely+selh>y && sely<y+h){
|
||||
if(sel[i].style.visibility!="hidden"){sel[i].level=l; sel[i].style.visibility="hidden"; if(pm){ if(!pm.mout) pm.mout=""; pm.mout+=this.name+".sel["+i+"].style.visibility='visible';"}}
|
||||
}else if(l<=sel[i].level && !(pm&&l==0)) sel[i].style.visibility="visible"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,213 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item 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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
oCMenu.frames = 0
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=10
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///D|/thomas2/CM_UPDATE/coolmenus/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
oCMenu.onresize="makeCM('oCMenu'); oCMenu.construct(1);"
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=90
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=110
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=0//-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','http://www.sdf.sdf.sdf/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','mailto:test.html')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
oCMenu.showsub("top3")
|
||||
oCMenu.hidesub()
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
This file is basically used for debugging. This does not work in Opera or NS4.
|
||||
<br>
|
||||
<br>
|
||||
<a href="#" onclick="getProps(window); return false">Get window properties</a><br>
|
||||
<a href="#" onclick="getProps(document.body); return false">Get body properties</a><br>
|
||||
<a href="#" onclick="getProps(oCMenu); return false">Get menu properties</a><br>
|
||||
<a href="#" onclick="getProps(oCMenu.l[0]); return false">Get level 0 properties</a><br>
|
||||
<a href="#" onclick="getProps(oCMenu.m['top3']); return false">Get item properties</a><br>
|
||||
<a href="#" onclick="getProps(oCMenu.bar); return false">Get menubar (makeObj object) properties</a><br>
|
||||
<br>
|
||||
<a href="#" onclick="getProps(bw); return false">Get bw properties</a><br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div id="divProps"></div>
|
||||
|
||||
<script>
|
||||
function getProps(obj){
|
||||
document.getElementById("divProps").innerHTML=""
|
||||
for(i in obj){
|
||||
if(i!="fullScreen") document.getElementById("divProps").innerHTML+="<b>"+i+"</b>"+ ' = '+obj[i] +"<br>"
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
TD,P,B,INPUT,DIV{font-family:arial,helvetica; font-size:12px}
|
||||
.clCMEvent{position:absolute; z-index:300; width:100%; height:100%; clip:rect(0,100%,100%,0); left:0; top:0; visibility:hidden}
|
||||
.clCMAbs{position:absolute; width:10; height:10; left:0; top:0; visibility:hidden}
|
||||
|
||||
.clT,.clTover,.clS,.clSover,.clS2,.clS2over{position:absolute; overflow:hidden; width:130; height:25; cursor:pointer; cursor:hand}
|
||||
.clT,.clTover{padding:4px; font-size:12px; font-weight:bold}
|
||||
.clT{color:white; }
|
||||
.clTover{color:#FCCE55;}
|
||||
.clS,.clSover{padding:2px; font-size:11px; font-weight:bold}
|
||||
.clS2,.clS2over{padding:2px; font-size:11px;}
|
||||
.clS,.clS2{color:#006699; background-color:#CDDBEB; layer-background-color:#CDDBEB;}
|
||||
.clSover,.clS2over{color:#FCCE55;}
|
||||
.clSover,.clS2over,.clTover,.clB,.clBar{layer-background-color:#336699; background-color:#336699;}
|
||||
.clB{position:absolute; visibility:hidden; z-index:300}
|
||||
.clBar{position:absolute; width:10; height:10; visibility:hidden; }
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<!-- Using a linked stylesheet -->
|
||||
<link rel="STYLESHEET" type="text/css" href="dhtmlcentral.css">
|
||||
<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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body topmargin=0 marginheight=0>
|
||||
<script language="JavaScript1.2" src="dhtmlcentral.js">
|
||||
/*****************************************************************************
|
||||
Linked js file with all the menucreation code inside
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
oM=new makeCM("oM"); oM.resizeCheck=1; oM.rows=1; oM.onlineRoot=""; oM.pxBetween =0;
|
||||
oM.fillImg="cm_fill.gif"; oM.fromTop=115; oM.fromLeft=155; oM.wait=300; oM.zIndex=400;
|
||||
oM.useBar=1; oM.barWidth="100%"; oM.barHeight="menu"; oM.barX=0;oM.barY="menu"; oM.barClass="clBar";
|
||||
oM.barBorderX=0; oM.barBorderY=0;
|
||||
oM.level[0]=new cm_makeLevel(90,21,"clT","clTover",1,1,"clB",0,"bottom",0,0,0,0,0);
|
||||
oM.level[1]=new cm_makeLevel(102,22,"clS","clSover",1,1,"clB",0,"right",0,0,"menu_arrow.gif",10,10);
|
||||
oM.level[2]=new cm_makeLevel(110,22,"clS2","clS2over");
|
||||
oM.level[3]=new cm_makeLevel(140,22);
|
||||
|
||||
oM.makeMenu('m1','','News','/news/?m=1');
|
||||
oM.makeMenu('m2','','Projects','/projects/?m=2');
|
||||
oM.makeMenu('m3','','Scripts','/script/?m=3');
|
||||
oM.makeMenu('m4','','Tutorials','/tutorials/?m=4');
|
||||
oM.makeMenu('m5','','Forums','/forums/?m=5');
|
||||
oM.makeMenu('m6','','Resources','/resources/?m=6');
|
||||
oM.makeMenu('m7','','dhtmlcentral','/dhtmlcentral/?m=7');
|
||||
oM.makeMenu('m8','m1','Newest news','/news/?');
|
||||
oM.makeMenu('m9','m1','Archive','/news/?archive=1');
|
||||
oM.makeMenu('m10','m2','CoolMenus','/projects/coolmenus/?m=10','',120,0);
|
||||
oM.makeMenu('m11','m2','DHTML Library','/projects/lib/?m=11','',120,0);
|
||||
oM.makeMenu('m12','m2','DHTML Guestbook','/projects/guestbook/?m=12','',120,0);
|
||||
oM.makeMenu('m13','m3','New scripts','/script/search.asp?new=1');
|
||||
oM.makeMenu('m14','m3','All scripts','/script/?m=14');
|
||||
oM.makeMenu('m15','m3','Categories','/txt/?m=15');
|
||||
oM.makeMenu('m16','m15','Menu','/script/search.asp?category=menu');
|
||||
oM.makeMenu('m17','m15','Text','/script/search.asp?category=text');
|
||||
oM.makeMenu('m18','m15','Animation','/script/search.asp?category=animation');
|
||||
oM.makeMenu('m19','m15','Other','/script/search.asp?category=other');
|
||||
oM.makeMenu('m20','m5','CoolMenus 3','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus+3');
|
||||
oM.makeMenu('m21','m5','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues');
|
||||
oM.makeMenu('m22','m5','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts');
|
||||
oM.makeMenu('m23','m5','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML');
|
||||
oM.makeMenu('m24','m5','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom');
|
||||
oM.makeMenu('m25','m5','Off topic','/forums/forum.asp?FORUM_ID=9&CAT_ID=1&Forum_Title=Off%2Dtopic');
|
||||
oM.makeMenu('m27','m6','Links','/resources/default.asp?m=27');
|
||||
oM.makeMenu('m28','m6','Web books','/resources/books.asp?m=28');
|
||||
oM.makeMenu('m29','m6','Web software','/resources/software.asp?m=29');
|
||||
oM.makeMenu('m39','m7','About','/txt/?m=39');
|
||||
oM.makeMenu('m40','m7','Advertise','/txt/?m=40');
|
||||
oM.makeMenu('m41','m7','Site sponsor','/txt/?m=41');
|
||||
oM.makeMenu('m42','m7','Contributors','/dhtmlcentral/contributors.asp?m=42');
|
||||
oM.makeMenu('m43','m7','Newsletter','/dhtmlcentral/newsletter.asp?m=43');
|
||||
oM.makeMenu('m44','m7','Members','/forums/members.asp?m=44');
|
||||
oM.makeMenu('m45','m7','Copyright','/txt/?m=45');
|
||||
oM.makeMenu('m26','m5','Active topics','/forums/active.asp?m=26');
|
||||
|
||||
//var avail="190+((cmpage.x2-235)/7)";
|
||||
//oM.menuPlacement=new Array(192,avail+"-11",avail+"*2-8",avail+"*3-12",avail+"*4-7",avail+"*5-9",avail+"*6+5")
|
||||
oM.construct()
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
FIXED 11/14/02
|
||||
|
||||
1. Though the script worked fine in the new Opera 7 beta the script treated it as Explorer.
|
||||
Therefore I choosed to update the browsercheck a little and now op7 runs more or less
|
||||
the same way as mozilla (creating elements with DOM) (in the no-frame version)
|
||||
NOTE: If you are using frames you should also update the browsercheck inside your
|
||||
menu file (you don't have to though).
|
||||
2. A lot of small fixes here and there:
|
||||
f1. mmout - mout bug
|
||||
f2. bug with using short-notation
|
||||
f3. framelevel scroll bug
|
||||
f4. status http://, mailto bug
|
||||
f5. added onclick events (not really a bug but hey)
|
||||
f6. updated selectbox-add-in to work in frames
|
||||
f7. scroll-add_in bug
|
||||
and some more things.
|
||||
3. Added a level variable. It's called roundBorder and will give you a border around
|
||||
all the elements in that level. Sweet. Check the example "menu_with_roundborder.html"
|
||||
in the zip file for more info.
|
||||
3. cm_addins.js: updated hideselectboxes add-in to work with frames
|
||||
4. Remove link from statusbar on mouseout.
|
||||
5. Fixed status message so it works also with mailto and http:// links.
|
||||
6. Added to main variables (they should explain themselfs):
|
||||
openOnClick
|
||||
closeOnClick
|
||||
|
||||
NEW ZIP:
|
||||
http://www.dhtmlcentral.com/projects/coolmenus/coolmenus4_beta1_06.zip
|
||||
|
|
@ -1,228 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:red; layer-background-color:red; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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.
|
||||
**/
|
||||
|
||||
//http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=14477
|
||||
|
||||
//Menu object creation
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
oCMenu.frames = 0
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=0
|
||||
oCMenu.fromLeft=0
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=0
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
|
||||
/******************
|
||||
CM_ADD-IN - foldoutmenu (last updated: 11/14/02)
|
||||
|
||||
Test foldoutmenu behaviour.
|
||||
|
||||
Only for level 0
|
||||
|
||||
*****************/
|
||||
makeCM.prototype.onshow+="if(l==1) this.foldout(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
|
||||
makeCM.prototype.foldout=function(pm,x,y,w,h,l){
|
||||
//First only toplevel
|
||||
c = this
|
||||
curr = 0
|
||||
pm.mout=""
|
||||
for(var i=0;i<c.l[l].m.length;i++){
|
||||
//move back in place, just in case
|
||||
m = this.m[c.l[l].m[i]]
|
||||
if(m.b.orgy){
|
||||
if(m.b.y!=m.b.orgy) m.b.moveIt(m.b.x,m.b.orgy)
|
||||
}
|
||||
//find current
|
||||
if(curr){ //move'em
|
||||
m.b.orgy = m.b.y
|
||||
m.b.orgsuby = m.suby
|
||||
m.b.moveIt(m.b.x,m.b.y+h)
|
||||
m.mover="pm.b.moveIt(pm.b.x,pm.b.orgy)"
|
||||
}
|
||||
if(c.l[l].m[i] == pm.name) curr = 1
|
||||
}
|
||||
}
|
||||
makeCM.prototype.onhide+="this.foldin()"
|
||||
makeCM.prototype.foldin=function(){
|
||||
//First only toplevel
|
||||
c = this
|
||||
curr = 0
|
||||
l=0
|
||||
for(var i=0;i<c.l[l].m.length;i++){
|
||||
m = this.m[c.l[l].m[i]]
|
||||
if(m.b.orgy) m.b.moveIt(m.b.x,m.b.orgy)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 46 B |
|
|
@ -1,24 +0,0 @@
|
|||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
/*********************************************************************
|
||||
Function to find a spesified frame - loops all frames 3 levels deep
|
||||
(should be enough in most cases, I was to lazy to make a proper one)
|
||||
*********************************************************************/
|
||||
function cm_findFrame(frameName){
|
||||
obj=top; var frameObj=0;
|
||||
for(i=0;i<obj.frames.length;i++){
|
||||
if(obj.frames[i].name==frameName){frameObj=obj.frames[i]; break;}; ln=obj.frames[i].frames.length
|
||||
for(j=0;j<ln;j++){
|
||||
if(obj.frames[i].frames[j].name==frameName){frameObj=obj.frames[i].frames[j]; break}; ln2=obj.frames[i].frames[j].frames.length
|
||||
for(a=0;a<ln2;a++){
|
||||
if(obj.frames[i].frames[j].frames[a].name==frameName){frameObj=obj.frames[i].frames[j].frames[a]; break}
|
||||
}
|
||||
}
|
||||
}return frameObj
|
||||
}
|
||||
/*********************************************************************
|
||||
Reload function
|
||||
*********************************************************************/
|
||||
function cm_reload(sep){
|
||||
self.location.href=self.location.href+sep+"reload_coolmenus"
|
||||
}
|
||||
/*********************************************************************
|
||||
Getting the menuobjects
|
||||
*********************************************************************/
|
||||
function cm_getItems(menu,orgframe){
|
||||
var add,ok = 0, frame
|
||||
if(top.name==self.name){
|
||||
//We are not in a frameset, so there's no need to do anything at all.
|
||||
//This could maybe be used to load the menu directly into the page if
|
||||
//the frame didn't exist. That could be nice :)
|
||||
// return
|
||||
}
|
||||
frame = cm_findFrame(orgframe)
|
||||
if(!frame){ //The spesified menu frame doesn't exist
|
||||
self.status="CoolMenu error: Missing menu frame. Frame name: "+orgframe
|
||||
//return
|
||||
}
|
||||
if(frame[menu]){//Checking menu object
|
||||
if(frame[menu].constructed){//Checking if it's constructed
|
||||
frame[menu].makeObjects(0,self)
|
||||
self[menu] = frame[menu] //Making a local copy of the menu object
|
||||
ok = 1
|
||||
}
|
||||
}
|
||||
if(!ok){
|
||||
//This means that we could not find the menus - what to do ??
|
||||
//We try to reload this page in a little while to check again.
|
||||
search = self.location.search
|
||||
//First we check that we haven't already tried:
|
||||
if(search.substr(1).indexOf("reload_coolmenus")==-1){
|
||||
//We haven't tried, so let's try that.
|
||||
if(search.slice(0,1)=="?") sep="&"
|
||||
else sep="?"
|
||||
//This will override the usuall onload
|
||||
//shouldn't use onload, but NS4 didn't like it any other way.
|
||||
//I will have another look later on.
|
||||
self.onload=new Function('setTimeout("cm_reload(\''+sep+'\')",1000)')
|
||||
}
|
||||
}
|
||||
self.status=ok
|
||||
}
|
||||
|
||||
/*Getting items -- arguments:
|
||||
|
||||
menu: The name of the menu object to use
|
||||
frame: The name of the frame
|
||||
|
||||
*/
|
||||
cm_getItems("oCMenu","frmMenu")
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
</head>
|
||||
|
||||
<!-- frames -->
|
||||
<frameset rows="50,*" framespacing="0" frameborder="0" border="0">
|
||||
<frame src="menu1.html" name="frmMenu" id="frmMenu" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
|
||||
<frame src="test1.html" name="frmMain" id="frmMain" frameborder="0" scrolling="Auto" marginwidth="0" marginheight="0">
|
||||
</frameset>
|
||||
</html>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
</head>
|
||||
<!-- frames -->
|
||||
<frameset cols="150,*" framespacing="0" frameborder="0">
|
||||
<frame src="menu2.html" name="frmMenu" id="frmMenu" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
|
||||
<frame src="test1.html" name="frmMain" id="frmMain" frameborder="0" scrolling="Auto" marginwidth="0" marginheight="0">
|
||||
</frameset>
|
||||
</html>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
</head>
|
||||
|
||||
<!-- frames -->
|
||||
<frameset rows="80,*" framespacing="0" frameborder="0" border="0">
|
||||
<frame src="menu3.html" name="frmMenu" id="frmMenu" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
|
||||
<frame src="test1.html" name="frmMain" id="frmMain" frameborder="0" scrolling="Auto" marginwidth="0" marginheight="0">
|
||||
</frameset>
|
||||
</html>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
</head>
|
||||
|
||||
<!-- frames -->
|
||||
<frameset rows="80,*" framespacing="0" frameborder="0" border="0">
|
||||
<frame src="menu4.html" name="frmMenu" id="frmMenu" frameborder="0" scrolling="Auto" noresize marginwidth="0" marginheight="0">
|
||||
<frame src="test1.html" name="frmMain" id="frmMain" frameborder="0" scrolling="Auto" marginwidth="0" marginheight="0">
|
||||
</frameset>
|
||||
</html>
|
||||
|
|
@ -1,188 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
|
||||
<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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
<body marginwidth="0" marginheight="0">
|
||||
<script>
|
||||
/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
|
||||
function cm_bwcheck(){
|
||||
//In theory we should use object detection, but this script needs work-arounds for almost every browser...
|
||||
this.ver=navigator.appVersion
|
||||
this.agent=navigator.userAgent.toLowerCase()
|
||||
this.dom=document.getElementById?1:0
|
||||
this.ns4=(!this.dom && document.layers)?1:0;
|
||||
this.op=window.opera
|
||||
this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
|
||||
this.ie=this.agent.indexOf("msie")>-1 && !this.op
|
||||
if(this.op){
|
||||
this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
|
||||
this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
|
||||
this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
|
||||
}else if(this.moz) this.ns6 = 1
|
||||
else if(this.ie){
|
||||
this.ie4 = !this.dom && document.all
|
||||
this.ie5 = (this.agent.indexOf("msie 5")>-1)
|
||||
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
|
||||
this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
|
||||
}
|
||||
this.mac=(this.agent.indexOf("mac")>-1)
|
||||
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
|
||||
this.usedom= this.ns6||this.op7//Use dom creation
|
||||
this.reuse = this.ie||this.op7||this.usedom //Reuse layers
|
||||
this.px=this.dom&&!this.op5?"px":""
|
||||
return this
|
||||
}
|
||||
var bw=new cm_bwcheck()
|
||||
/***
|
||||
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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Netscape 4 - bug fix -
|
||||
//maybe -stupid NS4 - objects are not handled correctly when
|
||||
//the object creator is in a linked file
|
||||
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()
|
||||
|
||||
//Frame properties
|
||||
oCMenu.frames = 1
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///d|/thomas2/CM_UPDATE/coolmenus/frames_version/"
|
||||
oCMenu.onlineRoot="/coolmenus/frames_version/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','test1.html','',200)
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','test2.html','',200)
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','test3.html','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','test3.html')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','test2.html')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','test1.html')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','test1.html')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','test2.html')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','test3.html')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','test1.html')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','test3.html')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','test2.html')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','test2.html')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
|
||||
|
||||
/*OPTIONAL LINE:
|
||||
Because some browsers (especially our old friend NS4)
|
||||
have problems with this initial frame load you might
|
||||
want to add a line similar to this (replace MyFrameName
|
||||
with the name of you frame):
|
||||
|
||||
top.frmMain.location.reload()
|
||||
|
||||
This will ensure that the menu is loaded when
|
||||
the first page is loaded in the main frame.
|
||||
|
||||
This also helps the resize problems in Opera and NS4
|
||||
*/
|
||||
top.frmMain.location.reload()
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,184 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
|
||||
<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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
<body marginwidth="0" marginheight="0">
|
||||
<script>
|
||||
/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
|
||||
function cm_bwcheck(){
|
||||
function cm_bwcheck(){
|
||||
//In theory we should use object detection, but this script needs work-arounds for almost every browser...
|
||||
this.ver=navigator.appVersion
|
||||
this.agent=navigator.userAgent.toLowerCase()
|
||||
this.dom=document.getElementById?1:0
|
||||
this.ns4=(!this.dom && document.layers)?1:0;
|
||||
this.op=window.opera
|
||||
this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
|
||||
this.ie=this.agent.indexOf("msie")>-1 && !this.op
|
||||
if(this.op){
|
||||
this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
|
||||
this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
|
||||
this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
|
||||
}else if(this.moz) this.ns6 = 1
|
||||
else if(this.ie){
|
||||
this.ie4 = !this.dom && document.all
|
||||
this.ie5 = (this.agent.indexOf("msie 5")>-1)
|
||||
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
|
||||
this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
|
||||
}
|
||||
this.mac=(this.agent.indexOf("mac")>-1)
|
||||
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
|
||||
this.usedom= this.ns6||this.op7//Use dom creation
|
||||
this.reuse = this.ie||this.op7||this.usedom //Reuse layers
|
||||
this.px=this.dom&&!this.op5?"px":""
|
||||
return this
|
||||
}
|
||||
var bw=new cm_bwcheck()
|
||||
/***
|
||||
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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Netscape 4 - bug fix -
|
||||
//maybe -stupid NS4 - objects are not handled correctly when
|
||||
//the object creator is in a linked file
|
||||
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()
|
||||
|
||||
//Frame properties
|
||||
oCMenu.frames = 1
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=0
|
||||
oCMenu.fromTop=20
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///d|/thomas/coolmenus/frames_version/"
|
||||
oCMenu.onlineRoot="/coolmenus/frames_version/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.level[0].align="right"
|
||||
|
||||
|
||||
//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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','test1.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','test2.html')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','test3.html','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','test3.html')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','test2.html')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','test1.html')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','test1.html')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','test2.html')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','test3.html')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','test1.html')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','test3.html')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','test2.html')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','test2.html')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
/*OPTIONAL LINE:
|
||||
Because some browsers (especially our old friend NS4)
|
||||
have problems with this initial frame load you might
|
||||
want to add a line similar to this (replace MyFrameName
|
||||
with the name of you frame):
|
||||
|
||||
top.frmMain.location.reload()
|
||||
|
||||
This will ensure that the menu is loaded when
|
||||
the first page is loaded in the main frame.
|
||||
|
||||
This also helps the resize problems in Opera and NS4
|
||||
*/
|
||||
top.frmMain.location.reload()
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,185 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
<body marginwidth="0" marginheight="0">
|
||||
<script>
|
||||
/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
|
||||
function cm_bwcheck(){
|
||||
function cm_bwcheck(){
|
||||
//In theory we should use object detection, but this script needs work-arounds for almost every browser...
|
||||
this.ver=navigator.appVersion
|
||||
this.agent=navigator.userAgent.toLowerCase()
|
||||
this.dom=document.getElementById?1:0
|
||||
this.ns4=(!this.dom && document.layers)?1:0;
|
||||
this.op=window.opera
|
||||
this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
|
||||
this.ie=this.agent.indexOf("msie")>-1 && !this.op
|
||||
if(this.op){
|
||||
this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
|
||||
this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
|
||||
this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
|
||||
}else if(this.moz) this.ns6 = 1
|
||||
else if(this.ie){
|
||||
this.ie4 = !this.dom && document.all
|
||||
this.ie5 = (this.agent.indexOf("msie 5")>-1)
|
||||
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
|
||||
this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
|
||||
}
|
||||
this.mac=(this.agent.indexOf("mac")>-1)
|
||||
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
|
||||
this.usedom= this.ns6||this.op7//Use dom creation
|
||||
this.reuse = this.ie||this.op7||this.usedom //Reuse layers
|
||||
this.px=this.dom&&!this.op5?"px":""
|
||||
return this
|
||||
}
|
||||
var bw=new cm_bwcheck()
|
||||
/***
|
||||
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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Netscape 4 - bug fix -
|
||||
//maybe -stupid NS4 - objects are not handled correctly when
|
||||
//the object creator is in a linked file
|
||||
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()
|
||||
|
||||
//Frame properties
|
||||
oCMenu.frames = 1
|
||||
oCMenu.frameStartLevel = 2
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///d|/thomas/coolmenus/frames_version/"
|
||||
oCMenu.onlineRoot="/coolmenus/frames_version/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=1
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].rows=0
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="bottom"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','test1.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','test2.html')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','test3.html','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','test3.html')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','test2.html')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','test1.html')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','test1.html')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','test2.html')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','test3.html')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','test1.html')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','test3.html')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','test2.html')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','test2.html')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
/*OPTIONAL LINE:
|
||||
Because some browsers (especially our old friend NS4)
|
||||
have problems with this initial frame load you might
|
||||
want to add a line similar to this (replace MyFrameName
|
||||
with the name of you frame):
|
||||
|
||||
top.frmMain.location.reload()
|
||||
|
||||
This will ensure that the menu is loaded when
|
||||
the first page is loaded in the main frame.
|
||||
|
||||
This also helps the resize problems in Opera and NS4
|
||||
*/
|
||||
top.frmMain.location.reload()
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,190 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
|
||||
<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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
<body marginwidth="0" marginheight="0">
|
||||
<script>
|
||||
/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
|
||||
function cm_bwcheck(){
|
||||
//In theory we should use object detection, but this script needs work-arounds for almost every browser...
|
||||
this.ver=navigator.appVersion
|
||||
this.agent=navigator.userAgent.toLowerCase()
|
||||
this.dom=document.getElementById?1:0
|
||||
this.ns4=(!this.dom && document.layers)?1:0;
|
||||
this.op=window.opera
|
||||
this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
|
||||
this.ie=this.agent.indexOf("msie")>-1 && !this.op
|
||||
if(this.op){
|
||||
this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
|
||||
this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
|
||||
this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
|
||||
}else if(this.moz) this.ns6 = 1
|
||||
else if(this.ie){
|
||||
this.ie4 = !this.dom && document.all
|
||||
this.ie5 = (this.agent.indexOf("msie 5")>-1)
|
||||
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
|
||||
this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
|
||||
}
|
||||
this.mac=(this.agent.indexOf("mac")>-1)
|
||||
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
|
||||
this.usedom= this.ns6||this.op7//Use dom creation
|
||||
this.reuse = this.ie||this.op7||this.usedom //Reuse layers
|
||||
this.px=this.dom&&!this.op5?"px":""
|
||||
return this
|
||||
}
|
||||
var bw=new cm_bwcheck()
|
||||
/***
|
||||
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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Netscape 4 - bug fix -
|
||||
//maybe -stupid NS4 - objects are not handled correctly when
|
||||
//the object creator is in a linked file
|
||||
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()
|
||||
|
||||
//Frame properties
|
||||
oCMenu.frames = 1
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
//New properties in 4.06 - Set to open and/or close the menu onclick
|
||||
oCMenu.openOnClick=1
|
||||
oCMenu.closeOnClick=1
|
||||
|
||||
oCMenu.offlineRoot="file:///d|/thomas/coolmenus/frames_version/"
|
||||
oCMenu.onlineRoot="/coolmenus/frames_version/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
|
||||
|
||||
oCMenu.makeMenu('top0','',' News','test1.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','test2.html')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','test3.html','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','test1.html','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','test3.html')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','test2.html')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','test1.html')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','test2.html')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','test1.html')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','test2.html')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','test3.html')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','test1.html')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','test3.html')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','test2.html')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','test2.html')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
/*OPTIONAL LINE:
|
||||
Because some browsers (especially our old friend NS4)
|
||||
have problems with this initial frame load you might
|
||||
want to add a line similar to this (replace MyFrameName
|
||||
with the name of you frame):
|
||||
|
||||
top.frmMain.location.reload()
|
||||
|
||||
This will ensure that the menu is loaded when
|
||||
the first page is loaded in the main frame.
|
||||
|
||||
This also helps the resize problems in Opera and NS4
|
||||
*/
|
||||
top.frmMain.location.reload()
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
|
||||
<body bgcolor="silver">
|
||||
<script src="coolmenus_frame.js" type="text/javascript"></script>
|
||||
|
||||
Test 1<br>
|
||||
<br>
|
||||
<br>
|
||||
Test 1
|
||||
<br>
|
||||
<br>
|
||||
Test 1<br>
|
||||
<br>
|
||||
<br>
|
||||
Test 1<br>
|
||||
<br>
|
||||
<br>
|
||||
Test 1<br>
|
||||
<br>
|
||||
<br>
|
||||
Test 1<br>
|
||||
<br>
|
||||
<br>
|
||||
Test 1
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
|
||||
<body bgcolor="silver">
|
||||
<script src="coolmenus_frame.js" type="text/javascript"></script>
|
||||
<br>
|
||||
<br>
|
||||
Test 2<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus3 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<link rel="STYLESHEET" type="text/css" href="coolmenus.css">
|
||||
</head>
|
||||
|
||||
<body bgcolor="silver">
|
||||
<script src="coolmenus_frame.js" type="text/javascript"></script>
|
||||
<br>
|
||||
<br>
|
||||
Test 3
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,217 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 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 */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; z-index:500; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
Coolmenus add-in file for more advanced featuers..
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Netscape 4 and Opera form work-around !! !! !! !! !!
|
||||
if(bw.ns4 || bw.op5 || bw.op6){
|
||||
oCMenu.onshow="document.layers?document.layers.formLayer.visibility='hidden':document.getElementById('formDiv').style.visibility='hidden';"
|
||||
oCMenu.onhide="document.layers?document.layers.formLayer.visibility='visible':document.getElementById('formDiv').style.visibility='visible';"
|
||||
}
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<ilayer id="formLayer"><div id="formDiv">
|
||||
<form>
|
||||
<select>
|
||||
<option>asd asd asd asd </option>
|
||||
</select>
|
||||
<select>
|
||||
<option>asd asd asd asd asd</option>
|
||||
</select>
|
||||
<input type="text" value="">
|
||||
<select>
|
||||
<option>asd asd asd asd </option>
|
||||
</select>
|
||||
</form>
|
||||
</div></ilayer>
|
||||
As you can see in this page there are form elements. In Netscape 4 and Opera there's a bug that makes ALL form elements
|
||||
get the highest z-index. That means that the form elements "shines" trough the elements. In explorer, netscape 6 and opera this only goes
|
||||
for select boxes. So I have made a check that you can turn on (oCMenu.checkselect) that checks for select boxes and
|
||||
hides them if they come in the way of the menu. Unfortunatly this can not be done in Netscape so I have added another workaround to
|
||||
that problem on this page. Surround your entire form with a ILAYER tag (ilayers are positioned relative by default). Add a id to
|
||||
the layer and show it onshow and hide it onhide. I have also surronded it with a div called "formDiv" that I hide and show for Opera.
|
||||
<br>
|
||||
<br>
|
||||
See the source-code for more information.
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 360 B |
|
Before Width: | Height: | Size: 397 B |
|
Before Width: | Height: | Size: 1.5 KiB |
|
|
@ -1,184 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
oCMenu.frames = 0
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','http://www.sdf.sdf.sdf/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','mailto:test.html')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,171 +0,0 @@
|
|||
<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 */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:#FF9900; layer-background-color:#FF9900; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:1px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{color:#336699;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; width:180; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:#FF9900; layer-background-color:#FF9900; color:#336699;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=10
|
||||
oCMenu.fromTop=50
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu.onlineRoot=""
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=120
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=0
|
||||
oCMenu.level[0].borderY=0
|
||||
oCMenu.level[0].borderClass=0
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=1
|
||||
oCMenu.level[0].align="right"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].style=""
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=0
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].rows=0
|
||||
oCMenu.level[1].align="bottom"
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','','<b> News</b>','/news/index.asp')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',180,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',180,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',180,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp','',90)
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp','',90)
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp','',90)
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',90,0,'','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp','',90)
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus','',90)
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,273 +0,0 @@
|
|||
<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 1 */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:#FF9900; layer-background-color:#FF9900; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:1px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{color:#336699;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; width:180; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:#FF9900; layer-background-color:#FF9900; color:#336699;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/* MENU NUMBER 2 */
|
||||
/*Style for the background-bar*/
|
||||
.cl2Bar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.cl2Level0,.cl2Level0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; 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:tahoma, arial,helvetica; font-size:11px; 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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
<script language="JavaScript1.2" src="cm_addins.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
/******************* MENU NUMBER 1 **********************************/
|
||||
|
||||
/***
|
||||
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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=10
|
||||
oCMenu.fromTop=50
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu.onlineRoot=""
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=120
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=0
|
||||
oCMenu.level[0].borderY=0
|
||||
oCMenu.level[0].borderClass=0
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=1
|
||||
oCMenu.level[0].align="right"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].style=""
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=0
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].rows=0
|
||||
oCMenu.level[1].align="bottom"
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','','<b> News</b>','/news/index.asp')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',180,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',180,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',180,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
|
||||
/******************* MENU NUMBER 2 **********************************/
|
||||
|
||||
|
||||
|
||||
/***
|
||||
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=30
|
||||
oCMenu2.fromLeft=20
|
||||
oCMenu2.fromTop=0
|
||||
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=1
|
||||
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=110
|
||||
oCMenu2.level[0].height=25
|
||||
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=22
|
||||
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','',' News','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','',' Scripts','/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','',' Articles','/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')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu2.construct()
|
||||
|
||||
|
||||
</script>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,189 +0,0 @@
|
|||
<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 */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:#FF9900; layer-background-color:#FF9900; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:1px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:#cc99ff; layer-background-color:#cc99ff; color:#336699;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:red; layer-background-color:red}
|
||||
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:#FF9900; layer-background-color:#FF9900; color:white;}
|
||||
.clLevel1over{background-color:#006699; layer-background-color:#006699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:#FF9900; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#67FF00; layer-background-color:#67FF00; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=0
|
||||
oCMenu.fromTop=140
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement="right"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=135
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.level[0].align="left"
|
||||
|
||||
//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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
oCMenu.level[1].align="top"
|
||||
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=oCMenu.level[0].width
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
oCMenu.makeMenu('top0','',' News','/news/index.asp','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
oCMenu.makeMenu('top6','',' Test Links','')
|
||||
oCMenu.makeMenu('sub060','top6','sub1/test1.html','sub1/test1.html')
|
||||
oCMenu.makeMenu('sub0600','sub060','sub1/subsub1/test1.html','sub1/subsub1/test1.html')
|
||||
oCMenu.makeMenu('sub0601','sub060','sub1/subsub1/test2.html','sub1/subsub1/test2.html')
|
||||
oCMenu.makeMenu('sub0602','sub060','sub1/subsub1/test3.html','sub1/subsub1/test3.html')
|
||||
oCMenu.makeMenu('sub061','top6','sub1/test2.html','sub1/test2.html')
|
||||
oCMenu.makeMenu('sub062','top6','sub1/test3.html','sub1/test3.html')
|
||||
oCMenu.makeMenu('sub063','top6','sub2/test1.html','sub2/test1.html')
|
||||
oCMenu.makeMenu('sub064','top6','sub2/test2.html','sub2/test2.html')
|
||||
oCMenu.makeMenu('sub065','top6','sub2/test3.html','sub2/test3.html')
|
||||
|
||||
//Leave this line
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 56 B |
|
|
@ -1,194 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:red; layer-background-color:red}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
oCMenu.frames = 0
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.level[0].align="bottom"
|
||||
//Property added ---- Doesn't apply to the top level. This gives you a border around all items.
|
||||
oCMenu.level[0].roundBorder=2
|
||||
|
||||
//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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=0
|
||||
oCMenu.level[1].borderY=0
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<script>
|
||||
for(i in bw){
|
||||
document.write("<b>bw."+i+"</b>"+ ' = '+bw[i] +"<br>")
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,194 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 DHTML script made by Thomas Brattli from DHTMLCentral.com. Visit for more great scripts.</title>
|
||||
<style>
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
oCMenu.frames = 0
|
||||
|
||||
//New properties in 4.06 - Set to open and/or close the menu onclick
|
||||
oCMenu.openOnClick=1
|
||||
oCMenu.closeOnClick=1
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=20
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement="center"
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="100%"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX=0
|
||||
oCMenu.barY=0
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=110
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','http://www.sdf.sdf.sdf/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','mailto:test.html')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
asd<br>
|
||||
<br>
|
||||
<br>
|
||||
as
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,219 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 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 */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; z-index:500; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=50
|
||||
//Using the cm_page object to place the menu ----
|
||||
//There are some differences between the browsers that I try to fix here.
|
||||
oCMenu.fromLeft=!bw.ns4?cmpage.x2 - 160:cmpage.x2 - 176
|
||||
//We also need to "replace" the menu on resize. So:
|
||||
oCMenu.onresize="oCMenu.fromLeft=cmpage.x2 - 160"
|
||||
|
||||
|
||||
oCMenu.fromTop=150
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=135
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.level[0].align="left"
|
||||
|
||||
|
||||
//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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
<table width="100%" border="1" cellspacing="10" cellpadding="10">
|
||||
<tr>
|
||||
<td colspan="2"><h3>Page heading</h3><br></td>
|
||||
</tr>
|
||||
<td valign="top">
|
||||
This is an exmaple where I try to simulate placing the menu inside a table.
|
||||
For the menu to work properly the menu items have to be positioned absolute (if not
|
||||
it will not work in NS4), therefore we CANNOT place the menu inside a table for real, but
|
||||
we can make place it where it would have been if it was inside the table with a little extra
|
||||
code.
|
||||
<br>
|
||||
We use a fill image inside the TD to force the size of the TD to the size of the menu. We
|
||||
know that the table is 100% so we can try to find out where to place the menu using the
|
||||
<code>cmpage</code> object (it's an object that holds the size of the page, see the documentsize
|
||||
tutorial at dhtmlcentral.com for more information).
|
||||
<br>
|
||||
<br>
|
||||
In this case the only position that changes is the left position, so we use cmpage.x2 which is
|
||||
the total width of the page to figure out where the menu should be placed.
|
||||
<br>
|
||||
If you look at this in different browsers, you'll see that it's not perfect, so in the code
|
||||
of this example I made a little check that checks for NS4 and does some small changes.
|
||||
<br>
|
||||
If the top position of the menu is supposed to change as well, depening on the content
|
||||
or something we can do a little different approuch: <a href="table_placement2.html"></a>
|
||||
<br>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
Menu:<br>
|
||||
<img src="cm_fill.gif" width="120" height="332" alt="" border="0">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,244 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 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 */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; z-index:500; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body marginwidth="0" marginheight="0">
|
||||
<table width="100%" border="1" cellspacing="10" cellpadding="10">
|
||||
<tr>
|
||||
<td width="70%"><h3>Page heading</h3></td>
|
||||
<td>This is text, this will change the top position of the menu depending on how big this
|
||||
column is..
|
||||
This is text, this will change the top position of the menu depending on how big this
|
||||
column is..</td>
|
||||
</tr>
|
||||
<td valign="top">
|
||||
This is an exmaple where I try to simulate placing the menu inside a table.
|
||||
For the menu to work properly the menu items have to be positioned absolute (if not
|
||||
it will not work in NS4), therefore we CANNOT place the menu inside a table for real, but
|
||||
we can make place it where it would have been if it was inside the table with a little extra
|
||||
code.
|
||||
<br>
|
||||
We use a fill image inside the TD to force the size of the TD to the size of the menu.
|
||||
In this one we try to find the position of the div/layer surrounding the layer and
|
||||
then places the menu where that layer/div is.
|
||||
<br>
|
||||
<br>
|
||||
For this to work the menucode have to be placed AFTER the table. Which again means that
|
||||
it's VERY important that the code inside the table is correct (correctly nested tags, close all P tags and so on), if
|
||||
not Netscape 4 WILL break.
|
||||
</td>
|
||||
<td>
|
||||
Menu:<br>
|
||||
<!-- You need all this START-->
|
||||
<ilayer id="layerMenu"><div id="divMenu">
|
||||
<img src="cm_fill.gif" width="120" height="322" alt="" border="0">
|
||||
</div></ilayer>
|
||||
<!-- END -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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.
|
||||
**/
|
||||
|
||||
//Extra code to find position:
|
||||
function findPos(){
|
||||
if(bw.ns4){ //Netscape 4
|
||||
x = document.layers.layerMenu.pageX
|
||||
y = document.layers.layerMenu.pageY
|
||||
}else{ //other browsers
|
||||
x=0; y=0; var el,temp
|
||||
el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
|
||||
if(el.offsetParent){
|
||||
temp = el
|
||||
while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
|
||||
temp=temp.offsetParent;
|
||||
x+=temp.offsetLeft
|
||||
y+=temp.offsetTop;
|
||||
}
|
||||
}
|
||||
x+=el.offsetLeft
|
||||
y+=el.offsetTop
|
||||
}
|
||||
//Returning the x and y as an array
|
||||
return [x,y]
|
||||
}
|
||||
|
||||
pos = findPos()
|
||||
|
||||
//Menu object creation
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=50
|
||||
//Using the cm_page object to place the menu ----
|
||||
oCMenu.fromLeft=pos[0]
|
||||
oCMenu.fromTop=pos[1]
|
||||
//We also need to "re place" the menu on resize. So:
|
||||
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"
|
||||
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=135
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.level[0].align="left"
|
||||
|
||||
|
||||
//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
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[2].width=150
|
||||
oCMenu.level[2].height=20
|
||||
oCMenu.level[2].offsetX=0
|
||||
oCMenu.level[2].offsetY=0
|
||||
oCMenu.level[2].regClass="clLevel2"
|
||||
oCMenu.level[2].overClass="clLevel2over"
|
||||
oCMenu.level[2].borderClass="clLevel2border"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',160,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',160,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',160,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
oCMenu.makeMenu('top5','',' CoolMenus','/coolmenus/index.asp')
|
||||
oCMenu.makeMenu('sub50','top5','Examples','/coolmenus/examples.asp')
|
||||
oCMenu.makeMenu('sub500','sub50','With frames','/coolmenus/examples.asp?show=with')
|
||||
oCMenu.makeMenu('sub501','sub50','Without frames','/coolmenus/examples.asp?show=without')
|
||||
oCMenu.makeMenu('sub51','top5','Download','/coolmenus/download.asp')
|
||||
oCMenu.makeMenu('sub510','sub51','Download the source code to this menu','/coolmenus/download.asp','',150,40)
|
||||
oCMenu.makeMenu('sub52','top5','Tutorial','/coolmenus/tutorial.asp')
|
||||
oCMenu.makeMenu('sub520','sub52','Learn how to set up the menu','/coolmenus/tutorial.asp','',150,40)
|
||||
oCMenu.makeMenu('sub53','top5','MenuMaker','','',0,0,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub530','sub53','Use the menuMaker to make the menu code for you','','',150,40,'','','','','','','','window.open("/coolmenus/maker/","","width=800,height=600")')
|
||||
oCMenu.makeMenu('sub54','top5','FAQ','/coolmenus/faq.asp')
|
||||
oCMenu.makeMenu('sub540','sub54','Frequently asked questions','coolmenus/faq.asp','',150,40)
|
||||
oCMenu.makeMenu('sub55','top5','Help forum','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub550','sub55','Go to this forum and post you problems or suggestions regarding the CoolMenus','/forum/forum.asp?forum_id=2','',150,40)
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,231 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Coolmenus example - CoolMenus4 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 */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel0border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; z-index:500; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.clLevel2, .clLevel2over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold}
|
||||
.clLevel2{background-color:Navy; layer-background-color:Navy; color:white;}
|
||||
.clLevel2over{background-color:#0099cc; layer-background-color:#0099cc; color:Yellow; cursor:pointer; cursor:hand; }
|
||||
.clLevel2border{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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body marginwidth="0" marginheight="0">
|
||||
<table width="100%" border="1" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="5"><h3>Page heading</h3></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- MENU TD'S -->
|
||||
<td width="20%">
|
||||
<!-- You need all this START --- ITEM 0 -->
|
||||
<ilayer id="layerMenu0"><div id="divMenu0">
|
||||
<img src="cm_fill.gif" width="6" height="25" alt="" border="0">
|
||||
</div></ilayer>
|
||||
<!-- END -->
|
||||
</td>
|
||||
<td width="20%">
|
||||
<!-- You need all this START --- ITEM 1 -->
|
||||
<ilayer id="layerMenu1"><div id="divMenu1">
|
||||
<img src="cm_fill.gif" width="6" height="25" alt="" border="0">
|
||||
</div></ilayer>
|
||||
<!-- END -->
|
||||
</td>
|
||||
<td width="20%">
|
||||
<!-- You need all this START --- ITEM 2 -->
|
||||
<ilayer id="layerMenu2"><div id="divMenu2">
|
||||
<img src="cm_fill.gif" width="6" height="25" alt="" border="0">
|
||||
</div></ilayer>
|
||||
<!-- END -->
|
||||
</td>
|
||||
<td width="20%">
|
||||
<!-- You need all this START --- ITEM 3 -->
|
||||
<ilayer id="layerMenu3"><div id="divMenu3">
|
||||
<img src="cm_fill.gif" width="6" height="25" alt="" border="0">
|
||||
</div></ilayer>
|
||||
<!-- END -->
|
||||
</td>
|
||||
<td width="20%">
|
||||
<!-- You need all this START --- ITEM 4 -->
|
||||
<ilayer id="layerMenu4"><div id="divMenu4">
|
||||
<img src="cm_fill.gif" width="6" height="25" alt="" border="0">
|
||||
</div></ilayer>
|
||||
<!-- END -->
|
||||
</td>
|
||||
</tr>
|
||||
<td valign="top" colspan="5">
|
||||
This one is more complicated then the previous because it tries to place
|
||||
all the top items in different TD's.
|
||||
<br>
|
||||
We use a fill image inside the TD's to force the size of the TD to the size of the menu.
|
||||
Then we try to find the position of the div/layer surrounding the layer and
|
||||
then places the menu where that layer/div is. We place a fill image inside
|
||||
the TD to force the height of the items to the same as the height of the menuitems.
|
||||
<br>
|
||||
<br>
|
||||
For this to work the menucode have to be placed AFTER the table. Which again means that
|
||||
it's VERY important that the code inside the table is correct (correctly nested tags, close all P tags and so on), if
|
||||
not Netscape 4 WILL break.
|
||||
<br>
|
||||
<br>
|
||||
We set the width of the TD's and the top items to 20%. This technique can also be used to
|
||||
place menus totally different places on the page.
|
||||
<br>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=0
|
||||
//Using the cm_page object to place the menu ----
|
||||
oCMenu.fromLeft=0
|
||||
oCMenu.fromTop=0
|
||||
oCMenu.rows=1
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/"
|
||||
oCMenu.onlineRoot="/coolmenus/"
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=0
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width="19%"
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=1
|
||||
oCMenu.level[0].borderY=1
|
||||
oCMenu.level[0].borderClass="clLevel0border"
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=0
|
||||
oCMenu.level[0].arrow=0
|
||||
oCMenu.level[0].arrowWidth=0
|
||||
oCMenu.level[0].arrowHeight=0
|
||||
oCMenu.level[0].align="bottom"
|
||||
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','',' News','example2.html','')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
|
||||
|
||||
oCMenu.makeMenu('top4','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub40','top4','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub41','top4','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
//Extra code to find position:
|
||||
function findPos(num){
|
||||
//alert(num)
|
||||
if(bw.ns4){ //Netscape 4
|
||||
x = document.layers["layerMenu"+num].pageX
|
||||
y = document.layers["layerMenu"+num].pageY
|
||||
}else{ //other browsers
|
||||
x=0; y=0; var el,temp
|
||||
el = bw.ie4?document.all["divMenu"+num]:document.getElementById("divMenu"+num);
|
||||
if(el.offsetParent){
|
||||
temp = el
|
||||
while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
|
||||
temp=temp.offsetParent;
|
||||
x+=temp.offsetLeft
|
||||
y+=temp.offsetTop;
|
||||
}
|
||||
}
|
||||
x+=el.offsetLeft
|
||||
y+=el.offsetTop
|
||||
}
|
||||
//Returning the x and y as an array
|
||||
return [x,y]
|
||||
}
|
||||
function placeElements(){
|
||||
//Changing the position of ALL top items:
|
||||
pos = findPos(0)
|
||||
oCMenu.m["top0"].b.moveIt(pos[0],pos[1])
|
||||
pos = findPos(1)
|
||||
oCMenu.m["top1"].b.moveIt(pos[0],pos[1])
|
||||
pos = findPos(2)
|
||||
oCMenu.m["top2"].b.moveIt(pos[0],pos[1])
|
||||
pos = findPos(3)
|
||||
oCMenu.m["top3"].b.moveIt(pos[0],pos[1])
|
||||
pos = findPos(4)
|
||||
oCMenu.m["top4"].b.moveIt(pos[0],pos[1])
|
||||
|
||||
//Setting the fromtop value
|
||||
oCMenu.fromTop = pos[1]
|
||||
}
|
||||
placeElements()
|
||||
//Setting it to re place the elements after resize - the resize is not perfect though..
|
||||
oCMenu.onafterresize="placeElements()"
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,272 +0,0 @@
|
|||
<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%; background-color:red; 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 1 ################################# */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.clBar{position:absolute; width:10; height:10; background-color:#FF9900; layer-background-color:#FF9900; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.clLevel0,.clLevel0over{position:absolute; padding:1px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold}
|
||||
.clLevel0{color:#336699;}
|
||||
.clLevel0over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
|
||||
/*Styles for level 1*/
|
||||
.clLevel1, .clLevel1over{position:absolute; width:180; padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold}
|
||||
.clLevel1{background-color:#FF9900; layer-background-color:#FF9900; color:#336699;}
|
||||
.clLevel1over{background-color:#336699; layer-background-color:#336699; color:#FF9900; cursor:pointer; cursor:hand; }
|
||||
.clLevel1border{position:absolute; visibility:hidden; background-color:#006699; layer-background-color:#006699}
|
||||
|
||||
/* ######################################### MENU NUMBER 2 ################################# */
|
||||
|
||||
/*Style for the background-bar*/
|
||||
.cl2Bar{position:absolute; width:10; height:10; background-color:Navy; layer-background-color:Navy; visibility:hidden}
|
||||
|
||||
/*Styles for level 0*/
|
||||
.cl2Level0,.cl2Level0over{position:absolute; padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; 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:tahoma, arial,helvetica; font-size:11px; 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=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
/******************* MENU NUMBER 1 **********************************/
|
||||
|
||||
/***
|
||||
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
|
||||
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
|
||||
|
||||
//Menu properties
|
||||
oCMenu.pxBetween=30
|
||||
oCMenu.fromLeft=10
|
||||
oCMenu.fromTop=30
|
||||
oCMenu.rows=0
|
||||
oCMenu.menuPlacement=0
|
||||
|
||||
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu.onlineRoot=""
|
||||
oCMenu.resizeCheck=1
|
||||
oCMenu.wait=1000
|
||||
oCMenu.fillImg="cm_fill.gif"
|
||||
oCMenu.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu.useBar=1
|
||||
oCMenu.barWidth="menu"
|
||||
oCMenu.barHeight="menu"
|
||||
oCMenu.barClass="clBar"
|
||||
oCMenu.barX="menu"
|
||||
oCMenu.barY="menu"
|
||||
oCMenu.barBorderX=0
|
||||
oCMenu.barBorderY=0
|
||||
oCMenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
oCMenu.level[0].width=120
|
||||
oCMenu.level[0].height=25
|
||||
oCMenu.level[0].regClass="clLevel0"
|
||||
oCMenu.level[0].overClass="clLevel0over"
|
||||
oCMenu.level[0].borderX=0
|
||||
oCMenu.level[0].borderY=0
|
||||
oCMenu.level[0].borderClass=0
|
||||
oCMenu.level[0].offsetX=0
|
||||
oCMenu.level[0].offsetY=0
|
||||
oCMenu.level[0].rows=1
|
||||
oCMenu.level[0].align="right"
|
||||
|
||||
|
||||
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
|
||||
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
oCMenu.level[1].width=oCMenu.level[0].width-2
|
||||
oCMenu.level[1].height=22
|
||||
oCMenu.level[1].regClass="clLevel1"
|
||||
oCMenu.level[1].overClass="clLevel1over"
|
||||
oCMenu.level[1].style=""
|
||||
oCMenu.level[1].align="right"
|
||||
oCMenu.level[1].offsetX=0
|
||||
oCMenu.level[1].offsetY=0
|
||||
oCMenu.level[1].borderClass="clLevel1border"
|
||||
oCMenu.level[1].borderX=1
|
||||
oCMenu.level[1].borderY=1
|
||||
oCMenu.level[1].rows=0
|
||||
oCMenu.level[1].align="bottom"
|
||||
|
||||
/******************************************
|
||||
Menu item creation:
|
||||
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
|
||||
*************************************/
|
||||
oCMenu.makeMenu('top0','','<b> News</b>','/news/index.asp')
|
||||
oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')
|
||||
oCMenu.makeMenu('sub001','sub00','- New DHTML API released','','',180,0)
|
||||
oCMenu.makeMenu('sub002','sub00','- Explorer 7 is out','','',180,0)
|
||||
oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',180,0)
|
||||
oCMenu.makeMenu('sub01','top0','News archive','/news/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top1','',' Scripts','/scripts/index.asp')
|
||||
oCMenu.makeMenu('sub10','top1','New scripts','/scripts/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub11','top1','All scripts','/scripts/index.asp?show=all')
|
||||
oCMenu.makeMenu('sub12','top1','Popular scripts','/scripts/index.asp?show=pop')
|
||||
|
||||
oCMenu.makeMenu('top2','',' Articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub21','top2','Tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub210','sub21','New tutorials','/tutorials/index.asp')
|
||||
oCMenu.makeMenu('sub211','sub21','Tutorials archive','/tutorials/archive.asp')
|
||||
oCMenu.makeMenu('sub22','top2','Other articles','/articles/index.asp')
|
||||
oCMenu.makeMenu('sub220','sub22','New articles','/articles/index.asp?show=new')
|
||||
oCMenu.makeMenu('sub221','sub22','Article archive','/articles/archive.asp')
|
||||
|
||||
oCMenu.makeMenu('top3','',' Forums','/forums/')
|
||||
oCMenu.makeMenu('sub30','top3','General','/forums/forum.asp?FORUM_ID=6&CAT_ID=1&Forum_Title=General+DHTML+issues')
|
||||
oCMenu.makeMenu('sub31','top3','Scripts','/forums/forum.asp?FORUM_ID=4&CAT_ID=1&Forum_Title=DHTML+Scripts')
|
||||
oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.asp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
|
||||
oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
|
||||
oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/forum.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
|
||||
oCMenu.makeMenu('sub35','top3','Cool sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+sites')
|
||||
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu.construct()
|
||||
|
||||
|
||||
|
||||
/******************* MENU NUMBER 2 **********************************/
|
||||
|
||||
|
||||
|
||||
/***
|
||||
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=30
|
||||
oCMenu2.fromLeft=20
|
||||
oCMenu2.fromTop=0
|
||||
oCMenu2.rows=1
|
||||
oCMenu2.menuPlacement="center"
|
||||
|
||||
//Add resize to resize the first one also----
|
||||
oCMenu2.onresize="oCMenu.construct(1)"
|
||||
|
||||
oCMenu2.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
|
||||
oCMenu2.onlineRoot=""
|
||||
oCMenu2.resizeCheck=1
|
||||
oCMenu2.wait=1000
|
||||
oCMenu2.fillImg="cm_fill.gif"
|
||||
oCMenu2.zIndex=0
|
||||
|
||||
//Background bar properties
|
||||
oCMenu2.useBar=1
|
||||
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=110
|
||||
oCMenu2.level[0].height=25
|
||||
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=22
|
||||
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','',' News','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','',' Scripts','/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','',' Articles','/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')
|
||||
|
||||
//Leave this line - it constructs the menu
|
||||
oCMenu2.construct()
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||