⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 123.asp

📁 标准的小型企业网站程序
💻 ASP
字号:


<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=120;    //菜单总宽
 var titleHeight=20;    //标题栏高度
 var contentHeight=120; //内容区高度
 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=addbk.asp target=right><font color=red>增加大类</font></a><br><a href=delbk.asp target=right><font color=red>删除大类</font></a><br><a href=modifybk.asp target=right>修改大类信息</a><br></div>');


 addItem('小类管理','<center><a href=addsk.asp target=right>增加删除小类</a> <BR><a href=modifysk.asp target=right>修改小类信息</a><BR></center>');

 addItem('具体产品管理','<center><a href=addpr.asp target=right>新增删除产品</a> <BR><a href=modifypr.asp target=right>修改产品信息</a> <BR></center>');
 
 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 + -