引用 | 编辑
USB
2005-09-03 20:59 |
楼主
▼ |
||||||||||||
x0
因为用flash做出来的下拉式选单,还不是很熟也不大会@@"今天无意中从朋友那边A到这个JAVA范例档 1.放在<head>与</head>之间 复制程式 <link href="../default.css" rel="stylesheet" type="text/css"> <script language="JScript"> var MediaList=new Array(); TitleArray0=["资源下载","资源上传","资源统计","资源检索","资源删除","资源信息修改","资源审核情况","资源更新信息"]; var EventArray0=["../01.htm","../02.htm","../03.htm","../04.htm","../05.htm"]; var TitleArray1=["知识点浏览","分类浏览"]; var EventArray1=["application/resvie/re_v_p_index.asp","application/resvie/re_v_i_index.asp"]; TitleArray2=["个人信息","修改个人信息","权限申请","用户组管理","设置用户组","修改用户组","修改用户权限","增加用户","用户统计"]; var EventArray2=["application/usermanage/index_u.htm","application/usermanage/index_m.htm","application/usermanage/index_a.htm","application/usermanage/index_r.htm"]; TitleArray3=["修改学科","学科列表","增加学科","删除学科",true,"增加资源类型","删除资源类型",true,"知识点列表","增加知识点","删除知识点","移动知识点","修改知识点"]; var EventArray3=["application/usermanage/index_u.htm","application/usermanage/index_m.htm","application/usermanage/index_a.htm","application/usermanage/index_r.htm"]; var TitleArray4=["增加收藏资源","删除收藏资源","移动收藏资源"]; function AstrNode(SIndex){var EventArray4=["application/usermanage/index_u.htm","application/usermanage/index_m.htm","application/usermanage/index_a.htm","application/usermanage/index_r.htm"]; var str=[]; var CW_Array=eval("TitleArray"+SIndex); var En_Array=eval("EventArray"+SIndex); for(var i=0;i<CW_Array.length;i++){ if(CW_Array[i]!=true){ str[i]="<tr><td style='height:20' onclick='top.mainFrame.location=\""+En_Array[i]+"\"'><a href='#'>"+CW_Array[i]+"</a></td></tr>"; } else{ str[i]="<tr><td style='font-size:1;background:#cccccc'></td></tr>"; } } return "<table class='trd' width=颼' border=Ɔ' cellspacing=Ɔ' cellpadding=Ɔ' style='font-size:9pt;border:1 solid #595432'>"+str.join("")+"</table>"; } function ShowMenu(SIndex){ var obj=event.srcElement; var New_CW=window.createPopup(); var CW_Body=New_CW.document.body; New_CW.document.createStyleSheet("default.css"); var CW_Array=eval("TitleArray"+SIndex); CW_Body.innerHTML=AstrNode(SIndex); New_CW.show(event.screenX-event.offsetX-2,event.screenY-event.offsetY+22,100,CW_Array.length*20+2+(SIndex==3?-38:0)); } function goUrl(Url){ parent.mainFrame.location=Url; } </script> <style type="text/css"> <!-- .tdcs { padding-bottom:2; color:#000000; } --> </style> 2.将下面的语法复制到<body>里复制程式 <body leftmargin="0" topmargin="0"><script type='text/javascript' src='/pop.js'></script> 3.将下面的语法复制到<body>两</body>里 复制程式 <div> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="c.gif" bgcolor="#FFFFFF" style="cursor:hand"> <tr> <td width="14" align="center" bgcolor="#FFFFFF"><img src="../l.gif" width="14" height="26"></td> <td width="80" align="center" onmouseover="this.style.color='#999999'" onmouseout="this.style.color=''" onclick="parent.location='main.asp'">首页</td> <td width="80" align="center" id="TitleBox" onmouseover="ShowMenu(0);this.style.color='#999999'" onmouseout="this.style.color=''" onclick="parent.location='unlogin.asp'">资源管理</td> <td width="80" align="center" id="TitleBox" onmouseover="ShowMenu(1);this.style.color='#999999'" onmouseout="this.style.color=''" onclick="goUrl('application/resmanage/index.htm')">资源浏览</td> <td width="80" align="center" id="TitleBox" onmouseover="ShowMenu(2);this.style.color='#999999'" onmouseout="this.style.color=''" onclick="goUrl('#')">用户管理</td> <td width="80" align="center" id="TitleBox" onmouseover="ShowMenu(3);this.style.color='#999999'" onmouseout="this.style.color=''" onclick="goUrl('#')">系统管理</td> <td width="80" align="center" id="TitleBox" onmouseover="ShowMenu(4);this.style.color='#999999'" onmouseout="this.style.color=''" onclick="goUrl('#')">我的最爱</td> <td width="80" align="center" onmouseover="this.style.color='#999999'" onmouseout="this.style.color=''" onclick="parent.location=༽.htm'">用户手册</td> <td width="80" align="center" onmouseover="this.style.color='#999999'" onmouseout="this.style.color=''" onclick="parent.mainFrame.location=༾.htm'">登出</td> <td width="80" align="center" onmouseover="this.style.color='#999999'" onmouseout="this.style.color=''" onclick="top.opener=null;top.close()">关闭视窗</td> <td> </td> <td width="12" align="right" bgcolor="#FFFFFF"><img src="../r.gif" width="12" height="26"></td> </tr> </table> </div> 如果懒的话直接下载附件的档案去修改比较快
x2
|
引用 | 编辑
benzgigi
2005-12-17 19:47 |
1楼
▲ ▼ |
看到下载次数有30次~却没人回复!!
大大这么辛苦的PO这么多出来^^ 受益良多!!谢谢~~ 献上一朵花~表示敬意!! x0 |
引用 | 编辑
USB
2006-03-30 14:53 |
3楼
▲ ▼ |
下面是引用long5306于2006-03-29 14:19发表的 : 附件是个simple,里面的网页连结依照自己所需需改即可。 x0 |
引用 | 编辑
spiritskill
2007-11-15 14:08 |
13楼
▲ ▼ |
感谢大大~随然刚下再下来
还在研究中 感觉很棒的范例! 还在摸索中 希望大大能提供 多层的范例 麻烦一下大大 x0 |