<div id="sorollDiv1" style="right:-8px; position:absolute; top:120px; height: 105px; width: 125px;">
<a href="/zaopin/zhaopin.asp" target="blank" title="点击查看招聘信息">
<img src="./images/zhaopin.jpg" width="124" height="106" border=0 galleryimg="no"></a> </div>
<script type="text/javascript">
var lastScrollY=0;
function heartBeat(){
diffY=document.documentElement.scrollTop;
percent=0.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("sorollDiv1").style.top=parseInt(document.getElementById("sorollDiv1").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
</script>
从网上找的一段代码,随便贴的网页上,可以显示图片,可是不随网页的下拉移动,郁闷???
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货