会员登录 - 用户注册 - 设为首页 - 加入收藏 - 网站地图 对联欣赏网(www.86duilian.com),搜集整理对联,供广大的网友和联友学习和使用。
当前位置:主页 > 对联集锦 > 广告对联 > 正文

简单实用的js对联广告代码

时间:2015-06-02 21:14 来源: 作者: 阅读:
<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>

(责任编辑:admin)

相关标签: 乔迁对联 庆贺对联 开业对联