广告条幅随页面上下浮动效果_风之翼2009的空间_百度空间

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>上下浮动条幅</title>
</head>

<body>

<div id="lovewei33" style="position:absolute;top:0px; left:10px"><img src="images/left.gif" border="0" usemap="#Map" />
</div>
<div id="lovewei99" style="position:absolute;top:0px; right:10px;"><img src="images/right.gif" border="0" />
</div>
<script language="javascript">
style1=(document.documentElement.clientWidth-780)/2-110;
document.getElementById("lovewei33").style.left=style1+"px";
document.getElementById("lovewei99").style.right=style1+"px";
function wen8(){
if (document.documentElement && document.documentElement.scrollTop)
var dtop = document.documentElement.scrollTop;
else if (document.body)
var dtop = document.body.scrollTop;
else
    {/*Netscape stuff*/}
var lovewei33=document.getElementById("lovewei33");
var lovewei99=document.getElementById("lovewei99");
if(dtop<=100){lovewei33.style.top=100+"px";lovewei99.style.top=100+"px";}
else{lovewei33.style.top=dtop+5+"px";lovewei99.style.top=dtop+5+"px";}};
window.onscroll=function(){wen8();
style1=(document.documentElement.clientWidth-780)/2-110;
lovewei33.style.left=style1+"px";
lovewei99.style.right=style1+"px";
}
</script>
<div style="width:{bfb}; height:1024px;">&nbsp;</div>
</body>
</html>



郑重声明:资讯 【广告条幅随页面上下浮动效果_风之翼2009的空间_百度空间】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——