<html>
<head>
<META HTTP-EQUIV="luxiaoqing" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>仿QQ面板导航菜单</title>
<STYLE type=text/css>.titleStyle {
BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 9pt; CURSOR: hand; COLOR: #ffffff; BACKGROUND-COLOR: #856BF2
}
.contentStyle {
FONT-SIZE: 9pt; COLOR: blue; BACKGROUND-COLOR: #eeffee
}
A {
COLOR: blue
}
BODY {
FONT-SIZE: 9pt
}
</STYLE>
</head>
<BODY topmargin="0" leftmargin="0"><center>
<SCRIPT language=JavaScript>
<!--
var layerTop=20; //菜单顶边距
var layerLeft=30; //菜单左边距
var layerWidth=140; //菜单总宽
var titleHeight=20; //标题栏高度
var contentHeight=200; //内容区高度
var stepNo=10; //移动步数,数值越大移动越慢
var itemNo=0;runtimes=0;
document.write('<span id=itemsLayer style="position:absolute;overflow:hidden;border:1px solid #856BF2;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> 欢迎光临3W交互网!');
addItem('DHTML','<center><a href="#">动态网页</a> <BR><BR><a href="#">JavaScript</a> <BR><BR><a href="#">设计理念</a> <BR><BR><a href="#">更多</a></center>');
addItem('技术论坛','<center><a href="#">ASP技术</a> <BR><BR><a href="#">PHP技术</a> <BR><BR><a href="#">CGI技术</a> <BR><BR><a href="#">更多..</a></center>');
addItem('Flash','<center><a href="#">基础教程</a> <BR><BR><a href="#">技巧运用</a> <BR><BR><a href="#">实例剖析</a> <BR><BR><a href="#">更多..</a></center>');
addItem('下载专区','<center><a href="#">ASP下载</a> <BR><BR><a href="#">PHP下载</a> <BR><BR><a href="#">CGI下载</a> <BR><BR><a href="#">应用软件下载</a> <BR><BR><a href="#">更多..</a></center>');
addItem('精彩贴图','<center><a href="#">幽默图片</a> <BR><BR><a href="#">人体彩绘</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>