Tip: You can modify some of the code before running
<ptml> <pead> <meta http-equiv= "content-language" content= "ZH-CN" > <meta http-equiv= " Content-type "content=" text/html; charset=gb2312 "> <title> Limited Advertising window </title> </pead> <body> <style type=" Text/css "> <! --#sponsorAdDiv {position:absolute height:1; width:1 top:0; left:0;}--> </style> <script language= " JavaScript1.2 "> adtime=8; chancead=1; var ns= (document.layers); var ie= (document.all); var w3= (document.getElementById &&!ie); adcount=0; function Initad () {if (!ns &&!ie &&!w3) return; if (IE) addiv=eval (' Document.all.sponsorAdDiv.style '); else if (NS) addiv=eval (' document.layers[' Sponsoraddiv "]); else if (W3) addiv=eval (' document.getElementById (' Sponsoraddiv '). Style '); Randad=math.ceil (Math.random () *chancead); if (ie| | W3) addiv.visibility= "visible"; else addiv.visibility = "show"; IF (randad==1) Showad (); The function Showad () {if (adcount<adtime*10) {adcount+=1; if (IE) {documentwidth =document.body.offsetwidth/2+document.body.scrollleft-20; Documentheight =document.body.offsetheight/2+document.body.scrolltop-20;} else if (NS) {documentwidth=window.innerwidth/2+window.pagexoffset-20; documentheight=window.innerheight/2+window.pageyoffset-20;} else if (W3) {documentwidth=self.innerwidth/2+window.pagexoffset-20; documentheight=self.innerheight/2+window.pageyoffset-20;} Addiv.left=documentwidth-200;addiv.top =documentheight-200; SetTimeout ("Showad ()", 100);} else Closead (); function Closead () {if (ie| | W3) addiv.display= "None"; else addiv.visibility = "Hide"; } Onload=initad; </script> <div id= "Sponsoraddiv" > <table width= "450" height= "" bgcolor= "008000" ><tr>< td> <table width= "445" height= "345" bgcolor= "f0fff0" ><tr><td> Welcome to Smile Online _ Web effects network because of you and wonderful! <p> </p> <p><span lang= "ZH-CN" > enter the page when a window appears, this example shows the time is 8 seconds! </span></td></tr></table></td></tr></table></div> </body> </ptml>
Tip: You can modify some of the code before running