标题:关于下拉菜单
只看楼主
yyf62
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-3-12
 问题点数:0 回复次数:0 
关于下拉菜单

下面这段代码是一个头文件,怎样嵌入主文件。相当于导航条
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<!-- saved from url=(0031)http://www.doteck.com ;-->
<HTML><HEAD><TITLE>doteck</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META
content=" At Ciplex we believe that a quality product is derived through Los Angeles professional design web, the imagination of the creative, and the expertise of the development team"
name=description>
<META
content="Web Site Design Los Angeles, Web Design Lgnos Angeles, Los Angeles Web Site Design, Los Angeles Web Design, Web Site Design Los Angeles, Website Design Los Angeles, Los Angeles Website Design, Web Design In Los Angeles, Web Design Company Los Angeles, Ecommerce Web Design Los Angeles, Ecommerce Web Site Design Los Angeles, Los Angeles Professional Web Design"
name=keywords><LINK href="main.css" type=text/css rel=stylesheet><!-- these two are required for transmenus to function --><LINK
href="menu.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="transmenu.js"
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
//<!init menu
function init() {

if (TransMenu.isSupported()) {
TransMenu.initialize();

document.getElementById("mtm_home").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
document.getElementById("mtm_home").onmouseout = function() { this.className = ""; }

menu2.onactivate = function() { document.getElementById("mtm_company").className = "hover"; };
menu2.ondeactivate = function() { document.getElementById("mtm_company").className = ""; };

menu3.onactivate = function() { document.getElementById("mtm_services").className = "hover"; };
menu3.ondeactivate = function() { document.getElementById("mtm_services").className = ""; };

menu4.onactivate = function() { document.getElementById("mtm_our_work").className = "hover"; };
menu4.ondeactivate = function() { document.getElementById("mtm_our_work").className = ""; };

menu5.onactivate = function() { document.getElementById("mtm_website_success_tools").className = "hover"; };
menu5.ondeactivate = function() { document.getElementById("mtm_website_success_tools").className = ""; };

menu6.onactivate = function() { document.getElementById("mtm_contact_us").className = "hover"; };
menu6.ondeactivate = function() { document.getElementById("mtm_contact_us").className = ""; };


}
}
//>
</SCRIPT>

<META content="MSHTML 6.00.2900.3020" name=GENERATOR><style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
body,td,th {
font-family: Tahoma, Arial, Helvetica, sans-serif;
}
#Layer1 {
position:absolute;
width:355px;
height:33px;
z-index:1;
top: 72px;
visibility: visible;
}
-->
</style></HEAD>
<BODY onload=init()>
<DIV id=main align=center>
<DIV id=top_icons>
<table width="100%" border="0">
<tr>
<td><img src="file:///E|/doteck.com/images/logo-s-s.gif" width="413" height="66"><img src="file:///E|/doteck.com/images/images/afterlogo_01.gif" width="179" height="66"><img src="file:///E|/doteck.com/images/images/afterlogo_02.gif" width="169" height="66"><img src="file:///E|/doteck.com/images/images/afterlogo_03.gif" width="202" height="66"></td>
</tr>
</table>
<div id="Layer1"><strong><font color="#ff3300">用户服务热线(hotline): 010-62120151 Mobile:13910290608 MSN:freedom_941@hotmail.com </font></strong></div>
</DIV>
<DIV id=topmenu>
<DIV id=mtm_menu><A> </A> <A id=mtm_contact_us href="#">English</A> <A id=mtm_website_success_tools href="http://www.doteck.com/info/contact.asp";>帮助</A> <A id=mtm_our_work href="http://www.doteck.com/info/contact.asp";>联系我们</A> <A id=mtm_services href="http://www.doteck.com/info/zixun.asp";>技术中心</A> <A id=mtm_company href="#">产品</A> <A id=mtm_home href="http://www.doteck.com";>首页</A></DIV>
<SCRIPT language=javascript type=text/javascript>


if (TransMenu.isSupported()) {
var ms = new TransMenuSet(TransMenu.direction.down, -13, 0, TransMenu.reference.bottomLeft);



var menu2 = ms.addMenu(document.getElementById("mtm_company"));

menu2.addItem("美国 BCI系列", "http://www.doteck.com/item/bci.asp";)

menu2.addItem(" Doteck系列 ", "http://www.doteck.com/item/doteck.asp";);



var menu6 = ms.addMenu(document.getElementById("mtm_contact_us"));

menu6.addItem("Doteck Series", "http://www.doteck.com/en/doteck.asp";);

menu6.addItem(" BCI Series", "http://www.doteck.com/en/bci.asp";);



TransMenu.renderAll();

}


</SCRIPT>
</DIV>
<DIV id=cnt_area>
<DIV class=float_close> </DIV></DIV>
</DIV>
<SCRIPT src="urchin.js" type=text/javascript>
</SCRIPT>

<SCRIPT type=text/javascript>
_uacct = "UA-317480-1";
urchinTracker();
</SCRIPT>
</BODY></HTML>


一般我是用<!--#include virtual="/include/top.html"-->来表示。以前的top代码为
<link href="/images/g4dev.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0921164742_0) return;
window.mm_menu_0921164742_0 = new Menu("root",116,19,"",13,"#0066FF","#FFFFFF","#FFCC33","#9595FF","center","middle",3,0,450,-5,7,true,false,true,0,true,true);
mm_menu_0921164742_0.addMenuItem("美国BCI系列","window.open('http://www.doteck.com/item/bci.asp&#39;, '_blank');");
mm_menu_0921164742_0.addMenuItem("Doteck系列","window.open('http://www.doteck.com/item/doteck.asp&#39;, '_blank');");
mm_menu_0921164742_0.hideonMouseOut=true;
mm_menu_0921164742_0.bgColor='#555555';
mm_menu_0921164742_0.menuBorder=1;
mm_menu_0921164742_0.menuLiteBgColor='#FFFFFF';
mm_menu_0921164742_0.menuBorderBgColor='#777777';


window.mm_menu_0203113559_0 = new Menu("root",116,19,"黑体",13,"#0066FF","#FFFFFF","#FFCC33","#9595FF","center","middle",3,0,450,-5,7,true,false,true,0,true,true);
mm_menu_0203113559_0.addMenuItem("美国BCI系列","window.open('http://www.doteck.com/item/bci.asp&#39;, '_blank');");
mm_menu_0203113559_0.addMenuItem("Doteck系列","window.open('http://www.doteck.com/item/doteck.asp&#39;, '_blank');");
mm_menu_0203113559_0.fontWeight="bold";
mm_menu_0203113559_0.hideonMouseOut=true;
mm_menu_0203113559_0.bgColor='#555555';
mm_menu_0203113559_0.menuBorder=1;
mm_menu_0203113559_0.menuLiteBgColor='#FFFFFF';
mm_menu_0203113559_0.menuBorderBgColor='#777777';
window.mm_menu_0203114308_0 = new Menu("root",112,19,"黑体",13,"#0066FF","#FFFFFF","#FFCC33","#9595FF","center","middle",3,0,450,-5,7,true,false,true,0,true,true);
mm_menu_0203114308_0.addMenuItem("Doteck Series","window.open('http://www.doteck.com/en/doteck.asp&#39;, '_blank');");
mm_menu_0203114308_0.addMenuItem(" BCI Series","window.open('http://www.doteck.com/en/bci.asp&#39;, '_blank');");
mm_menu_0203114308_0.fontWeight="bold";
mm_menu_0203114308_0.hideonMouseOut=true;
mm_menu_0203114308_0.bgColor='#555555';
mm_menu_0203114308_0.menuBorder=1;
mm_menu_0203114308_0.menuLiteBgColor='#FFFFFF';
mm_menu_0203114308_0.menuBorderBgColor='#777777';

mm_menu_0203114308_0.writeMenus();
} // mmLoadMenus()
//-->
</script>
<script language="javascript" src="/include/mm_menu.js" type="text/javascript"></script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2" type="text/javascript">mmLoadMenus();</script>
<script language="javascript1.2">mmLoadMenus();</script>
<div class="popper" id="topdeck" onmouseover="this.style.visibility='visible'"
onmouseout="kill()" ;></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background=".../images/layout_back.gif">
<tbody>
<tr>
<td width="36%"><a
href="http://www.doteck.com/index.asp";><img src="/images/logo-s-s.gif" width="413" height="66" border="0" /></a></td>
<td><img src="/images/images/afterlogo_01.gif" width="179" height="66" /><img src="/images/images/afterlogo_02.gif" width="169" height="66" /><img src="/images/images/afterlogo_03.gif" width="202" height="66" /></td>
</tr>
<tr bgcolor="#ffcc33">
<td height="38" class="verdana12pt"> <strong><font color="#ff3300">用户服务热线(hotline): 010-62120151 Mobile:13910290608 MSN:freedom_941@hotmail.com </font></strong></td>
<td width="65%" align="right" class="verdana12pt"><img src="../images/top-4.gif" name="image1" width="802" height="35" border="0" usemap="#image1Map" id="image1" /></td>
</tr>
</tbody>
</table>
<map name="image1Map" id="image1Map">
<area shape="rect" coords="327,8,368,27" href="http://www.doteck.com/"; target="_blank" />
<area shape="rect" coords="388,8,427,27" onmouseover="MM_showMenu(window.mm_menu_0203113559_0,360,36,null,'image1')" onmouseout="MM_startTimeout();" />
<area shape="rect" coords="644,8,681,29" href="http://www.doteck.com/info/contact.asp"; target="_blank" />
<area shape="rect" coords="698,6,772,29" onmouseover="MM_showMenu(window.mm_menu_0203114308_0,690,36,null,'image1')" onmouseout="MM_startTimeout();" />
<area shape="rect" coords="543,7,618,28" href="http://www.doteck.com/info/contact.asp"; target="_blank" />
<area shape="rect" coords="450,7,525,28" href="http://www.doteck.com/info/tech.asp";
onmouseover="MM_showMenu(window.mm_menu_0128123124_0,686,36,null,'image1')" onmouseout="MM_startTimeout();" />
</map>
这一段可以嵌入,上面那段不行,请教一下为什么?


搜索更多相关主题的帖子: 菜单 
2007-03-12 14:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-123814-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.480658 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved