📄 menu.asp
字号:
<%if session("admin")="" then
response.Write "对不起,请先登录!"
response.End
end if
%>
<style type="text/css">
.titleStyle{
background-color:#6B8FC8;color:#000000;border-top:1px solid #FFFFFF;font-size:9pt;cursor:hand;
}
.contentStyle{
background-color:#E8F1FF;color:blue;font-size:9pt;
}
a{
color:black;
}
td{
FONT-SIZE: 12px;COLOR: #000000; FONT-FAMILY: verdana; line-height:14pt
}
A:link,A:active,A:visited{TEXT-DECORATION:none ;Color:#000000}
A:hover{TEXT-DECORATION: underline;Color:#FF0000}
</style>
<script language="JavaScript">
<!--
var layerTop=20; //菜单顶边距
var layerLeft=30; //菜单左边距
var layerWidth=100; //菜单总宽
var titleHeight=20; //标题栏高度
var contentHeight=100; //内容区高度
var stepNo=10; //移动步数,数值越大移动越慢
var itemNo=0;runtimes=0;
document.write('<span id=itemsLayer style="position:absolute;overflow:hidden;border:1px solid #6B8FC8;left:'+layerLeft+';top:'+layerTop+';width:'+layerWidth+';">');
function addItem(itemTitle,itemContent){
itemHTML='<div id=item'+itemNo+' itemIndex='+itemNo+' style="position:relative;left:0;top:'+(-contentHeight*itemNo)+';width:'+layerWidth+';"><table width=100% cellspacing="0" cellpadding="0">'+
'<tr><td height='+titleHeight+' onclick=changeItem('+itemNo+') class="titleStyle" align=center>'+itemTitle+'</td></tr>'+
'<tr><td height='+contentHeight+' class="contentStyle">'+itemContent+'</td></tr></table></div>';
document.write(itemHTML);
itemNo++;
}
//添加菜单标题和内容,可任意多项,注意格式:
addItem('管理','<div align=center><a href=logout.asp target=_top><font color=red>注销登录</font></a><br><a href=renpassword.asp target=right>修改登录密码</a></div>');
addItem('图书管理','<center><a href=addbook.asp target=right>添加新图书</a> <BR><a href=managebook.asp target=right>查看与修改</a> <%if session("flag")<2 then%><BR><a href=managepinglun.asp?action=no target=right>管理图书评论</a> <BR><a href=editdingdan.asp target=right>管理图书订单</a><%end if%></center>');
<%if session("flag")<2 then%>addItem('用户管理','<center><a href=manageuser.asp target=right>管理网站用户</a> <BR><a href=manageadmin.asp target=right>管理后台用户</a><br><a href=links.asp target=right>管理合作伙伴</a></center>');
addItem('分类管理','<center><a href=anclass.asp target=right>图书大类管理</a> <BR><a href=nclass.asp target=right>图书小类管理</a> <BR><a href=moveclass.asp target=right>图书类别转移</a></center>');
addItem('新闻管理','<center><a href=addnews.asp target=right>添加首页新闻</a><br><a href=editnews.asp target=right>新闻修改删除</a></center>');
addItem('系统信息设置','<center><a href=webconfig.asp target=right>网站信息设置</a><br><a href=guanggao.asp target=right>网站广告设置</a><br><a href=gonggao.asp target=right>其他信息设置</a></center>');<%end if%>
document.write('</span>')
document.all.itemsLayer.style.height=itemNo*titleHeight+contentHeight;
toItemIndex=itemNo-1;onItemIndex=itemNo-1;
function changeItem(clickItemIndex){
toItemIndex=clickItemIndex;
if(toItemIndex-onItemIndex>0) moveUp(); else moveDown();
runtimes++;
if(runtimes>=stepNo){
onItemIndex=toItemIndex;
runtimes=0;}
else
setTimeout("changeItem(toItemIndex)",10);
}
function moveUp(){
for(i=onItemIndex+1;i<=toItemIndex;i++)
eval('document.all.item'+i+'.style.top=parseInt(document.all.item'+i+'.style.top)-contentHeight/stepNo;');
}
function moveDown(){
for(i=onItemIndex;i>toItemIndex;i--)
eval('document.all.item'+i+'.style.top=parseInt(document.all.item'+i+'.style.top)+contentHeight/stepNo;');
}
changeItem(0);
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -