打开页面就是全屏的方法
发布时间:2006-10-14 2:47:35   收集提供:gaoqian
<script language="javascript">
function intro()
{
    if ((navigator.appVersion.indexOf("Mac")!=-1) &&
(navigator.userAgent.indexOf("MSIE")!=-1) &&
(parseInt(navigator.appVersion)=4))
    {
    skip()
    }
    else
    {
    popup()
    }

}
function skip()
{
    location.href="http://yourdomain/index.htm";
}
function popup()
{
    version =parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
    if (version >=4)
    version = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
    if (version >= 4)
    
    {
    if (navigator.appName=="Netscape")
{
    Hello = window.open("http://yourdomain/index.htm","Hello","scrollbars");
    Hello.focus();
                
}

        
if (navigator.appName=="Microsoft Internet Explorer")
        {
            window.open("http://

yourdomaintg/index.htm","screen","fullscreen==yes");
        }
    }
    else
    {
        location.href="http://ypurdomain/index.htm";
    }

}
</script>
<BODY onload=intro()>
</BODY></HTML>

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50