- 论坛徽章:
- 0
|
我用如下代码在jsp里创建菜单
MTMDefaultTarget = "panel";
/******************************************************************************
* User-configurable list of icons. *
******************************************************************************/
var MTMIconList = null;
MTMIconList = new IconList();
MTMIconList.addIcon(new MTMIcon("../image/button_toolbar_stop.png", "http://", "pre"));
MTMIconList.addIcon(new MTMIcon("button_toolbar_stop_click.png", ".pdf", "post"));
/******************************************************************************
* User-configurable menu. *
******************************************************************************/
// Main menu.
var menu = null;
menu = new MTMenu();
menu.MTMAddItem(new MTMenuItem("Special Values","","_top"));
menu.MTMAddItem(new MTMenuItem("Pre-1900's"));
menu.MTMAddItem(new MTMenuItem("1900-1929"));
menu.MTMAddItem(new MTMenuItem("1930-1949"));
menu.MTMAddItem(new MTMenuItem("1950-1979"));
menu.MTMAddItem(new MTMenuItem("Modern/Novelty/Reproduction"));
menu.MTMAddItem(new MTMenuItem("Foreign"));
menu.MTMAddItem(new MTMenuItem("Unique/Specialty"));
menu.MTMAddItem(new MTMenuItem("Other Antiques/Collectibles"));
var specials = null;
specials = new MTMenu();
specials.MTMAddItem(new MTMenuItem("Page 1", "special1.html","_top"));
specials.MTMAddItem(new MTMenuItem("Page 2", "special2.html","content"));
menu.items[0].MTMakeSubmenu(specials,false);
var specials1 = null;
specials1 = new MTMenu();
specials1.MTMAddItem(new MTMenuItem("Page 1", "special1.html","content"));
specials1.MTMAddItem(new MTMenuItem("Page 2", "special2.html","content"));
specials.items[0].MTMakeSubmenu(specials1,false);
</script>
</head>
<body onload="MTMStartMenu(true)" bgcolor="#c2e4ff" text="#ffffcc" link="yellow" vlink="lime" alink="red">
</body>
</html>
但是在显示菜单中,在上层父菜单前有两个'+'
+---+ Special Values
|
|---+ Page1
请问如何去掉 "Special Values"这个父菜单里最前面多出来的'+' ?????? |
|