起点的浮动广告仍然有问题
**** 作者被禁止或删除 内容自动屏蔽 **** 起点的广告都被我过滤完了:sweat: 什么广告也没看到啊 不看起点~~~强烈BS~VIP章节:lol:回复 #1 glw0413 的帖子
找出了代码[code]<iframe id="ifPage" width="400" height="221" style="position:absolute; visibility:visible; z-index:1" src="include/activity/unRegUserPage.asp?bookid=40514" frameborder="0" border="0" scrolling="no"></iframe>
<script language="javascript">
var XX=0;
var xstep=0;
var delay_time=60;
var YY=0;
var ch=0;
var oh=0;
var yon=0;
var ns4=document.layers?1:0
var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
if(ie)
{
XX = document.body.clientWidth - 400;
YY = document.body.clientHeight - 221;
document.getElementById('ifPage').style.top=YY;
}
else if (ns4)
{
XX = window.innerWidth - 400;
YY = window.innerHeight - 221;
document.getElementById('ifPage').pageX=XX;
document.getElementById('ifPage').pageY=YY;
document.getElementById('ifPage').visibility="hidden";
}
else if (ns6)
{
XX = window.innerWidth - 400;
YY = window.innerHeight - 221;
document.getElementById('ifPage').style.top=YY;
}
function reloc()
{
if(yon==0)
{
YY=YY-xstep;
}
else
{
YY=YY+xstep;
}
if(ie)
{
ch=document.body.clientHeight;
oh=document.getElementById('ifPage').offsetHeight;
}
else if(ns4)
{
ch=window.innerHeight;
oh=document.getElementById('ifPage').clip.height;
}
else if(ns6)
{
ch=window.innerHeight
oh=document.getElementById("ifPage").offsetHeight
}
if(YY<0)
{
yon=1;YY=0;
}
if(YY>=(ch-oh))
{
yon=0;YY=(ch-oh);
}
if(ie)
{
document.getElementById('ifPage').style.left=XX;
document.getElementById('ifPage').style.top=YY+document.body.scrollTop;
}
else if(ns4)
{
document.getElementById('ifPage').pageX=XX;
document.getElementById('ifPage').pageY=YY+window.pageYOffset;
}
else if(ns6)
{
document.getElementById("ifPage").style.left=XX
document.getElementById("ifPage").style.top=YY+window.pageYOffset
}
}
function onad()
{
if(ns4)
document.getElementById('ifPage').visibility="visible";
loopfunc();
}
function loopfunc()
{
reloc();
setTimeout('loopfunc()',delay_time);
}
if(ie||ns4||ns6)
{
onad();
}
</script>[/code]
页:
[1]