求图片随网页在右侧上下滚动asp代码

来源:百度知道 编辑:UC知道 时间:2024/05/25 13:59:03
我要在网站右侧加个广告图片,随网页上下滚动.
请高手给个简单实用的代码.
网上找了一些,都不是很好用.

<style type="text/css">
.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;}

</style>
接下来。这放在body里
<script type="text/javascript">
function scrollImg(){
var posX,posY;
if (window.innerHeight) {
posX = window.pageXOffset;
posY = window.pageYOffset;
}
else if (document.documentElement && document.documentElement.scro