全屏问题
window.open(url,null, "fullscreen=yes,height=100%, width=100%, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no ")
以上代码,同样是IE6.0
为什么有些系统的IE可以全屏
有些系统的IE就出现上面蓝色一栏和下面的状态栏呢?
------解决方案--------------------一个兼容所有浏览器的全屏JS代码 原创
支持 NS IE FF OP ...
各种浏览器,全屏显示!
代码如下:
function goFullscreen(page) {
var URLen=page;
var windowNamen= "mainflashwindow ";
var browserName=navigator.appName;
var operatingSystem=navigator.platform;
var version = parseFloat(navigator.appVersion);
// Netscape check version 4.0+ on Win
if (browserName.indexOf( "Netscape ")!=-1 && version> =4.0 && operatingSystem.indexOf( "Mac ")!=-1)
{
window.open(URLen,windowNamen, 'titlebar=no,top=0,left=0,width= ' + window.screen.availWidth+ ',height= '+window.screen.availWidth+ ',screenX=0,screenY=0,top=0,left=0 ')
}
// MSIE Mac check
else if (browserName.indexOf( "Microsoft Internet Explorer ")!=-1 && operatingSystem.indexOf( "Mac ")!=-1)
{
window.open(URLen,windowNamen, 'titlebar=no,top=0,left=0,width= ' + window.screen.availWidth+ ',height= '+window.screen.availWidth+ ',screenX=0,screenY=0,top=0,left=0 ')
}
// Netscape Mac check
else if (browserName.indexOf( "Netscape ")!=-1 && operatingSystem.indexOf( "Mac ")!=-1)
{
window.open(URLen,windowNamen, 'width= '+screen.width+ ',height= '+screen.height+ ',top=0,left=0 ');
}
// MSIE Windows
else if (browserName.indexOf( "Microsoft Internet Explorer ")!=-1 && operatingSystem.indexOf( "Win ")!=-1)
{
//window.open(URLen,windowNamen, 'fullscreen=yes ')
var win = window.open(URLen,windowNamen, 'titlebar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=0,left=0,width= ' + window.screen.availWidth+ ',height= '+window.screen.availHeight+ ',screenX=0,screenY=0,top=0,left=0 ')
win.resizeTo(screen.width, screen.height);
//win.moveTo(1, 1);
//win.moveTo(0, 0);
//win.resizeTo(screen.width, screen.height);
}
// Netscape Windows
else if (browserName.indexOf( "Netscape ")!=-1 && operatingSystem.indexOf( "Win ")!=-1)
{
window.open(URLen,windowNamen, 'width= '+screen.width+ ',height= '+screen.height+ ',top=0,left=0 ');
}
else
{
window.open(URLen,windowNamen);
}
}
// 使用方法如下
goFullscreen(http://www.023si.com);
完毕
------解决方案--------------------浏览器特性问题啊
------解决方案--------------------screen像素