ASPCMS对联广告不能随屏滚动的解决方法
来源:互联网 发布:国外云主机 知乎 编辑:程序博客网 时间:2024/05/01 04:24
js/duilian.js
在该文件中添中如下代码:
window.setInterval("heartBeat()",1); //每1秒钟重新定位
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 105px; width: 110; height: 280px;'><img src='/images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.ahgxjy.com' target='_blank'><img src='/images/hf_01.jpg' width='115' height='380' border='0'></a></DIV>"
document.write(suspendcode);
suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; RIGHT: 6px; POSITION: absolute; TOP: 105px; width: 110; height: 280px;'><img src='/images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.ahgxjy.com' target='_blank'><img src='/images/hf_02.jpg' width='115' height='380' border='0'></a></DIV>"
document.write(suspendcode);
//flash格式调用方法
//<EMBED src='flash.swf' quality=high WIDTH=100 HEIGHT=300 TYPE='application/x-shockwave-flash' id=ad wmode=opaque></EMBED>
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.3*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.lovexin1.style.pixelTop+=percent;
document.all.lovexin2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
function hide()
{
lovexin1.style.visibility="hidden";
lovexin2.style.visibility="hidden";
}
window.setInterval("heartBeat()",1);
- ASPCMS对联广告不能随屏滚动的解决方法
- 关于对联广告不滚动的解决方法
- 滚动的对联广告
- 滚动的对联广告
- 随屏幕滚动的对联广告
- 对联浮动广告代码不滚动的解决方法
- 对联不滚动广告
- 对联滚动广告
- 对联广告不滚动
- 对联浮动广告JS代码不滚动不浮动的解决方法
- 对联浮动广告JS代码不滚动不浮动的解决方法
- asp.net页面下,对联广告不滚动的问题
- 对联广告不滚动的问题 asp.net 页面
- js 实现页面两边广告, 可关闭对联广告 随滚动条滚动 符合w3c标准
- js 实现页面两边广告, 可关闭对联广告 随滚动条滚动 符合w3c标准
- 对联效果的广告
- 对联广告 的css
- js左右弹性滚动对联广告代码
- java学习——常用数字运算方法
- 图解USB安装Ubuntu Server10.04.3
- Reset your Rearm count, run Windows 7 Forever without cracks
- Hadoop+HBase+ZooKeeper三者关系与安装配置
- CentOs 6.3 下安装启动memcache
- ASPCMS对联广告不能随屏滚动的解决方法
- 面试总结分享
- AtomicBoolean 类用法
- yii 多个字段唯一
- ViewPager onPageChangeListener总结
- “余额宝”颠覆基金业江湖
- C++面试宝典2011版...
- 未分类--Windows API--_bstr_t::_bstr_t
- Android画图之Matrix(一)