急求经测试过能用的右侧广告图片随滚动条上下移动代码

来源:百度知道 编辑:UC知道 时间:2024/06/07 13:08:51
在网上找了两天都没啥合适的。。

大家帮帮忙,把手里能用的给我发一份用用吧。 谢谢大家哦。。

急着用里啊

一定看清题目,不是要在全网页内浮动的。也不是两侧 ,就是右侧随滚动条浮动的。。。

020015D6:270F

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>悬浮广告</title>
<style>
#QQFloat{
overflow: hidden;
position: absolute;
height: 209px;
width: 113px;
top: 0px;
right: 2px;
background-color:#99a;
}
</style>
<script type="text/javascript">
window.onscroll = function MoveQQ(){
document.getElementById("QQFloat").style.top=eval(document.documentElement.scrollTop) +