代码改变世界

页面全屏的javascript

2009-05-12 10:41  Virus-BeautyCode  阅读(310)  评论(0编辑  收藏  举报
<!--全屏打开-->
 <script type="text/javascript" language=“javascript”>
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
window.onresize = function(){
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
</script>