兼容IE6的淘宝悬浮工具栏
来源:互联网 发布:赌神风云软件 编辑:程序博客网 时间:2024/06/04 23:27
<!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>
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body,html{margin:0;padding:0;font-size:12px;font-family:Arial;font:12px/1 Helvetica, Tahoma, Arial, /5b8b/4f53, sans-serif;background:url(/100100759.png) fixed}
#float{background:url(http://www.css88.com/wp-content/uploads/2009/10/tb2.png) no-repeat -12px -37px;width:744px;height:34px;border:1px solid #C0DBF8;position:absolute;top:0}
#box{position:relative;height:500px;width:744px;background:#ddd url(http://home.blueidea.com/attachment/201004/9/506384_1270823833Kkk2.jpg) no-repeat;}
</style>
</head>
<body>
<div style="height:300px;background:#eee"></div>
<div id="box"><div id="float" ></div>123</div>
<div style="height:1000px;background:#eee"></div>
</body>
<script type="text/javascript">
var IO=document.getElementById('float'),Y=IO,H=0,IE6;
IE6=window.ActiveXObject&&!window.XMLHttpRequest;
while(Y){H+=Y.offsetTop;Y=Y.offsetParent};
if(IE6)
IO.style.cssText="position:absolute;top:expression(this.fix?(document"+
".documentElement.scrollTop-(this.javascript||"+H+")):0)";
window.onscroll=function (){
var d=document,s=Math.max(d.documentElement.scrollTop,document.body.scrollTop);
if(s>H&&IO.fix||s<=H&&!IO.fix)return;
if(!IE6)IO.style.position=IO.fix?"":"fixed";
IO.fix=!IO.fix;
};
try{document.execCommand("BackgroundImageCache",false,true)}catch(e){};
//]]>
</script>
</html>
- 兼容IE6的淘宝悬浮工具栏
- 仿淘宝悬浮顶部工具栏
- CSS实现div悬浮框的代码(兼容IE6)
- css 悬浮div效果(兼容ie6)
- JS仿淘宝固定悬浮工具栏,兼容性不错
- 仿淘宝悬浮顶部工具栏 之 方法二改进
- 禁止IE6的图像工具栏
- ie6的兼容方法
- 悬浮固定在右下角,会自动隐藏,兼容ie6
- 消除ie6自动出现的图像工具栏
- IE6兼容的一点见解
- IE6 不兼容的解决方案
- 兼容IE6~9的进度条
- AJAX兼容IE6的方法
- 兼容到IE6的进度条
- 不用JS也能让工具栏悬浮于网页顶部(兼容所有浏览器)
- 关于右下角悬浮框的兼容代码
- IE6兼容
- PNG透明处理问题。。感激不尽--仅作备份
- 给web.py加点仿TG的功能
- javascript longtoip
- [转载]gdb常用命令
- DOM4J生成与读取XML文档
- 兼容IE6的淘宝悬浮工具栏
- c# 遍历指定文件夹所有东西 Q_Q
- 详解Windows 2000/XP Class/Port/Miniport驱动模型
- GLSL教程 OpenGL Setup for GLSL 创建着色器程序
- sap创新社区ABAP 学习总结汇总
- 诗 or 歌
- c# 检测优盘插入,U盘拔出!
- 掌握一门语言的标准流程
- emacs的基本操作