一个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();
}