Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1416114
  • 博文数量: 264
  • 博客积分: 5810
  • 博客等级: 大校
  • 技术积分: 3528
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-13 17:15
文章分类

全部博文(264)

文章存档

2011年(264)

分类: 系统运维

2011-04-07 09:47:02

HTML源码
  1. <div id="slider">
  2.     <ol class="player">
  3.         <li><a href=""><img src="images/1.gif" alt="1" /></a></li>
  4.         <li><a href=""><img src="images/2.jpg" alt="2" /></a></li>
  5.         <li><a href=""><img src="images/3.jpg" alt="3" /></a></li>
  6.         <li><a href=""><img src="images/4.jpg" alt="4" /></a></li>
  7.         <li><a href=""><img src="images/5.jpg" alt="5" /></a></li>
  8.     </ol>
  9.     <ol class="btns">
  10.         <li>1</li>
  11.         <li>2</li>
  12.         <li>3</li>
  13.         <li>4</li>
  14.         <li>5</li>
  15.     </ol>
  16. </div>
以下是js部分
  1. function Player(btns, scrollContent, imgHeight, timeout, hoverClass) {
  2. /*
  3.  * btns:按钮,类型是数组
  4.  * scrollContent:摇滚动的块,一个DOM对象,这里是ol
  5.  * imgHeight:每一张图片的高度,当然,如果想改成左右滚动,这里传入每一张图片的宽,唯一需要注意的是每一张图片宽高必须相同,图片数量可调整
  6.  * timeout:切换速度快慢,默认为1.5ms
  7.  * hoverClass:每一个按钮激活时的类名
  8. */
  9.     hoverClass = hoverClass || 'active';
  10.     timeout = timeout || 1500;
  11.     this.btns = btns;
  12.     this.scrollContent = scrollContent;
  13.     this.hoverClass = hoverClass;
  14.     this.timeout = timeout;
  15.     this.imgHeight = imgHeight;

  16.     var _this = this;
  17.     for(var i=0; i<btns.length; i++) {
  18.         this.btns[i].index = i;
  19.         btns[i].onmouseover = function() {
  20.             _this.stop();
  21.             _this.invoke(this.index);
  22.         }
  23.         btns[i].onmouseout = function() {
  24.             _this.start();
  25.         }
  26.     }
  27.     this.invoke(0);
  28.     this.isForward = true;
  29.     this.pointer = 0;
  30. }

  31. Player.prototype = {
  32.     constructor : Player,
  33.     start : function() {
  34.         var _this = this;
  35.         this.stop();
  36.         this.intervalId = setInterval(function() {
  37.             _this.next();
  38.         }, this.timeout);
  39.     },
  40.     stop: function() {
  41.         clearInterval(this.intervalId);
  42.     },
  43.     invoke: function(n) {
  44.         this.invoked = n || 0;
  45.         this.clearHover();
  46.         this.btns[this.invoked].className = this.hoverClass;
  47.         //this.scrollContent.style.top = parseInt(-this.imgHeight * this.pointer) + 'px';
  48.         var startVal = parseInt(this.scrollContent.style.top) || 0;
  49.         var alterVal = (parseInt(-startVal - this.imgHeight * this.invoked));
  50.         this.animateIterval && this.animateIterval();//修正快速切换时闪动
  51.         this.animateIterval=animate(this.scrollContent, {top : startVal},{top : alterVal}, 1000, Tween.Quad.easeOut);
  52.         //这里默认设置每张图滚动的总时间是1s
  53.     },
  54.     next: function() {
  55.         if(this.pointer == 0) {
  56.             this.isForward = true;
  57.         }
  58.         if(this.pointer >= this.btns.length) {
  59.             this.isForward = false;
  60.         }
  61.         if(this.isForward) {
  62.             this.invoke(this.pointer++);
  63.         } else {
  64.             this.invoke(--this.pointer);
  65.         }
  66.     },
  67.     clearHover: function() {
  68.         for(var i=0; i<this.btns.length; i++) {
  69.             this.btns[i].className = '';
  70.         };
  71.     }
  72. }

  73. window.onload = function() {
  74.     var btns = getByClass('btns', $('slider'))[0].getElementsByTagName('li');
  75.     var player = getByClass('player', $('slider'))[0];
  76.     var player = new Player(btns, player, 170, 1500, undefined);
  77.     player.start();
  78.     //player.invoke(2);
  79. }
basic.js
  1. /*
  2. *-------------------------获取DOM节点方法---------------------
  3. */

  4. function $(id) {
  5.     return document.getElementById(id);
  6. };

  7. function getByClass(className, context) {
  8. /*
  9.  * 功能说明:
  10.  * 传入类名、节点名(默认document),获取context下类名为classNa的节点
  11.  */
  12.     context = context || document;
  13.     if(context.getElementsByClassName) {
  14.         return context.getElementsByClassName(className);
  15.     } else {
  16.         var nodes = [];
  17.         var tags = context.getElementsByTagName('*');
  18.         for(var i=0, len=tags.length; i<len; i++) {
  19.             if(hasClass(tags[i], className)) {
  20.                 nodes.push(tags[i]);
  21.             }
  22.         }
  23.         return nodes;
  24.     }
  25. }

  26. function hasClass(node, className) {
  27. /*
  28.  * 功能说明:
  29.  * 传入节点及一个类名,检查该节点是否含有传入的类名
  30.  */
  31.     var names = node.className.split(/\s+/);
  32.     for(var i=0, len=names.length; i<len; i++) {
  33.         if(names[i] == className) {
  34.             return true;
  35.         }
  36.     }
  37.     return false;
  38. }

  39. /*function firstChild(node) {//获取node节点的第一个元素节点
  40.     if(node.firstChild) {
  41.         if(node.firstChild.nodeType == 1) {
  42.             return node.firstChild;
  43.         } else {
  44.             var first = node.firstChild;
  45.             while(first = first.nextSibling) {
  46.                 if(first.nodeType == 1) {
  47.                     return first;
  48.                 };
  49.             };
  50.             return null;
  51.         }
  52.     } else {
  53.         return null;
  54.     }
  55. }*/

  56. function getChildNode(superNode, index) {
  57. /*
  58.  * 功能说明:
  59.  * 传入父元素节点,按照index顺序查找子节点,从1开始(注意:只针对元素节点)
  60.  * 如果不传入index或index是0,则返回所有子节点
  61.  */
  62.     if(!superNode.childNodes) return;
  63.     //if (typeof index !== 'number') { alert('请输入数字索引'); return; }
  64.     index = Number(index) || 0;
  65.     var subNodes = [];
  66.     var result = null;
  67.     
  68.     for(var i=0, len=superNode.childNodes.length; i<len; i++) {//得到所有子元素节点
  69.         var node = superNode.childNodes[i];
  70.         if(node.nodeType == 1) {
  71.             subNodes.push(node);
  72.         } else {
  73.             continue;
  74.         }
  75.     }
  76.     
  77.     if(index === 0) {
  78.         result = subNodes;
  79.     } else {
  80.         for(var i= 0; i<subNodes.length; i++) {
  81.             subNodes[i].flag = i + 1;
  82.             if(subNodes[i].flag == index) {
  83.                 result = subNodes[i];
  84.                 break;
  85.             };
  86.         }
  87.     }
  88.     
  89.     return result? result : alert('你输入的索引值对应的子节点不存在!');
  90. }

  91. /*
  92. *---------------------动画函数---------------------------
  93. */

  94. function animate(o,start,alter,dur,fx) {
  95. /*
  96.  * 功能说明:
  97.  * 设置动画
  98.  * o:要设置动画的对象
  99.  * start:开始的对象
  100.  * alter:总的对象
  101.  * dur:动画持续多长时间
  102.  * fx:动画类型
  103.  */
  104.     var curTime=0;
  105.     var t=setInterval(function () {
  106.         if (curTime>=dur) clearInterval(t);
  107.         for (var i in start) {
  108.             o.style[i]=fx(start[i],alter[i],curTime,dur)+"px";
  109.         }
  110.         curTime+=40;
  111.         
  112.     },40);
  113.     return function () {
  114.         clearInterval(t);
  115.     };
  116. }

  117. function opacityAnimate(obj, start, alter, dur, fx) {
  118. /*
  119.  * 功能说明:
  120.  * 设置对象的透明动画,start为动画起点,alter为动画终点,dur为总变化时间,
  121.  * fx为动画类型,Linear表示匀速、Quad表示变速
  122.  */
  123.     var curTime = 0;

  124.     var intervalId = setInterval(function() {
  125.         if(curTime >= dur) {
  126.             clearInterval(intervalId);
  127.         }
  128.         setOpacity(obj, fx(start, alter, curTime, dur));
  129.         curTime += 50;
  130.     }, 50);
  131. }

  132. var setOpacity = (document.documentElement.filters) ? function(obj, val) {
  133. /*
  134.  * 功能说明:
  135.  * 设置掺入对象obj的opicity透明度为指定值val
  136.  */
  137.     obj.style.filter = "filter: alpha(opacity=" + val + ")";
  138. } : function(obj, val) {
  139.     obj.style.opacity = val/100;
  140. }

  141. var Tween = {
  142. /*
  143.  * 功能说明:
  144.  * 加速运动
  145.  * curTime:当前时间,即动画已经进行了多长时间,开始时间为0
  146.  * start:开始值
  147.  * alter:总的变化量
  148.  * dur:动画持续多长时间
  149.  */
  150.     Linear:function (start,alter,curTime,dur) {return start+curTime/dur*alter;},//最简单的线性变化,即匀速运动
  151.     Quad:{//二次方缓动
  152.         easeIn:function (start,alter,curTime,dur) {
  153.             return start+Math.pow(curTime/dur,2)*alter;
  154.         },
  155.         easeOut:function (start,alter,curTime,dur) {
  156.             var progress =curTime/dur;
  157.             return start-(Math.pow(progress,2)-2*progress)*alter;
  158.         },
  159.         easeInOut:function (start,alter,curTime,dur) {
  160.             var progress =curTime/dur*2;
  161.             return (progress<1?Math.pow(progress,2):-((--progress)*(progress-2) - 1))*alter/2+start;
  162.         }
  163.     },
  164.     Cubic:{//三次方缓动
  165.         easeIn:function (start,alter,curTime,dur) {
  166.             return start+Math.pow(curTime/dur,3)*alter;
  167.         },
  168.         easeOut:function (start,alter,curTime,dur) {
  169.             var progress =curTime/dur;
  170.             return start-(Math.pow(progress,3)-Math.pow(progress,2)+1)*alter;
  171.         },
  172.         easeInOut:function (start,alter,curTime,dur) {
  173.             var progress =curTime/dur*2;
  174.             return (progress<1?Math.pow(progress,3):((progress-=2)*Math.pow(progress,2) + 2))*alter/2+start;
  175.         }
  176.     },
  177.     Quart:{//四次方缓动
  178.         easeIn:function (start,alter,curTime,dur) {
  179.             return start+Math.pow(curTime/dur,4)*alter;
  180.         },
  181.         easeOut:function (start,alter,curTime,dur) {
  182.             var progress =curTime/dur;
  183.             return start-(Math.pow(progress,4)-Math.pow(progress,3)-1)*alter;
  184.         },
  185.         easeInOut:function (start,alter,curTime,dur) {
  186.             var progress =curTime/dur*2;
  187.             return (progress<1?Math.pow(progress,4):-((progress-=2)*Math.pow(progress,3) - 2))*alter/2+start;
  188.         }
  189.     },
  190.     Quint:{//五次方缓动
  191.         easeIn:function (start,alter,curTime,dur) {
  192.             return start+Math.pow(curTime/dur,5)*alter;
  193.         },
  194.         easeOut:function (start,alter,curTime,dur) {
  195.             var progress =curTime/dur;
  196.             return start-(Math.pow(progress,5)-Math.pow(progress,4)+1)*alter;
  197.         },
  198.         easeInOut:function (start,alter,curTime,dur) {
  199.             var progress =curTime/dur*2;
  200.             return (progress<1?Math.pow(progress,5):((progress-=2)*Math.pow(progress,4) +2))*alter/2+start;
  201.         }
  202.     },
  203.     Sine :{//正弦曲线缓动
  204.         easeIn:function (start,alter,curTime,dur) {
  205.             return start-(Math.cos(curTime/dur*Math.PI/2)-1)*alter;
  206.         },
  207.         easeOut:function (start,alter,curTime,dur) {
  208.             return start+Math.sin(curTime/dur*Math.PI/2)*alter;
  209.         },
  210.         easeInOut:function (start,alter,curTime,dur) {
  211.             return start-(Math.cos(curTime/dur*Math.PI/2)-1)*alter/2;
  212.         }
  213.     },
  214.     Expo: {//指数曲线缓动
  215.         easeIn:function (start,alter,curTime,dur) {
  216.             return curTime?(start+alter*Math.pow(2,10*(curTime/dur-1))):start;
  217.         },
  218.         easeOut:function (start,alter,curTime,dur) {
  219.             return (curTime==dur)?(start+alter):(start-(Math.pow(2,-10*curTime/dur)+1)*alter);
  220.         },
  221.         easeInOut:function (start,alter,curTime,dur) {
  222.             if (!curTime) {return start;}
  223.             if (curTime==dur) {return start+alter;}
  224.             var progress =curTime/dur*2;
  225.             if (progress < 1) {
  226.                 return alter/2*Math.pow(2,10* (progress-1))+start;
  227.             } else {
  228.                 return alter/2* (-Math.pow(2, -10*--progress) + 2) +start;
  229.             }
  230.         }
  231.     },
  232.     Circ :{//圆形曲线缓动
  233.         easeIn:function (start,alter,curTime,dur) {
  234.             return start-alter*Math.sqrt(-Math.pow(curTime/dur,2));
  235.         },
  236.         easeOut:function (start,alter,curTime,dur) {
  237.             return start+alter*Math.sqrt(1-Math.pow(curTime/dur-1));
  238.         },
  239.         easeInOut:function (start,alter,curTime,dur) {
  240.             var progress =curTime/dur*2;
  241.             return (progress<1?1-Math.sqrt(1-Math.pow(progress,2)):(Math.sqrt(1 - Math.pow(progress-2,2)) + 1))*alter/2+start;
  242.         }
  243.     },
  244.     Elastic: {//指数衰减的正弦曲线缓动
  245.         easeIn:function (start,alter,curTime,dur,extent,cycle) {
  246.             if (!curTime) {return start;}
  247.             if ((curTime==dur)==1) {return start+alter;}
  248.             if (!cycle) {cycle=dur*0.3;}
  249.             var s;
  250.             if (!extent || extent< Math.abs(alter)) {
  251.                 extent=alter;
  252.                 s = cycle/4;
  253.             } else {s=cycle/(Math.PI*2)*Math.asin(alter/extent);}
  254.             return start-extent*Math.pow(2,10*(curTime/dur-1)) * Math.sin((curTime-dur-s)*(2*Math.PI)/cycle);
  255.         },
  256.         easeOut:function (start,alter,curTime,dur,extent,cycle) {
  257.             if (!curTime) {return start;}
  258.             if (curTime==dur) {return start+alter;}
  259.             if (!cycle) {cycle=dur*0.3;}
  260.             var s;
  261.             if (!extent || extent< Math.abs(alter)) {
  262.                 extent=alter;
  263.                 s =cycle/4;
  264.             } else {s=cycle/(Math.PI*2)*Math.asin(alter/extent);}
  265.             return start+alter+extent*Math.pow(2,-curTime/dur*10)*Math.sin((curTime-s)*(2*Math.PI)/cycle);
  266.         },
  267.         easeInOut:function (start,alter,curTime,dur,extent,cycle) {
  268.             if (!curTime) {return start;}
  269.             if (curTime==dur) {return start+alter;}
  270.             if (!cycle) {cycle=dur*0.45;}
  271.             var s;
  272.             if (!extent || extent< Math.abs(alter)) {
  273.                 extent=alter;
  274.                 s =cycle/4;
  275.             } else {s=cycle/(Math.PI*2)*Math.asin(alter/extent);}
  276.             var progress = curTime/dur*2;
  277.             if (progress<1) {
  278.                 return start-0.5*extent*Math.pow(2,10*(progress-=1))*Math.sin( (progress*dur-s)*(2*Math.PI)/cycle);
  279.             } else {
  280.                 return start+alter+0.5*extent*Math.pow(2,-10*(progress-=1)) * Math.sin( (progress*dur-s)*(2*Math.PI)/cycle);
  281.             }
  282.         }
  283.     },
  284.     Back:{
  285.         easeIn: function (start,alter,curTime,dur,s){
  286.             if (typeof s == "undefined") {s = 1.70158;}
  287.             return start+alter*(curTime/=dur)*curTime*((s+1)*curTime - s);
  288.         },
  289.         easeOut: function (start,alter,curTime,dur,s) {
  290.             if (typeof s == "undefined") {s = 1.70158;}
  291.             return start+alter*((curTime=curTime/dur-1)*curTime*((s+1)*curTime + s) + 1);
  292.         },
  293.         easeInOut: function (start,alter,curTime,dur,s){
  294.             if (typeof s == "undefined") {s = 1.70158;}
  295.             if ((curTime/=dur/2) < 1) {
  296.                 return start+alter/2*(Math.pow(curTime,2)*(((s*=(1.525))+1)*curTime- s));
  297.             }
  298.             return start+alter/2*((curTime-=2)*curTime*(((s*=(1.525))+1)*curTime+ s)+2);
  299.         }
  300.     },
  301.     Bounce:{
  302.         easeIn: function(start,alter,curTime,dur){
  303.             return start+alter-Tween.Bounce.easeOut(0,alter,dur-curTime,dur);
  304.         },
  305.         easeOut: function(start,alter,curTime,dur){
  306.             if ((curTime/=dur) < (1/2.75)) {
  307.                 return alter*(7.5625*Math.pow(curTime,2))+start;
  308.             } else if (curTime < (2/2.75)) {
  309.                 return alter*(7.5625*(curTime-=(1.5/2.75))*curTime + .75)+start;
  310.             } else if (curTime< (2.5/2.75)) {
  311.                 return alter*(7.5625*(curTime-=(2.25/2.75))*curTime + .9375)+start;
  312.             } else {
  313.                 return alter*(7.5625*(curTime-=(2.625/2.75))*curTime + .984375)+start;
  314.             }
  315.         },
  316.         easeInOut: function (start,alter,curTime,dur){
  317.             if (curTime< dur/2) {
  318.                 return Tween.Bounce.easeIn(0,alter,curTime*2,dur) *0.5+start;
  319.             } else {
  320.                 return Tween.Bounce.easeOut(0,alter,curTime*2-dur,dur) *0.5 + alter*0.5 +start;
  321.             }
  322.         }
  323.     }
  324. };
HTML
  1. <!DOCTYPE HTML>
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=UTF-8">


  4. <meta charset="utf-8">
  5. <title>淘宝首页图片轮播效果</title>
  6. <style>

  7. </style>
  8. <script type="text/javascript" src="demo_files/basic.js"></script>
  9. <script>
  10. //<![CDATA[
  11. function Player(btns, scrollContent, imgHeight, timeout, hoverClass) {
  12. /*
  13.  * btns:按钮,类型是数组
  14.  * scrollContent:摇滚动的块,一个DOM对象,这里是ol
  15.  * imgHeight:每一张图片的高度,当然,如果想改成左右滚动,这里传入每一张图片的宽,唯一需要注意的是每一张图片宽高必须相同,图片数量可调整
  16.  * timeout:切换速度快慢,默认为1.5ms
  17.  * hoverClass:每一个按钮激活时的类名
  18. */
  19.     hoverClass = hoverClass || 'active';
  20.     timeout = timeout || 1500;
  21.     this.btns = btns;
  22.     this.scrollContent = scrollContent;
  23.     this.hoverClass = hoverClass;
  24.     this.timeout = timeout;
  25.     this.imgHeight = imgHeight;

  26.     var _this = this;
  27.     for(var i=0; i<btns.length; i++) {
  28.         this.btns[i].index = i;
  29.         btns[i].onmouseover = function() {
  30.             _this.stop();
  31.             _this.invoke(this.index);
  32.         }
  33.         btns[i].onmouseout = function() {
  34.             _this.start();
  35.         }
  36.     }
  37.     this.invoke(0);
  38.     this.isForward = true;
  39.     this.pointer = 0;
  40. }

  41. Player.prototype = {
  42.     constructor : Player,
  43.     start : function() {
  44.         var _this = this;
  45.         this.stop();
  46.         this.intervalId = setInterval(function() {
  47.             _this.next();
  48.         }, this.timeout);
  49.     },
  50.     stop: function() {
  51.         clearInterval(this.intervalId);
  52.     },
  53.     invoke: function(n) {
  54.         this.invoked = n || 0;
  55.         this.clearHover();
  56.         this.btns[this.invoked].className = this.hoverClass;
  57.         //this.scrollContent.style.top = parseInt(-this.imgHeight * this.pointer) + 'px';
  58.         var startVal = parseInt(this.scrollContent.style.top) || 0;
  59.         var alterVal = (parseInt(-startVal - this.imgHeight * this.invoked));
  60.         this.animateIterval && this.animateIterval();//修正快速切换时闪动
  61.         this.animateIterval=animate(this.scrollContent, {top : startVal},{top : alterVal}, 1000, Tween.Quad.easeOut);
  62.         //这里默认设置每张图滚动的总时间是1s
  63.     },
  64.     next: function() {
  65.         if(this.pointer == 0) {
  66.             this.isForward = true;
  67.         }
  68.         if(this.pointer >= this.btns.length) {
  69.             this.isForward = false;
  70.         }
  71.         if(this.isForward) {
  72.             this.invoke(this.pointer++);
  73.         } else {
  74.             this.invoke(--this.pointer);
  75.         }
  76.     },
  77.     clearHover: function() {
  78.         for(var i=0; i<this.btns.length; i++) {
  79.             this.btns[i].className = '';
  80.         };
  81.     }
  82. }

  83. window.onload = function() {
  84.     var btns = getByClass('btns', $('slider'))[0].getElementsByTagName('li');
  85.     var player = getByClass('player', $('slider'))[0];
  86.     var player = new Player(btns, player, 170, 1500, undefined);
  87.     player.start();
  88.     //player.invoke(2);
  89. }
  90. //]]>
  91. </script>
  92. <style type="text/css" charset="utf-8">/* See license.txt for terms of usage */

  93. .firebugCanvas {

  94.     position:fixed;

  95.     top: 0;

  96.     left: 0;

  97.     display:none;

  98.     border: 0 none;

  99.     margin: 0;

  100.     padding: 0;

  101.     outline: 0;

  102. }



  103. .firebugCanvas:before, .firebugCanvas:after {

  104.     content: "";

  105. }



  106. .firebugHighlight {

  107.     z-index: 2147483646;

  108.     position: fixed;

  109.     background-color: #3875d7;

  110.     margin: 0;

  111.     padding: 0;

  112.     outline: 0;

  113.     border: 0 none;

  114. }



  115. .firebugHighlight:before, .firebugHighlight:after {

  116.     content: "";

  117. }



  118. .firebugLayoutBoxParent {

  119.     z-index: 2147483646;

  120.     position: fixed;

  121.     background-color: transparent;

  122.     border-top: 0 none;

  123.     border-right: 1px dashed #E00 !important;

  124.     border-bottom: 1px dashed #E00 !important;

  125.     border-left: 0 none;

  126.     margin: 0;

  127.     padding: 0;

  128.     outline: 0;

  129. }



  130. .firebugRuler {

  131.     position: absolute;

  132.     margin: 0;

  133.     padding: 0;

  134.     outline: 0;

  135.     border: 0 none;

  136. }



  137. .firebugRuler:before, .firebugRuler:after {

  138.     content: "";

  139. }



  140. .firebugRulerH {

  141.     top: -15px;

  142.     left: 0;

  143.     width: 100%;

  144.     height: 14px;

  145.     background: url("data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%13%88%00%00%00%0E%08%02%00%00%00L%25a%0A%00%00%00%04gAMA%00%00%D6%D8%D4OX2%00%00%00%19tEXtSoftware%00Adobe%20ImageReadyq%C9e%3C%00%00%04%F8IDATx%DA%EC%DD%D1n%E2%3A%00E%D1%80%F8%FF%EF%E2%AF2%95%D0D4%0E%C1%14%B0%8Fa-%E9%3E%CC%9C%87n%B9%81%A6W0%1C%A6i%9A%E7y%0As8%1CT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*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AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*UiU%C7%BBe%E7%F3%B9%CB%AAJ%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5J%95*U%AAT%A9R%A5*%AAj%FD%C6%D4%5Eo%90%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5%86%AF%1B%9F%98%DA%EBm%BBV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%ADV%AB%D5j%B5Z%AD%D6%E4%F58%01%00%00%00%00%00%00%00%00%00%00%00%00%00%40%85%7F%02%0C%008%C2%D0H%16j%8FX%00%00%00%00IEND%AEB%60%82") repeat-x;

  146.     border-top: 1px solid #BBBBBB;

  147.     border-right: 1px dashed #BBBBBB;

  148.     border-bottom: 1px solid #000000;

  149. }



  150. .firebugRulerV {

  151.     top: 0;

  152.     left: -15px;

  153.     width: 14px;

  154.     height: 100%;

  155.     background: url("data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%0E%00%00%13%88%08%02%00%00%00%0E%F5%CB%10%00%00%00%04gAMA%00%00%D6%D8%D4OX2%00%00%00%19tEXtSoftware%00Adobe%20ImageReadyq%C9e%3C%00%00%06~IDATx%DA%EC%DD%D1v%A20%14%40Qt%F1%FF%FF%E4%97%D9%07%3BT%19%92%DC%40(%90%EEy%9A5%CB%B6%E8%F6%9Ac%A4%CC0%84%FF%DC%9E%CF%E7%E3%F1%88%DE4%F8%5D%C7%9F%2F%BA%DD%5E%7FI%7D%F18%DDn%BA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-Z%B4h%D1%A2EKe%98-Z%B4h%D1%A2EKe%D02%5B%B4h%D1%A2EKe%D02%5B%B4h%D1%A2E%8B%96%CA0%5B%B4h%D1%A2E%8B%96%CA%A0e%B6h%D1%A2E%8B%96%CA%A0e%B6h%D1%A2E%8B%16-%95a%B6h%D1%A2E%8B%16-%95A%CBl%D1%A2E%8B%16-%95A%CBl%D1%A2E%8B%16-Z*%C3l%D1%A2E%8B%16-Z*%83%96%D9%A2E%8B%16-Z*%83%96%D9%A2E%8B%16-Z%B4T%86%D9%A2E%8B%16-Z%B4T%06-%B3E%8B%16-Z%B4%AE%A4%F5%25%C0%00%DE%BF%5C'%0F%DA%B8q%00%00%00%00IEND%AEB%60%82") repeat-y;

  156.     border-left: 1px solid #BBBBBB;

  157.     border-right: 1px solid #000000;

  158.     border-bottom: 1px dashed #BBBBBB;

  159. }



  160. .overflowRulerX > .firebugRulerV {

  161.     left: 0;

  162. }



  163. .overflowRulerY > .firebugRulerH {

  164.     top: 0;

  165. }



  166. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

  167. .firebugLayoutBox {

  168.     margin: 0;

  169.     padding: 0;

  170.     border: 0 none;

  171.     outline: 0;

  172. }



  173. .firebugLayoutBox:before, .firebugLayoutBox:after {

  174.     content: "";

  175. }



  176. .firebugLayoutBoxOffset {

  177.     z-index: 2147483646;

  178.     position: fixed;

  179.     opacity: 0.8;

  180. }



  181. .firebugLayoutBoxMargin {

  182.     background-color: #EDFF64;

  183. }



  184. .firebugLayoutBoxBorder {

  185.     background-color: #666666;

  186. }



  187. .firebugLayoutBoxPadding {

  188.     background-color: SlateBlue;

  189. }



  190. .firebugLayoutBoxContent {

  191.     background-color: SkyBlue;

  192. }



  193. .firebugLayoutLine {

  194.     z-index: 2147483646;

  195.     background-color: #000000;

  196.     opacity: 0.4;

  197.     margin: 0;

  198.     padding: 0;

  199.     outline: 0;

  200.     border: 0 none;

  201. }



  202. .firebugLayoutLine:before, .firebugLayoutLine:after {

  203.     content: "";

  204. }



  205. .firebugLayoutLineLeft, .firebugLayoutLineRight {

  206.     position: fixed;

  207.     width: 1px;

  208.     height: 100%;

  209. }



  210. .firebugLayoutLineTop, .firebugLayoutLineBottom {

  211.     position: fixed;

  212.     width: 100%;

  213.     height: 1px;

  214. }



  215. .firebugLayoutLineTop {

  216.     margin-top: -1px;

  217.     border-top: 1px solid #999999;

  218. }



  219. .firebugLayoutLineRight {

  220.     border-right: 1px solid #999999;

  221. }



  222. .firebugLayoutLineBottom {

  223.     border-bottom: 1px solid #999999;

  224. }



  225. .firebugLayoutLineLeft {

  226.     margin-left: -1px;

  227.     border-left: 1px solid #999999;

  228. }



  229. .fbProxyElement {

  230.     position: absolute;

  231.     background-color: transparent;

  232.     z-index: 2147483646;

  233.     margin: 0;

  234.     padding: 0;

  235.     outline: 0;

  236.     border: 0 none;

  237. }

  238. </style></head><body>
  239. <div id="slider">
  240.     <ol style="top: -312.8px;" class="player">
  241.         <li><a href=""><img src="demo_files/1.gif" alt="1"></a></li>
  242.         <li><a href=""><img src="demo_files/2.jpg" alt="2"></a></li>
  243.         <li><a href=""><img src="demo_files/3.jpg" alt="3"></a></li>
  244.         <li><a href=""><img src="demo_files/4.jpg" alt="4"></a></li>
  245.         <li><a href=""><img src="demo_files/5.jpg" alt="5"></a></li>
  246.     </ol>
  247.     <ol class="btns">
  248.         <li class="">1</li>
  249.         <li class="">2</li>
  250.         <li class="active">3</li>
  251.         <li class="">4</li>
  252.         <li class="">5</li>
  253.     </ol>
  254. </div>
  255. </body></html>


阅读(13993) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

yaofang1232011-04-07 13:09:56

沉淀的五年