浅沫记忆 发表于 2021-10-25 13:33:53

打开页面就是全屏的方法

<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="https://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("https://yourdomain/index.htm","Hello","scrollbars");
    Hello.focus();

}

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

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

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


https://www.uoften.com/program/jsp/20180413/47203.html
页: [1]
查看完整版本: 打开页面就是全屏的方法