純JS調用,在合適的位置自行添加。 <!--首頁全屏開始--> <center> <script language="JavaScript"> <!-- SYFS=true var adInterPath="/AD/UploadAdPic/TopFullScreen/qp.jpg" if (document.all) { // this is a 4.x browser, no? document.write('<SCRI' + 'PT LANGUAGE="javascript1.2"'); document.writeln(' SRC="js/TopFullScreen.js"></SCR' + 'IPT>'); } // --> </script> <DIV ID="hiddenLayer" style="display: none; height: 500px;"> <script language="Javascript"> <!-- if (getsGlu) { expandableIframe = '<IFRAME id="FSFrame" width=760 HEIGHT=500 NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0></IFRAME>'; document.write(expandableIframe); } // --> </script> </div> <!--首頁全屏結束--> 把下面的代碼保存爲TopFullScreen.js var ads_agt=navigator.userAgent.toLowerCase(); var ads_is_major = parseInt(navigator.appVersion); var ads_is_ie = ((ads_agt.indexOf("msie") != -1) && (ads_agt.indexOf("opera") == -1) && (ads_agt.indexOf("omniweb") == -1)); var ads_is_ie3 = (ads_is_ie && (ads_is_major < 4)); var ads_is_ie4 = (ads_is_ie && (ads_is_major == 4) && (ads_agt.indexOf("msie 5")==-1) && (ads_agt.indexOf("msie 6")==-1)); var ads_is_ie4up = (ads_is_ie && (ads_is_major >= 4)); var ads_is_ie5 = (ads_is_ie && (ads_is_major == 4) && (ads_agt.indexOf("msie 5.0")!=-1) ); var ads_is_ie5up = (ads_is_ie && !ads_is_ie3 && !ads_is_ie4); var ads_is_ie5_1_macbeta = (ads_is_ie && (ads_agt.indexOf("mac")!=-1) && (ads_agt.indexOf("5.1b")!=-1)); var ads_is_nav = ((ads_agt.indexOf('mozilla')!=-1) && (ads_agt.indexOf('spoofer')==-1) && (ads_agt.indexOf('compatible') == -1) && (ads_agt.indexOf('opera')==-1) && (ads_agt.indexOf('webtv')==-1)); var ads_is_nav6 = (ads_is_nav && (ads_agt.indexOf("netscape6")!=-1) && (ads_agt.indexOf("6.1")==-1)); var ads_is_nav6up = (ads_is_nav && !ads_is_nav4 && !ads_is_nav3 && !ads_is_nav2); var ads_is_nav6_1 = (ads_is_nav && (ads_agt.indexOf("netscape6")!=-1) && (ads_agt.indexOf("6.1")!=-1)); var ads_is_nav6_1up = (ads_is_nav && !ads_is_nav6 && !ads_is_nav4 && !ads_is_nav3 && !ads_is_nav2); getsGlu = ((ads_is_ie5up && !ads_is_ie5_1_macbeta) || ads_is_nav6_1up); //function changediv(depth) //{ // divAll.style.zIndex=depth // } function changediv() { document.getElementById('hiddenLayer').style.display = "block"; document.getElementById('FSFrame').src = adInterPath; setTimeout("hidediv()",5000) } function hidediv() { document.getElementById('hiddenLayer').style.display="none"; SYtag=2; } function showfull() { setTimeout("changediv()",2000); } showfull()