| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1153 人关注过本帖
标题:下面是下拉菜单的代码,看不懂呀,这么多的代码用手写的 还是用dw生成?请行 ...
取消只看楼主 加入收藏
sylknb
Rank: 4
等 级:贵宾
威 望:14
帖 子:1547
专家分:184
注 册:2006-6-3
结帖率:79.38%
收藏
 问题点数:0 回复次数:1 
下面是下拉菜单的代码,看不懂呀,这么多的代码用手写的 还是用dw生成?请行家指教。
var bBrowserOK; bBrowserOK = 0;if(parseFloat(navigator.appVersion)>=4) if(navigator.appName == 'Microsoft Internet Explorer') bBrowserOK = 1;document.write('<STYLE>');document.write('a.MN18103783 {text-decoration:none; color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ');
document.write('a.MN18103783:hover {text-decoration:none; color:#FFFFFF; }');
document.write('a.SMN18103783 {text-decoration:none; color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ');
document.write('a.SMN18103783:hover {text-decoration:none; color:#FFFFFF; }');
document.write('table.MT18103783 {background:#000000; border:1 solid #808080; }');
document.write('td.MTD18103783 {padding-left:4; padding-right:4; background:#21415A; border:0 solid #000000; }');
document.write('.MTI18103783 {color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}');
document.write('.MSI18103783 {color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}');
document.write('</STYLE>');
function OpenMenu(MenuId){    MenuId.style.visibility = 'visible'; }
function CloseMenu(MenuId){    MenuId.style.visibility = 'hidden';}
function HLT18103783(TDId,AId){    TDId.style.background = '#606060';    if(AId) AId.style.color = '#FFFFFF';}
function UHLT18103783(TDId,AId){    TDId.style.background = '#21415A';    if(AId) AId.style.color = '#FFFFFF';}
function THLT18103783(TDId,AId){    TDId.style.background = '#606060';    if(AId) AId.style.color = '#FFFFFF';}
function TUHLT18103783(TDId,AId){    TDId.style.background = '#21415A';    if(AId) AId.style.color = '#FFFFFF';}
function WSBH18103783(MenuId){

document.write('<span id=' + MenuId + ' STYLE="position:absolute; visibility:hidden; zorder:1; ">');
document.write('&nbsp;<br>');
document.write('<table class="MT18103783" cellspacing=0 cellpadding=2 onMouseOut="CloseMenu(' + MenuId + ');" onMouseOver="OpenMenu(' + MenuId + ');">');}
function WSIH18103783(ItemID,ItemName,ItemURL,MenuID,ItemTitle,ItemTarget){
document.write('<tr><td id="X' + ItemID + '" class="MTD18103783" onMouseOver="HLT18103783(X' + ItemID + ',' + ItemID + ');" onMouseOut="UHLT18103783(X' + ItemID + ',' + ItemID + ');">');
document.write('<span NOWRAP><a href="' + ItemURL + '" title="' + ItemTitle + '" class="SMN18103783" target="' + ItemTarget + '" id="' + ItemID + '">' + ItemName + '</a></span></td></tr>');}
function WSFH18103783(ItemID,ItemFree){
document.write('<tr><td id="X' + ItemID + '" class="MTD18103783" onMouseOver="HLT18103783(X' + ItemID + ',' + ItemID + ');" onMouseOut="UHLT18103783(X' + ItemID + ',' + ItemID + ');">');
document.write('<span id="' + ItemID + '" class="MSI18103783" >' + ItemFree + '</span></td></tr>');}
function CloseSubBoxH(){document.write('</table></span>');}
function WTIH18103783(MenuID,MenuName,MenuURL,MenuTitle,MenuTarget){
document.write('<span STYLE="position:relative;" class="MTI18103783" onMouseOver="OpenMenu(' + MenuID + ');" onMouseOut="CloseMenu(' + MenuID + ');"><a href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN18103783">&nbsp;' + MenuName + '</a></span>');}
function WTFH18103783(MenuID,MenuFree){
document.write('<span STYLE="position:relative;" class="MTI18103783" onMouseOver="OpenMenu(' + MenuID + ');" onMouseOut="CloseMenu(' + MenuID + ');">&nbsp;' + MenuFree + '&nbsp;</span>');}
function WTHH18103783(MenuName,MenuURL,MenuTitle,MenuTarget){
document.write('<span STYLE="position:relative;" class="MTI18103783" ><a href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN18103783">&nbsp;' + MenuName + '</a></span>');}
function WTHFH18103783(MenuName,MenuFree){
document.write('<span STYLE="position:relative;" class="MTI18103783" >&nbsp;' + MenuFree + '</span>');}
document.write('<TABLE CELLSPACING=0 CELLPADDING=2 WIDTH="100%" BGCOLOR=#21415A STYLE="border:1 solid #808080; "><TR VALIGN=MIDDLE><TD ALIGN=LEFT>');
document.write('<DIV NOWRAP STYLE="visibility:visible; background-color:#21415A; font-weight: 700; font-family: Verdana; font-size:12px; ">');
if(bBrowserOK==1) {
WSBH18103783('MI18106600');
WSIH18103783('MI18125369','图书入库','tushuruku.asp','MI18106600','','_self');
if(MI18125369) MI18125369.style.color = '#FFFFFF';WSIH18103783('MI18106471','图书信息修改','tushumanage.asp','MI18106600','','_self');
if(MI18106471) MI18106471.style.color = '#FFFFFF';WSIH18103783('MI18098733','图书注销','tushuzhuxiao.asp','MI18106600','','_self');
if(MI18098733) MI18098733.style.color = '#FFFFFF';WSIH18103783('MI18118619','图书遗失处理','','MI18106600','','_self');
if(MI18118619) MI18118619.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18106600','图书管理','','','_self');
}
else
WTHH18103783('图书管理','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18114049');
WSIH18103783('MI18101610','图书借阅','','MI18114049','','_self');
if(MI18101610) MI18101610.style.color = '#FFFFFF';WSIH18103783('MI18107219','图书归还','','MI18114049','','_self');
if(MI18107219) MI18107219.style.color = '#FFFFFF';WSIH18103783('MI18102302','图书续借','','MI18114049','','_self');
if(MI18102302) MI18102302.style.color = '#FFFFFF';WSIH18103783('MI18113879','图书预约','','MI18114049','','_self');
if(MI18113879) MI18113879.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18114049','流通管理','','','_self');
}
else
WTHH18103783('流通管理','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18101580');
WSIH18103783('MI18110272','图书信息查询','tushucx.asp','MI18101580','','_self');
if(MI18110272) MI18110272.style.color = '#FFFFFF';WSIH18103783('MI18129375','读者查询','','MI18101580','','_self');
if(MI18129375) MI18129375.style.color = '#FFFFFF';WSIH18103783('MI18099903','借阅情况查询','','MI18101580','','_self');
if(MI18099903) MI18099903.style.color = '#FFFFFF';WSIH18103783('MI18112442','超期罚款图书查询','','MI18101580','','_self');
if(MI18112442) MI18112442.style.color = '#FFFFFF';WSIH18103783('MI18112790','图书预约查询','','MI18101580','','_self');
if(MI18112790) MI18112790.style.color = '#FFFFFF';WSIH18103783('MI18111075','图书遗失查询','','MI18101580','','_self');
if(MI18111075) MI18111075.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18101580','图书查询','','','_self');
}
else
WTHH18103783('图书查询','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18128589');
WSIH18103783('MI18118482','图书状态统计','','MI18128589','','_self');
if(MI18118482) MI18118482.style.color = '#FFFFFF';WSIH18103783('MI18122857','罚款统计','','MI18128589','','_self');
if(MI18122857) MI18122857.style.color = '#FFFFFF';WSIH18103783('MI18107695','借阅统计','','MI18128589','','_self');
if(MI18107695) MI18107695.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18128589','图书统计','','','_self');
}
else
WTHH18103783('图书统计','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18096975');
WSIH18103783('MI18123596','读者管理','','MI18096975','','_self');
if(MI18123596) MI18123596.style.color = '#FFFFFF';WSIH18103783('MI18100074','图书借阅管理人员管理','','MI18096975','','_self');
if(MI18100074) MI18100074.style.color = '#FFFFFF';WSIH18103783('MI18124094','图书信息管理人员管理','','MI18096975','','_self');
if(MI18124094) MI18124094.style.color = '#FFFFFF';WSIH18103783('MI18098664','系统管理人员管理','xtadminmanage.asp','MI18096975','','_self');
if(MI18098664) MI18098664.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18096975','用户管理','','','_self');
}
else
WTHH18103783('用户管理','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18097004');
WSIH18103783('MI18096777','罚款设定','','MI18097004','','_self');
if(MI18096777) MI18096777.style.color = '#FFFFFF';WSIH18103783('MI18121635','图书借阅时限设定','','MI18097004','','_self');
if(MI18121635) MI18121635.style.color = '#FFFFFF';WSIH18103783('MI18124982','图书类别设定','tushuleibie.asp','MI18097004','','_blank');
if(MI18124982) MI18124982.style.color = '#FFFFFF';WSIH18103783('MI18105646','图书借阅数量设定','','MI18097004','','_self');
if(MI18105646) MI18105646.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18097004','系统设置','','','_self');
}
else
WTHH18103783('系统设置','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18128160');
WSIH18103783('MI18131079','数据库整理','','MI18128160','','_self');
if(MI18131079) MI18131079.style.color = '#FFFFFF';WSIH18103783('MI18120520','数据库压缩','','MI18128160','','_self');
if(MI18120520) MI18120520.style.color = '#FFFFFF';WSIH18103783('MI18130963','数据库备份','','MI18128160','','_self');
if(MI18130963) MI18130963.style.color = '#FFFFFF';WSIH18103783('MI18124474','数据库还原','','MI18128160','','_self');
if(MI18124474) MI18124474.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18128160','数据库管理','','','_self');
}
else
WTHH18103783('数据库管理','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {
WSBH18103783('MI18132767');
WSIH18103783('MI18127513','帮助主题','','MI18132767','','_self');
if(MI18127513) MI18127513.style.color = '#FFFFFF';WSIH18103783('MI18105632','关于','','MI18132767','','_self');
if(MI18105632) MI18105632.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18103783('MI18132767','帮助','','','_self');
}
else
WTHH18103783('帮助','','','_self');
document.write('&nbsp;<font color=#FFFFFF>|</font>');
WTHH18103783('退出','loginout.asp','','_self');
document.write('</DIV></TD>');
document.write('</TR></TABLE>');
搜索更多相关主题的帖子: 代码 菜单 行家 指教 
2010-04-26 15:29
sylknb
Rank: 4
等 级:贵宾
威 望:14
帖 子:1547
专家分:184
注 册:2006-6-3
收藏
得分:0 
这种东西用手写太麻烦了。能否有其它办法呢?如DW或front page
2010-04-26 15:51
快速回复:下面是下拉菜单的代码,看不懂呀,这么多的代码用手写的 还是用dw生成 ...
数据加载中...
 
   



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

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