<html>
<head>
<title>JS随机广告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<div id="div1" style="position: absolute; text-align:center; visibility:hidden; filter: revealTrans(Transition=8, Duration=1) revealTrans(Transition=9, Duration=3) revealTrans(Transition=10, Duration=1) revealTrans(Transition=11, Duration=2) revealTrans(Transition=12, Duration=3) revealTrans(Transition=17, Duration=2) revealTrans(Transition=18, Duration=3) revealTrans(Transition=19, Duration=1) revealTrans(Transition=20, Duration=2) revealTrans(Transition=21, Duration=3)"><img id="img1"></div>
<script language="javascript">
var n=0;
var n1=0;
var is=true;
document.all.div1.style.top=document.body.clientHeight-135;
document.all.div1.style.left=document.body.clientWidth-175;
function showdiv(){
n=Math.floor(Math.random()*10);
document.all.div1.filters[n].apply();
if (n1==4){n1=1}
else{n1=n1+1}
document.all.img1.src="/jscss/demoimg/wall_s"+n1+".jpg";
if (is==true){
document.all.div1.style.visibility="visible";
is=false;
}else{
document.all.div1.style.visibility="hidden";
is=true;
}
document.all.div1.filters[n].play();
setTimeout("showdiv()",6000);
}
showdiv();
function place(){
window.status=String(n);
document.all.div1.style.top=parseInt(document.body.scrollTop)+parseInt(document.body.clientHeight)-135;
document.all.div1.style.left=parseInt(document.body.scrollLeft)+parseInt(document.body.clientWidth)-175;
setTimeout("place()",50)
}
place();
</script>
</body>
</html>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。