TOP
|
广告小窗口 代码
<style type="text/css">
<!--
#sponsorAdDiv {position:absolute; height:1; width:1; top:0; left:0;}
-->
</style>
<SCRIPT LANGUAGE="java script1.2">
adTime=10;
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=eva l('document.all.sponsorAdDiv.style');
else if(ns) adDiv=eva l('document.layers["sponsorAdDiv"]');
else if(w3) adDiv=eva l('document.getElementById("sponsorAdDiv").style');
randAd=Math.ceil(Math.random()*chanceAd);
if (ie||w3)
adDiv.visibility="visible";
else
adDiv.visibility ="show";
if(randAd==1) showAd();
}
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" style="visibility:hidden">
<table width="350" height="350" bgcolor="008000"><tr><td>
<table width="348" height="348" bgcolor="F0FFF0"><tr><td>
这是一个广告小窗口,您可在这里放上广告代码或是图片。指定时间内他回消失!
</td></tr></table></td></tr></table></div> |
|
坚持党对教育事业的全面领导,坚持把立德树人作为根本任务,坚持优先发展教育事业.
|
|
您正在浏览:广告小窗口 代码 需要更多请站内搜索,还是没有请免费向我们索取。
唐老师网站**********************一线语文教师互动分享***************部编版统编语文
关于本站 ----广告服务---版权申明---联系我们---网站地图 --
本网大部分资源来源于会员上传,除本网组织的资源外,版权归原作者所有,如有侵犯版权,请立刻和本网联系并提供证据,本网将在三个工作日内改正。
Copyright © 2009 - 2013 520yuwen. All Rights Reserved 工信部备案苏ICP备05032846-1号
站长:唐桂荣
苏公网安备 32100302010062号 本站与www.yz110.com同为“唐老师网站”旗下网站。
|