Habe versucht ein menü zu installieren, leider bekomme ich bei der Ausgabe im Internet Explorer 6 in der Statusleiste immer die Fehlermeldung:
Zeile: 2
Zeichen: 1
Fehler: Syntaxfehler
Woran kann das liegen? Habe mir den html code jetzt mehrmals durchgesehen und entdecke keinen fehler...
Das menü selber funktioniert ja auch...
-----
<html>
<head>
<title>Untitled Document</title>
<link rel="STYLESHEET" type="text/css" href="coolmenus.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/coolmen...rence.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 object creation
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument: menuname
//Menu properties
oCMenu2.pxBetween=30
oCMenu2.fromLeft=100
oCMenu2.fromTop=50
oCMenu2.rows=1
oCMenu2.menuPlacement="center"
oCMenu2.offlineRoot=""
oCMenu2.onlineRoot="http://www.xtreme.de"
oCMenu2.resizeCheck=1
oCMenu2.wait=1000
oCMenu2.fillImg="cm_fill.gif"
oCMenu2.zIndex=0
//Background bar properties
oCMenu2.useBar=0
oCMenu2.barWidth="80%"
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','',' Kontakt','/articles/index.asp')
oCMenu2.makeMenu('sub21','top2','Anschrift','/kontakt/kontakt.php')
//Leave this line - it constructs the menu
oCMenu2.construct()
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="28"> </td>
</tr>
<tr>
<td colspan="3" height="40" bgcolor="#0000CC"> </td>
</tr>
<tr>
<td width="200"> </td>
<td> </td>
<td width="200"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</body>
</html>
Zeile: 2
Zeichen: 1
Fehler: Syntaxfehler
Woran kann das liegen? Habe mir den html code jetzt mehrmals durchgesehen und entdecke keinen fehler...
Das menü selber funktioniert ja auch...
-----
<html>
<head>
<title>Untitled Document</title>
<link rel="STYLESHEET" type="text/css" href="coolmenus.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/coolmen...rence.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 object creation
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument: menuname
//Menu properties
oCMenu2.pxBetween=30
oCMenu2.fromLeft=100
oCMenu2.fromTop=50
oCMenu2.rows=1
oCMenu2.menuPlacement="center"
oCMenu2.offlineRoot=""
oCMenu2.onlineRoot="http://www.xtreme.de"
oCMenu2.resizeCheck=1
oCMenu2.wait=1000
oCMenu2.fillImg="cm_fill.gif"
oCMenu2.zIndex=0
//Background bar properties
oCMenu2.useBar=0
oCMenu2.barWidth="80%"
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','',' Kontakt','/articles/index.asp')
oCMenu2.makeMenu('sub21','top2','Anschrift','/kontakt/kontakt.php')
//Leave this line - it constructs the menu
oCMenu2.construct()
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="28"> </td>
</tr>
<tr>
<td colspan="3" height="40" bgcolor="#0000CC"> </td>
</tr>
<tr>
<td width="200"> </td>
<td> </td>
<td width="200"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
</body>
</html>
Kommentar