精彩推荐,不容错过。
您现在的位置: 横峰中学 >> 文章中心 >> 附件 >> 正文 今天是:
国庆、烈士纪念日专题图片
作者:learnew    文章来源:本站原创    点击数:16241    更新时间:2014/10/11    
        ★★★ 【字体:

 

  

代码:

<script language="JavaScript" type="text/javascript">
lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
document.getElementById("RightAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12="<DIV id=LeftAd style='left:5px;POSITION:absolute;TOP:80px;'><a target='_blank' href='/Article/ShowSpecial.asp?specialid=2' title='烈士纪念日专题'><img src='/Article/UploadFiles/201410/2014101108320779.jpg' width='200' height='440' border='0'></a><a style='text-align:left; cursor: hand; display:block; background:#eee; width:73px;' href='javascript:void(0)' onclick='javascript:ClosedivLeft()' hidefocus='true'>关闭</a></div>"
suspendcode14="<DIV id=RightAd style='right:5px;POSITION:absolute;TOP:80px;'><a target='_blank' href='/Article/ShowSpecial.asp?specialid=3' title='欢度国庆专题'><img src='/Article/UploadFiles/201410/2014101108175398.jpg' width='200' height='440' border='0'></a><a style='text-align:left; cursor: hand; display:block; background:#eee; width:73px;' href='javascript:void(0)' onclick='javascript:ClosedivRight()' hidefocus='true'>关闭</a></div>"
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()",1);
function ClosedivLeft()
{
LeftAd.style.visibility="hidden";
}
function ClosedivRight()
{
RightAd.style.visibility="hidden";
}
</script>

文章录入:learnew    责任编辑:learnew 
  • 上一篇文章: 没有了

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)