DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> JavaScript綜合知識 >> 怎麼讓js打開頁面就是全屏的方法
怎麼讓js打開頁面就是全屏的方法
編輯:JavaScript綜合知識     

 js打開頁面就是全屏的方法

 

<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:////";
}
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:///","Hello","scrollbars");
Hello.focus();

}


if (navigator.appName=="Microsoft Internet Explorer")
{
window.open("http:///","screen","fullscreen==yes");
}
}
else
{
location.href="http:///";
}

}
</script>
<BODY onload=intro()>
</BODY></HTML> 
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved