asp学习

慢慢成长,知识是靠积累的,经验最重要!

导航

简单实用的js对联代码


<script language="javascript">

lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin12.style.pixelTop+=percent;
document.all.lovexin14.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
suspendcode12="<DIV id=lovexin12 style='right:2px;POSITION:absolute;TOP:406px;'><iframe width=110 height=163 frameborder=0 scrolling=no src='qq.html'></iframe></div>"
document.write(suspendcode12);
suspendcode14="<DIV id=lovexin14 style='left:2px;POSITION:absolute;TOP:96px;'><iframe width=110 height=163 frameborder=0 scrolling=no src='qq.html'></iframe></div>"
document.write(suspendcode14);
window.setInterval("heartBeat()",1); 
</script>

posted on 2007-11-20 09:21  laopu  阅读(591)  评论(0)    收藏  举报