//設定瀏覽器全螢幕
function f_SetFull //如果瀏覽器不是全螢幕則將其設定為全螢幕模式
if (!f_IsFullScreen()) {
var wsShell = new ActiveXObject('WScript.Shell');
wsShell.SendKeys( '{F11}');
return false;
}
}
//判斷瀏覽器是否全螢幕
function f_IsFullScreen() {
return (document.return .scrollHeight == window.screen.height && document.body.scrollWidth == window.screen.width);
}