怎么设置在网页中打开新的链接网页窗口的大小? 如:http://qiying.512j.com
如这代码!又如何理解<script language="JavaScript">
function na_open_window(name, url, left,
top, width, height,toolbar, menubar, statusbar,
scrollbar, resizable)
{
toolbar_str = toolbar ? ';yes'; : ';no';;
menubar_str = menubar ? ';yes'; : ';no';;
statusbar_str = statusbar ? ';yes'; : ';no';;
scrollbar_str = scrollbar ? ';yes'; : ';no';;
resizable_str = resizable ? ';yes'; : ';no';;
window.open(url, name, ';left='; left ';, top='; top ';, width='; width ';, height='; height ';, toolbar='; toolbar_str ';, menubar='; menubar_str ';, status='; statusbar_str ';, scrollbars='; scrollbar_str ';, resizable='; resizable_str);
}
// -->
</script>
不好意思!明白:SCRIPT language=JavaScript>
ONCLICK="window.open(';test.htm';,';Sample';,';toolbar=yes,location=yes,directories=no,status=no,menubar=no,
scrollbars=yes,resizable=no,copyhistory=yes,width=300,height=200,left=100,top=100';)"
</script>
window各项属性说明:
toolbar=yes, 显示工具条
location=yes,显示网址栏
directories=no,导航条
status=no,状态条
menubar=yes,菜单
scrollbars=yes,滚动条
resizable=no,是否可以改变大小
copyhistory=yes,历史按钮
width=300,宽
height=200';高
left=100,距离左边100
top=100,距离顶端100
还有个问题。就上面代码。如果滚动条我要Y轴。不要X轴。又怎样设置?
不明白你的意思
就是怎么设置打开一个不要滚动条的网页,
你页面的大小不要超过窗口设置的大小就没有滚动条呀,或者scrollbars=no也可以,但是内容看不完 |
|