请各位大哥大姐告诉小弟一段打开网页后自动全屏的代码!!!最好支持各种浏览器的....不过IE/MYIE这2个只要支持就给分...支持一个的也给<script>
window.moveTo(0,0);
window.resizeTo(this.screen.width,this.screen.height-20);
</script>
这个是我的代码..虽然能变成全大..但是和全屏还差一点...
小弟再次谢过了!!!!!!

解决方案 »

  1.   

    var width = 1015;
    var height = 710;
    //openWin(sUrl, "", width, height);
    window.open(sUrl,"", "left=0,top=0,width="+width+",height="+height+",menubar=no,status=no,titlebar=no,resizable=yes,scrollbars=yes,location=no,toolbar=no" );
      

  2.   

    var mywindow;
    var w_width = screen.availWidth;
    var w_height = screen.availHeight;
    var tableHeight = screen.height;
    mywindow = window.open('myurl','mywindow',"width=" + w_width + ", height="+ w_height + ", top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no");
    mywindow.resizeTo(screen.availWidth, screen.availHeight);
    this.opener = null;
    this.close();
      

  3.   

    window.open('about:blank','','fullscreen=3,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no');
      

  4.   

    <script>
    if(this.name!='fullscreen'){
    fs=window.open(location.href,'fullscreen','fullscreen=yes');
    fs.opener.opener=null
    fs.opener.close();
    }
    </script>