实现功能:在点击页面的连接后打开的IE窗口就是全屏显示的。
代码:
1. 将连接处的代码改成下面这样:
<a href="javascript :openFullscreen('http://www.wuyuandesign.com')">全屏显示</a>
[/color]
2. 再将下面的代码放到<body></body>的前面
<script>
function openFullscreen(page) {
var yes = 1;
var no = 0;
var menubar = no;
var scrollbars = no;
var locationbar = no;
var directories = no;
var resizable = no;
var statusbar = no;
var toolbar = no;
windowprops = "width=" + (screen.width-10) + ",height=" + (screen.height-50) + ",top=0,left=0";
windowprops += (menubar ? ",menubars" : "") + (scrollbars ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");
window.open(page, 'fullPopup', windowprops);
}
//-->
</script>