蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年8月22日 18:28

[HTLP]怎么弹出两个窗口不对啊.

function popwin1(url,mwd,mht,mtp,mlf)                    
{
window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+mwd+",height="+mht+",top="+mtp+",left="+mlf+"");
}
<script src="js/popwin1.js"></script>
<SCRIPT language=javascript>
popwin1('popwin/pop1.asp',100,100,100,100)
popwin1('popwin/pop2.asp',50,50,50,50)
</script>
弹出来的第2个就代替第一个了.?

[html]
<SCRIPT language=javascript>
function popwin1(url,name,mwd,mht,mtp,mlf)
{
window.open(url,name,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+mwd+",height="+mht+",top="+mtp+",left="+mlf+"");
}
</script>

<input type="button" onclick="popwin1('popwin/pop1.asp','a',100,100,100,100)" value="click1">
<input type="button" onclick="popwin1('popwin/pop1.asp','b',100,100,100,100)" value="click1">
[/html]

哦.这样,多谢行了.




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com