asp中随页面滚动的广告的代码怎么写?
。FW_SfList {width: 100%;font-size: 12px;border: 1px solid #E6E9EC;}
。FW_SfList 。head {color: #FFFFFF;background-color: Red;}
。 FW_SfList 。head 。title {float: left;line-height: 24px;font-weight: bold;}
。FW_SfList 。head 。time {float: right;line-height: 24px;}
。 FW_SfList 。head 。time a {color: #FF...全部
。FW_SfList {width: 100%;font-size: 12px;border: 1px solid #E6E9EC;}
。FW_SfList 。head {color: #FFFFFF;background-color: Red;}
。
FW_SfList 。head 。title {float: left;line-height: 24px;font-weight: bold;}
。FW_SfList 。head 。time {float: right;line-height: 24px;}
。
FW_SfList 。head 。time a {color: #FFFFFF;}
。FW_SfList th {background-color: #DFE2E6;color: #080959;font-weight: bold;line-
height: 20px;padding: 0 2px;}
。
FW_SfList td {line-height: 20px;text-align: center;padding: 0px 2px;}
。FW_SfList tfoot td {line-height: 20px;text-align: right;padding: 0px 2px;}
接下来。
这放在body里
function scrollImg(){
var posX,posY;
if (window。innerHeight) {
posX = window。
pageXOffset;
posY = window。pageYOffset;
}
else if (document。documentElement && document。
documentElement。scrollTop) {
posX = document。documentElement。scrollLeft;
posY = document。
documentElement。scrollTop;
}
else if (document。body) {
posX = document。body。scrollLeft;
posY = document。
body。scrollTop;
}
var ad=document。getElementById("ad");
ad。style。top=(posY+500)+"px";
ad。
style。left=(posX+880)+"px";
setTimeout("scrollImg()",100);
}
scrollImg();
。收起