全屏打开页面代码
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()"
<!--
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()"
相关文章推荐
- 新浪刚打开页面出来的全屏广告代码
- JS中用window.open()方式打开,使新页面全屏、居中的代码
- 新浪刚打开页面出来的全屏广告代码
- android打开系统页面代码
- 页面一打开就执行JS的代码!
- 2015.2.16 关于delphi web控件打开新网页时弹出关闭页面(js代码)出错的解决办法研究
- Javascript 用本页面文本域中的HTML代码打开一个空白窗口来运行
- MyEclipse2014中如何设置jsp文件打开后显示一个框里两个页面,上面是图,下面是代码
- window.open打开页面居中显示的示例代码
- window.open打开页面居中显示的示例代码
- 服务器端执行的打开页面代码
- 识别移动和pc打开跳转不同页面代码
- 织梦页面新窗口打开,一句代码即可搞定!
- iOS如何用代码控制以不同屏幕方向打开新页面?
- 页面正在加载中代码(网页打开慢时用)
- 打开页面就是全屏的方法
- ASP.NET打开新页面而不关闭原来的页面 实例代码
- h5页面判断微信端用浏览器打开代码
- 精简ZBlog模版代码,提高页面打开速度
- myeclipse打开的html页面,希望是纯粹代码的形式