<script for=window EVENT=onload LANGUAGE="JScript">
initAd();
</SCRIPT>
<script language="JScript">
<!--
function initAd() {
document.all.AdLayer.style.posTop = -200;
document.all.AdLayer.style.visibility = 'visible'
MoveLayer('AdLayer');
}
function MoveLayer(layerName) {
var x = 600; //悬浮图片的X坐标
var y = 300; //Y坐标
var diff = (document.body.scrollTop + y - document.all.AdLayer.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLayer('AdLayer');", 20);
}
</script >
<div id=AdLayer style='position:absolute; width:61px; height:59px; z-index:20; visibility:hidden;; left: 600px; top: 300px'>
<a HREF="/catally"> <img src='http://blog.csdn.net/images/blog_csdn_net/catally/24804/o_hu.gif' border="1" height="222" width="277" ></a>//这里是图片及其连接
</div>
为刀刀演示的的悬浮广告代码
最新推荐文章于 2021-05-25 22:42:04 发布
To 刀刀