记不住就拿Dreamweaver都可以。
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="main" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="main.swf" quality="high" bgcolor="#869ca7"
width="100%" height="100%" name="main" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
1,访问页面:a.html:<html>
<head>
</head>
<body>
<input
type="text"
name="name"
id="name"
>
<input
type="button"
value="选择用户"
onclick="window.open('b.html','selectname',800,600,1)">
</body>
</html>
2,新打开的选择页面b.html
<html>
<head>
<script
type="text/javascript">
function
selectOrg(name){
if(window.opener){
window.opener.document.all.name.value
=name
window.close()
}
}
</script>
</head>
<body>
<input
type="radio"
name="name"
onclick="selectOrg('李四')">李四
<input
type="radio"
name="name"
onclick="selectOrg('张三')">张三
<input
type="radio"
name="name"
onclick="selectOrg('王五')">王五
</body>
</html>
试一下吧!
点击a.html中的"选择用户"按钮就会d出b.html,在b.html选择用户后就能返回到a.html并显示返回值
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)