?? outlookleft.html.svn-base
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新聞菜單</title>
<style type="text/css">
.titleStyle{
background-color:#0E6AAF;color:#ffffff;border-top:1px solid #FFFFFF;font-size:9pt;cursor:hand;
}
.contentStyle{
background-color:#ffffff;color:#0E6AAF;font-size:9pt;
}
a{
color:blue;
}
body{
font-size:9pt;
}
</style>
</head>
<body>
<script language="JavaScript">
<!--
var layerTop=0; //菜單頂邊距
var layerLeft=5; //菜單左邊距
var layerWidth=140; //菜單總寬
var titleHeight=20; //標題欄高度
var contentHeight=550; //內容區高度
var stepNo=10; //移動步數,數值越大移動越慢
var itemNo=0;runtimes=0;
document.write('<span id=itemsLayer style="position:absolute;overflow:hidden;border:1px solid #008800;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('歡迎','<BR> 感謝使用Handson <br> 新聞發布系統!');
addItem('分類管理','<center><a href="item.html" target="mainFrame">添加欄目</a> <BR><BR><a href="item_manager.html" target="mainFrame">欄目管理</a> <BR><BR><a href="class.html" target="mainFrame">添加類別</a> <BR><BR><a href="class_manager.html" target="mainFrame">類別管理</a> <BR><BR></center>');
addItem('新聞管理','<center><a href="info_add.html" target="mainFrame">新 聞 發 布</a> <BR><BR><a href="info_manager.html" target="mainFrame">新 聞 管 理</a> <BR><BR></center>');
addItem('使用幫助','<center><a href="sys_help.html" target="mainFrame">查看幫助</a></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>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -