广告窗口不随鼠标滚动变化
2015-08-18 11:17
239 查看
广告窗口不随鼠标滚动变化
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> <!-- #apDiv1 { position:absolute; left:251px; top:51px; width:529px; height:210px; z-index:2; background-color: #0000FF; } #apDiv2 { position:absolute; left:128px; top:381px; width:912px; height:18663px; z-index:-1; background-color: #FF0000; } --> </style> <script> var xx=0; function init(){ xx =document.getElementById("apDiv1").offsetTop; } function aa(){ document.getElementById("apDiv1").style.top=xx+document.documentElement.scrollTop+"px"; } window.onscroll=aa; </script> </head> <body onload="init()"> <div id="apDiv1"></div> <div id="apDiv2"></div> </body> </html>
相关文章推荐
- 广告行业抱怨 Safari 的防追踪技术 ITP 太有效,严重影响收入
- 三招禁止迅雷里烦人的广告的方法
- js实现简单的左右两边固定广告效果实例
- 超棒的javascript页面顶部卷动广告效果
- js实现从右向左缓缓浮出网页浮动层广告的方法
- Javascript实现飞动广告效果的方法
- php广告加载类用法实例
- php强制运行广告的方法
- C++实现优酷土豆去视频广告的方法
- JavaScript实现检查页面上的广告是否被AdBlock屏蔽了的方法
- Android开发实现广告无限循环功能示例
- JavaScript实现网页上的浮动广告的简单方法
- JavaScript实现广告的关闭与显示效果实例
- js实现网页右上角滑出会自动消失大幅广告的方法
- Java实现的权重算法(按权重展现广告)
- YinXiangMa_SDK_For_ASP_V2.0接口开发者使用说明
- YinXiangMa_SDK_For_Java_V2.0接口开发者使用说明
- YinXiangMa_SDK_For_DotNet_V2.0接口开发者使用说明
- YinXiangMa_SDK_For_PHP_V3.0接口开发者使用说明
- 成为松松兄弟众筹新书合伙人