如何使用flash模擬F11(全屏不能最大化瀏覽器窗口): http://www.broculos.net/files/articles/FullscreenFlash/flashFullscreen.html?使用javascript模擬F11
閃光燈:fscommand("fullscreen", true)
permadi.com/tutorial/flash9FullScreen/index.html
感謝
更新
我發現這一點:
var docElm = document.documentElement;
if (docElm.requestFullscreen) {
docElm.requestFullscreen();
} else if (docElm.mozRequestFullScreen) {
docElm.mozRequestFullScreen();
} else if (docElm.webkitRequestFullScreen) {
docElm.webkitRequestFullScreen();
}
/* Exiting the full screen => showing the FULL SCREEN button */
if (docElm.requestFullscreen) {
document.addEventListener("fullscreenchange", function() {
if(!document.fullscreen) {
// Do something
}
}, false);
} else if (docElm.mozRequestFullScreen) {
document.addEventListener("mozfullscreenchange", function() {
if(!document.mozFullScreen) {
// Do something
}
}, false);
} else if (docElm.webkitRequestFullScreen) {
document.addEventListener("webkitfullscreenchange", function() {
if(!document.webkitIsFullScreen) {
// Do something
}
}, false);
}
這僅適用於(從看到搞什麼名堂)只在按鈕點擊。無法在網頁加載時執行此操作
它沒有被廢棄,它的重要考慮:http://www.mail-archive.com/[email protected]/msg19915.html – mwilcox 2010-06-22 17:40:29