您的位置:首页 > 编程语言

全屏打开页面代码

2006-06-06 17:21 357 查看
<script language="JavaScript">
<!--
closes.Click();
HeightValue=screen.height;
WidthValue=screen.width;
newwin=window.open("default.asp","new",
"width=800,height=600,fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,left=0,top=0");
   newwin.moveTo(-3,-3);
   newwin.resizeTo(WidthValue+6,HeightValue-23);
// -->
</script>

scrollTo() 用法:[<窗口对象>.]scrollTo(x, y);使窗口滚动,使文档从左上角数起的(x, y)点滚动到窗口的左上角。
scrollBy()
 用法:[<窗口对象>.]scrollBy(deltaX, deltaY);使窗口向右滚动 deltaX 像素,向下滚动 deltaY 像素。如果取负值,则向相反的方向滚动。
resizeTo()
 用法:[<窗口对象>.]resizeTo(width, height);使窗口调整大小到宽 width 像素,高 height 像素。
resizeBy()
 用法:[<窗口对象>.]resizeBy(deltaWidth, deltaHeight);使窗口调整大小,宽增大 deltaWidth 像素,高增大 deltaHeight 像素。如果取负值,则减少。

onload="window.open('fullscreen.htm','','fullscreen=1,scroll=no');window.opener=null;window.close()"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  javascript scroll 文档