日期:2014-05-18  浏览次数:20519 次

哪位给发一个JS的导行菜单啊

谢啦

------解决方案--------------------
<HTML> <HEAD>
<META http-equiv=Content-Type content= "text/html; charset=gb2312 ">
<STYLE type=text/css>
.titleStyle { BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 9pt; CURSOR: hand; COLOR: #000000; BACKGROUND-COLOR: #6b8fc8 ; background-image: url(../admin/images/bg_3.gif) }
.contentStyle { FONT-SIZE: 9pt; COLOR: red; BACKGROUND-COLOR: #D6DBF7}
TD { FONT-SIZE: 12px; COLOR: #000000; LINE-HEIGHT: 16pt }
A:link { COLOR: #000000; TEXT-DECORATION: none }
A:active { COLOR: #000000; TEXT-DECORATION: none }
A:visited { COLOR: #000000; TEXT-DECORATION: none }
A:hover { COLOR: #ff0000; TEXT-DECORATION: underline }
</STYLE>
<%if request.cookies( "godbook ")( "shjianame ") <> " " then%>
<SCRIPT language=JavaScript>
<!--
var layerTop=15; //菜单顶边距
var layerLeft=20; //菜单左边距
var layerWidth=160; //菜单总宽
var titleHeight=26; //标题栏高度
var contentHeight=150; //内容区高度
var stepNo=10; //移动步数,数值越大移动越慢

var itemNo=0;runtimes=0;
document.write( ' <span id=itemsLayer style= "position:absolute;overflow:hidden;border:1px solid #183789;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( ' <b> <font color= "#ffffff "> <a href= "admin_index.asp " target=_top> <font color= "#ffffff "> 管理首页 </font> </a> | <a href= "logout.asp " target= "_top "> <font color= "#ffffff "> 退出 </font> </a> </font> </b> ', ' <DIV STYLE= "PADDING-LEFT:15px "> ☉ <a href= "admin_right.asp?action=modify " target= "right "> 管理我的商品 </a> | <a href= "admin_right.asp?action=addclass " target= "right "> 添加 </a> <BR> ☉ <a href= "admin_right.asp?action=glnews " target= "right "> 管理我的新闻 </a> | <a href= "admin_right.asp?action=addnews " target= "right "> 添加 </a> <BR> ☉ <a href= "admin_right.asp?action=fk " target= "right "> 查看我的留言 </a> <br> ☉ <a href= "admin_right.asp?action=mydindan " target= "right "> 管理我的订单 </a> <br> </DIV> ');
addItem( ' <b> <font color= "#ffffff "> 信息修改 </font> </b> ', ' <DIV STYLE= "PADDING-LEFT:15px "> ☉ <a href= "admin_right.asp?action=fkfs " target= "right "> 付款方式修改 </a> <BR> ☉ <a href= "admin_right.asp?action=ps " target= "right "> 配送说明修改 </a> <BR> ☉ <a href= "admin_right.asp?act