站 内 搜 索
热门特效推荐
您当前位置:
中国素材首页
>>
网页特效
>>
窗口类
>> 打开窗口的源代码
打开窗口的源代码
中国素材网 www.sucai86.com 2007-11-19 5:04:49 流量数:
打开窗口的源代码
[
查看演示
] 源码如下
----------------------------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popupPage(l, t, w, h) {
var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;
var URL = "http://pc.gbdns.com/flash.swf";
popup = window.open(URL,"MenuPopup",windowprops);
}
// End -->
</script>
<table>
<tr>
<td>
<form name=popupform>
<pre>
打开页面的参数<br>
离开左边的距离: <input type=text name=left size=2 maxlength=4> pixels
离开右边的距离: <input type=text name=top size=2 maxlength=4> pixels
窗口的宽度: <input type=text name=width size=2 maxlength=4> pixels
窗口的高度: <input type=text name=height size=2 maxlength=4> pixels
</pre>
<center>
<input type=button value="打开这个窗口!" onClick="popupPage(this.form.left.value, this.form.top.value, this.form.width.value, this.form.height.value)">
</center>
</form>
</td>
</tr>
</table>
----------------------------------------------------------------------------------------
欢迎来到中国素材网!