- 帖子
- 27292
- 积分
- 27292
- 经验
- 27292 点
- 威望
- 22 点
- 金钱
- 943 NG
- 魅力
- 59978
- 性别
- 男
- 来自
- TS 苍の星宿X
- 注册时间
- 2002-8-2
我们约会吧!
|
7#
发表于 2003-12-23 09:18
| 只看该作者
Re:【求助】作下拉菜单
function runEx(){var winEx = window.open('', '', 'resizable,scrollbars'); winEx.document.open('text/html', 'replace');winEx.document.write(unescape(event.srcElement.parentElement.children[2].value));}HTML代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape"&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible'v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<body bgcolor="#DDDDDD" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll=auto>
<div id="title" style="position:absolute; left:8px; top:15px; width:100px; height:15px;z-index:1; background-color: #006699; layer-background-color: #006699; border: 1px none #000000">
<table width="480" cellspacing="0" cellpadding="2">
<tr>
<td width="120" onMouseOver="MM_showHideLayers('menu1','','show')" onMouseOut="MM_showHideLayers('menu1','','hide')"><b><font color="#DDDDDD"><a href="#">Click:哭哭</a></font></b> </td>
</tr>
</table>
</div>
<div id="menu1" style="position:absolute; left:8px; top:34px; width:120px; height:80px; z-index:2; background-color: #333311; layer-background-color: #000000; border: 1px none #000000; visibility: hidden" onMouseOver="MM_showHideLayers('menu1','','show')" onMouseOut="MM_showHideLayers('menu1','','hide')">
<table width="100%" cellspacing="0" cellpadding="2" height="80">
<tr>
<td> <a href="http://www.kongweb.net">白吃</a></td>
</tr>
<tr>
<td> <a href="http://www.kongweb.net">笨蛋</a></td>
</tr>
<tr>
<td> <a href="http://www.kongweb.net">250</a></td>
</tr>
<tr>
<td> <a href="http://www.0yeah.co">制作方法</a></td>
</tr>
</table>
</body>
</html>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行] |
一直以为,隐身了别人就找不到我,没有用的,我这样拉风的男人,无论在哪里,都像漆黑中的萤火虫一样,那样的鲜明,那样的出众。那忧郁的眼神,稀嘘的胡喳子,神乎其神的狙法,还有,那杯82年的马迪力,无限反光的墨镜,都深深的出卖了我!~!!~!!! |
|