对联广告,带关闭,可以移动
来源:互联网 发布:常见端口号dhcp 编辑:程序博客网 时间:2024/04/28 05:06
在网页中加入以下代码 两个图的,一个是关闭用到的,一个是广告图
<script language=JavaScript src="js/scroll.js"></script>
js代码如下:
suspendcode="<DIV id=lovexin1 style='Z-INDEX: 10; LEFT: 6px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.makewing.com/lanren/' target='_blank'><img src='images/ad_100x300.jpg' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);
suspendcode="<DIV id=lovexin2 style='Z-INDEX: 10; LEFT: 896px; POSITION: absolute; TOP: 105px; width: 100; height: 300px;'><img src='images/close.gif' onClick='javascript:window.hide()' width='100' height='14' border='0' vspace='3' alt='关闭对联广告'><a href='http://www.makewing.com/lanren/' target='_blank'><img src='images/ad_100x300.jpg' width='100' height='300' border='0'></a></DIV>"
document.write(suspendcode);
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);
- 对联广告,带关闭,可以移动
- 对联广告,带关闭,可以移动(2)
- 对联广告(带关闭的)
- 不带关闭的对联广告
- 带关闭功能的Javascript对联广告代码
- flash对联广告代码: 两边显示 不移动 可关闭
- 对联广告(不移动)
- 对联广告关闭挖扭的制作
- 可关闭的对联广告代码
- JavaScript浮动对联(带浮动关闭)
- 对联广告
- 对联广告
- 对联广告
- 对联广告
- 对联广告
- 对联广告
- 对联广告
- 对联广告
- string编写代码的时候要注意的--我深刻体会
- OSGI的特点
- Socket I/O模型全接触
- 在Linux下开发多语言软件: Hello GetText!
- 工作流模式详解之流程控制模式(11)——Implicit Termination
- 对联广告,带关闭,可以移动
- 男人哭了,是因为他真的爱了
- 上传功能出现 asp 0104 不允许操作解决方法
- 显示和隐藏任务管理器的菜单
- 高手是如何轻松玩转Java Web Start的
- 在触发器中获取操作执行前后的数据
- 如何在Java程序中运行外部类文件
- 程序设计语言是什么
- oracle 常见函数