|
蓝森林 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] |
哦.这样,多谢行了. |
|