一个window的方法难题

cnlsq 2003-07-16 03:20:55
请问有没有window.fullscreen();这个方法,我的脚本不知怎的必需加这个方法才能运行,但加上去有报错不知错在哪里,具体程序是:
function inie(theName){
var screenWidth,screenHeight,theTrueTop,theTrueLeft
if((screen.width==1024)&&(screen.height==768)){
screenWidth=screen.width;
screenHeight=screen.height;
theTrueTop=screenWidth*0.306;
theTrueLeft=screenHeight*0.76;
}else{
if((screen.width==800)&&(screen.height==600)){
screenWidth=screen.width;
screenHeight=screen.height;
theTrueTop=screenWidth*0.392;
theTrueLeft=screenHeight*0.8;
}
}
document.all[theName].style.top=theTrueTop;
document.all[theName].style.left=theTrueLeft;
window.fullscreen();
}
...全文
22 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
紫郢剑侠 2003-07-16
  • 打赏
  • 举报
回复
gz
zhllwarez 2003-07-16
  • 打赏
  • 举报
回复
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function winOpen(url){
win=window.open(url,'_self','fullscreen=0,toolbar=no,Status=no,menubar=no,location=no,scrollbars=no,resizable=no')
win.moveTo(0,0)
win.resizeTo(screen.availWidth,screen.availHeight)
win.outerWidth=screen.availWidth
win.outerHeight=screen.availHeight
win.focus();
}

// End -->
</script>
<a href="javascript:void(0)" onclick="winOpen('test')">点击测试效果</a>
cnlsq 2003-07-16
  • 打赏
  • 举报
回复
我想在本页做最大化不想再打开一页,行吗?
indeed 2003-07-16
  • 打赏
  • 举报
回复
//打开最大化窗口
function winOpen(url){
win=window.open(url,'frame_window','fullscreen=0,toolbar=no,Status=no,menubar=no,location=no,scrollbars=no,resizable=no')
win.moveTo(0,0)
win.resizeTo(screen.availWidth,screen.availHeight)
win.outerWidth=screen.availWidth
win.outerHeight=screen.availHeight
win.focus();
}
winOpen('管理你的站点.htm')
</script>
<a href="javascript:void(0)" onclick="winOpen('窗口最小化.htm')">maxize</a>

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧