哦 耶 <!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=gb2312" /> <title></title> <style type="text/css"> #container { height:200px; _height:198px; width:385px; border:1px solid #CCCCCC; } #container #content{ height:200px; width:370px; float:left; overflow:hidden; } #container #content div{ margin-top:4px; margin-left:4px; height:16px; font-size:14px; color:#666666; width:100%; } #container #scroll{ height:200px; width:15px; float:right; } /*=========================================================*/ #container1 { height:200px; width:400px; _width:398px; border:1px solid #999999; } #container1 #content1{ height:180px; width:400px; overflow:hidden; } #container1 #content1 td{ height:180px; width:200px; } #container1 #content1 td img{ height:180px; width:200px; } #container1 #scroll1{ height:20px; width:400px; } #container1 #scroll1 #block1{ width:20px; height:20px; background-color:#990000; position:absolute; } /*====================================================================*/ table div{height:20px; font-size:13px; margin-top:5px; color:#333333; font-weight:bold} .img{background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090902/232151437.p.gif); height:18px; width:78px; background-position:-14px -21px; } </style> </head> <body style=" padding:30px; margin:0px;"> <br> <div id='iii' style=" width:600px; height:23px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090602/171203276.p.gif)" ><img id='ii' src='http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090602/171041823.p.gif' style="position: absolute; margin-top:3px;"></div> <div id='ss'>0%</div> <br> <div> <div style="background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/103129203.p.gif); width:26px; height:34px;"></div> <div id="yy1" style="background:transparent url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/103129125.p.gif) no-repeat scroll center center; width:20px; height:161px; margin-left:4px; "> <div id='yy2' style=" background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/103129000.p.gif); height:22px; width:20px; position:absolute"></div> </div> <div style=" background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/103128390.p.gif); width:26px; height:34px;"></div> </div> <div id='sss'>0%</div> <br> <div style=" width:840px; height:216px;background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095637625.p.gif);border:2px solid #b50000; border-top:none;"> <div id="container3" style="width:740px; height:216px; margin:0 auto; "> <div style="height:180px; width:100%; overflow:hidden;"> <table width="3150" height="180" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638546.p.jpg"> <div >QQ会员开通紫钻三折起</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638437.p.jpg"> <div>中秋佳节QQ会员祝福连连</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095637812.p.jpg"> <div>QQ会员2折扣购买机票</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638484.p.jpg"> <div>会员免费《地下城与勇士》</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095637937.p.jpg"> <div>QQ会员卓越网最新购物特权</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095637859.p.jpg"> <div>幸福靓号活动-拥抱情人节</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638296.p.jpg"> <div>与会员DNF天王共赴百万庆典</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638000.p.jpg"> <div>QQ会员妆点商城购物有特权</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638343.p.jpg"> <div>会员官方店圣诞专辑多重好礼</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638390.p.jpg"> <div>最新靓号-双"旦"靓相属你最牛</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638078.p.jpg"> <div>QQ会员 《穿越火线》特权专区</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638171.p.jpg"> <div>QQ会员尊享ELLE四重礼特权</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638203.p.jpg"> <div>QQ会员独享《华夏》游戏特权</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638265.p.jpg"> <div>QQ会员尊享《寻仙》游戏特权</div> <div class="img"></div> </td> <td width="210" align="center"> <img src="http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090901/095638296.p.jpg"> <div>与会员DNF天王共赴百万庆典</div> <div class="img"></div> </td> </tr> </table> </div> <div style="height:auto; width:660px;margin:0 auto;"> <div id='la' style=" font-size:0px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090902/232151437.p.gif); height:20px; width:30px; background-position:-182px 0px; float:left; "></div> <div id="scroll3" style="font-size:0px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090902/232151437.p.gif);height:20px; width:600px; background-position:0px -226px; float:left; "> <div id ="block3" style="background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090902/232151437.p.gif); height:20px; width:162px; background-position:-14px 0px; position:absolute "></div> </div> <div id='r' style=" font-size:0px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090902/232151437.p.gif); height:20px; width:30px; background-position:-216px 0px; float:left; "></div> </div> </div> </div> <br> <div id="container"> <div id="content"> <div>人族</div> <div>SKY流--强大的中国选手人皇sky的成名绝技</div> <div>KUA流--多不兵配合MK,前期可谓遇佛神通杀</div> <div>3法流--好象只是很好打兽族,打精灵还得配合小炮</div> <div>骑士狮鸠流--配合圣骑的3级光环全防心灵之火,绝对bug</div> <div>飘逸流--3蛋的成名绝技,首发圣骑,打得亡灵一般没的脾气</div> <div>机械流--飞机加坦克,曾经风靡一时,moon也吃亏无数</div> <div>万精油--3发+火枪+小炮,不变应万变的打法</div> <div>兽族</div> <div>跑狼骑--狼骑的高速移动,城攻与网,拆家起来无人能敌</div> <div>速飞龙--比较投机的打法,一旦投机成功,对方可以直接gg</div> <div>黑白牛--配合撒满,高攻,高防,高攻速,高血,无限复活</div> <div>白牛海--适合内战,无限复活且20的攻击打兽身上2倍加成</div> <div>XXXX流--猎头+巫医+撒满,orc时代的bug,如今很难看到</div> <div>万精油--大G+狼骑+白牛+科多,最常规的打法</div> <div>不死族</div> <div>蜘蛛流--蜘蛛的高功,加上不死英雄的强大魔法,强</div> <div>冰甲蜘蛛流--主要对抗兽族,让蜘蛛,亡骑更难打.</div> <div>西瓜流--中国天灾Ted的成名绝技,女妖给兵套个盾,象西瓜</div> <div>天地双鬼--有段时间一直被精灵认为是bug.</div> <div>胖子毁灭--高攻,高防,高血,且无视魔法效果</div> <div>骷髅海--可以看到满天的骷髅大军(驱散法师小精灵完克)</div> <div>精灵族</div> <div>女猎流1--NEvsNE,一般虎MM配合大量女猎,全是MM.</div> <div>女猎流2--NEvsHUM,SM女王配合大量女猎克制人族速矿</div> <div>吹风流--曾经的兽族客星,华丽,飘逸,==</div> <div>大树流--很多很多大树配合很多很多的ac,场面壮观</div> <div>弩车流--基本只有耳闻没见过</div> <div>乱矿流--Moon的成名绝技,一个矿被拆了,2个矿起来了</div> <div>三远流--ACMM+鹿MM+得鲁伊大叔,把任何物体射成马蜂窝</div> </div> <div id="scroll"> <div id='p1' style="font-size:0px; height:17px; width:15px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/145213218.p.gif); background-position:-15px 0; margin:0px;"></div> <div id="eee" style="font-size:0px; height:166px; width:15px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/145213218.p.gif); background-position:-30px 0; "> <div id="block" style="font-size:0px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/145213218.p.gif); background-position:-45px 0; position:absolute; height:17px; width:15px; "> </div> </div> <div id='p2' style="font-size:0px; height:17px; width:15px; background-image:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090831/145213218.p.gif); background-position:0 0;margin:0px;"></div> </div> </div> <br> <div style="background:url(http://album.hi.youkuaiyun.com/app_uploads/wtcsy/20090909/111957390.p.jpg) no-repeat; width:550px; height:520px; padding:1px;"> <div id='con1' style="height:350px; width:300px; margin-left:50px; margin-top:50px;"> <div id='ccc1' style=" margin-top:10px; margin-left:5px; height:330px; width:260px; font-size:14px;; color:#054c68; float:left; overflow:hidden"> <span style="font-size:16px; font-weight:bold">1.身世</span><br> 我爱罗是第四代风影之子,也是手鞠和勘九郎的弟弟。<br> 当他出世时,因为砂隐忍者村资金短缺,在他的父亲的指示下,一尾守鹤被封印在我爱罗的体内,目的是为了让他成为保护村庄的强大武器。忧郁的<br> 由于这样做需要作出牺牲,我爱罗的母亲因此成了牺牲品。<br> 我爱罗由他的舅父夜叉丸养大,并由他的父亲传授忍术。由于我爱罗具备守鹤的可怕力量,村子的人憎恨和惧怕他。<br> 夜叉丸是唯一关照他的人,也只有夜叉丸了解我爱罗的心里其实并不想伤害任何人。可是他的父亲第四代风影并不这么想,他一直视我爱罗为村庄的一个巨大威胁。 于是第四代风影不断地派杀手刺杀我爱罗,可是没有一次成功。最后第四代风影只好叫夜叉丸下手。夜叉丸执行命令时死在我爱罗的手上。当我爱罗发现来杀他的杀手竟然是夜叉丸时感到异常震惊和悲伤。夜叉丸死前将真相告诉我爱罗,其实他从来就没有喜欢过我爱罗。他这样做只是希望能够为他的姐姐(我爱罗的母亲)报仇。夜叉丸把许多炸药绑在身上,希望和我爱罗同归于尽。由于砂子的保护,我爱罗活了下来。意识到没有人喜欢他,我爱罗逐渐地转变成一个没有感情的人,发誓只为自己而活,从杀人中寻找乐趣,并用沙子在额头上刻了“爱”字。<br> 由于惧怕他体内的怪兽会占据他的心灵,我爱罗从小患了失眠症,这是为什么他的眼圈是黑的缘故。平时背上背负著一个巨大的葫芦,当危机出现时,葫芦中的砂子会自动保护我爱罗。<br><br> <span style="font-size:16px; font-weight:bold">2.忍术</span><br> ·绝对防御:随身携带一部分带有查克拉的砂子,随时形成防御<br> ·砂分身:用沙子造出一个分身<br> ·砂瞬身:用沙子移动<br> ·砂缚柩:以沙迅速靠近对手将目标包在沙内无法行动,然后用强大的压力将对手压死。<br> ·砂时雨:将沙漫布于空中,然后集中一点落下以配合下一式<br> ·砂手里剑:在沙中注入查克拉使之硬化,快速放出<br> ·砂之铠甲:长期将魔沙覆盖于身体表面起到防御作用<br> ·砂之守护Ⅰ:沙不需要我爱罗的意识自行保护<br> ·守鹤半觉醒:出现一个大沙球,将自己包住,有敌人进攻沙子会自动反击。<br> ·守鹤之盾:最强的终极防御术!将地下石矿中最坚硬的部分混合查克拉制成。可以抵消一切攻击。用地下最强的矿物质加查克拉做成沙瀑枪葬的盾。<br> ·守鹤之矛:最强的终极攻击术!与守鹤之盾相匹配。曾用此招将[匠忍者村]的始祖击毙<br> ·砂瀑送葬:用沙将对手压死,用于被沙缚柩困住的对手出招<br> ·流沙瀑流:大面积操纵沙控制对手以配合砂瀑大葬<br> ·砂瀑大葬:沙暴送葬强化版,范围扩大到一平方公里<br> ·砂瀑枪葬:最硬绝对攻击! 用沙以棱台形包住对手,然后用巨型守鹤之矛击中对手,这招消耗在沙中注入查克拉使之硬化,快速放出查克拉特别大,杀伤力强。<br> ·砂流葬:控制目标下方的沙,制成流沙,将目标陷入地下200米处压死 灭砂瀑葬<br> ·灭砂瀑葬:在沙地上开出巨大裂口,使对手陷入沙层以下。当沙子完全埋没后,将查克拉<br> 集中于左手,使沙子放射出与地震般强大的震感爆炸力,杀伤力极强<br> ·砂缚牢:沙缚柩扩大版.将困住对手的沙缚柩浮于半空利用周围的风沙配合查克拉进行方型式四面扭曲、挤压,最后爆破沙牢<br> ·假寐之术(狸寝术):催眠术,让自己深度沉睡,以爆发出守鹤<br> ·砂之眼:在被完全包裹住自己时,为了探清外面的情况做了一个眼睛。但是这不是普通的沙眼,和视神经是连接的<br> ·砂雷针:剧场版『幻之地底遗迹』中我爱罗使用的绝招,将沙子做成针状散布在敌人四周,产生雷电攻击敌人<br> .风遁·无限砂尘大突破:风遁混杂着沙子,攻击大范围内的敌人<br> .风遁·练空弹:用大量查克拉压缩做成的空气波攻击敌人<br> ·砂漠浮游:利用沙将自己及李洛克升到空中,以避过君麻吕恐怖之术-早蕨之舞(把大地化为尸骨)<br> ·沙瀑意流:将大片的岩石化为沙子<br> ·砂尘双击 <br> ·砂尘冥柩 <br> 沙阵雨:,可使对手的脚无法动<br> </div> <div id='sss1' style="float:right; margin-right:12px; margin-top:10px; height:330px; width:15px; "> <div id="bbb1" style=" position:absolute; height:10px; line-height:10px; width:15px; background-color:#c6e7f4;"> </div> </div> <div style="clear:both"></div> </div> </div> <script language="javascript"> document.all&&document.execCommand("BackgroundImageCache", false, true); // var ua = navigator.userAgent.toLowerCase(); var Sys = { IE : navigator.userAgent.toLowerCase().match(/msie ([/d.]+)/), Firefox : navigator.userAgent.toLowerCase().match(/firefox//([/d.]+)/), Chrome : navigator.userAgent.toLowerCase().match(/chrome//([/d.]+)/), IE6 : this.IE && ([/MSIE (/d)/.0/i.exec(navigator.userAgent)][0][1] == 6) } function $(Id){return document.getElementById(Id)}; function $$(p,e){return p.getElementsByTagName(e)}; function addListener(element,e,fn){ element.addEventListener?element.addEventListener(e,fn,false):element.attachEvent("on" + e,fn)}; function removeListener(element,e,fn){ element.removeEventListener?element.removeEventListener(e,fn,false):element.detachEvent("on" + e,fn)}; function create(elm,parent,fn){var element = document.createElement(elm);parent.appendChild(element);if(fn)fn(element);}; function getobjpos(el,left){ var val = 0; while (el !=null) { val += el["offset" + (left? "Left": "Top")]; el = el.offsetParent; } return val; }; var CurrentStyle = function(element){return element.currentStyle || document.defaultView.getComputedStyle(element, null);}; // var isIE = document.all?true:false; var Bind = function(object, fun) { return function() { return fun.apply(object, arguments); } }; var BindAsEventListener = function(object, fun) { return function(event) { return fun.call(object, (event || window.event)); } }; var Tween = { Linear: function(t,b,c,d){ return c*((t=t/d-1)*t*t*t*t + 1) + b; } } var Extend = function() { var args = arguments; if(!args[1])args = [this,args[0]]; for(var property in args[1])args[0][property] = args[1][property]; return args[0]; }; var Class = function(properties){ var _class = function(){return (arguments[0] !== null && this.initialize && typeof(this.initialize) == 'function') ? this.initialize.apply(this, arguments) : this;}; _class.prototype = properties; return _class; }; var Drag = new Class({ options:{ Custom : false, Customdiv : null, Limit : false, mxLeft : 0, mxRight : 9999, mxTop : 0, mxBottom : 9999, Noscroll : false, mxContainer : null, LockX : false, LockY : false, zIndex : 2, Onstart : function(){}, Onmove : function(){}, Onstop : function(){} }, initialize:function(obj,options){ this._obj = obj; this._x = 0; this._y = 0; this._marginLeft = 0; this._marginTop = 0; this._fM = BindAsEventListener(this, this.Move); this._fS = Bind(this, this.Stop); Extend(this.options,options||{}); Extend(this,this.options); this.zIndex = Math.max(this.options.zIndex,Drag.zIndex||0); if(this.mxContainer&&this.Limit) //设置了限制 和 容器限制后 计算边界直 { this.mxLeft = getobjpos(this.mxContainer,1); this.mxTop = getobjpos(this.mxContainer,0); this.mxRight = getobjpos(this.mxContainer,1) + this.mxContainer.offsetWidth-this._obj.offsetWidth; this.mxBottom = getobjpos(this.mxContainer,0) + this.mxContainer.offsetHeight-this._obj.offsetHeight; } this._obj.style.position = "absolute"; addListener(this._obj,"mousedown",BindAsEventListener(this,this.Start)); Drag.zIndex = this.zIndex; }, Start:function(e){ this._obj.style.zIndex = ++Drag.zIndex; var self = this; if(this.Noscroll){ //设置了不出现滚动条限制后,计算范围 this.mxRight = Math.max(document.body.scrollWidth, document.documentElement.clientWidth)-parseInt($('s').offsetWidth)-2; this.mxBottom = Math.max(document.body.scrollHeight, document.documentElement.clientHeight)-$('s').offsetHeight-2 } this._x = e.clientX - this._obj.offsetLeft ; this._y = e.clientY - this._obj.offsetTop; this._marginLeft = parseInt(this._obj.style.marginLeft)||0; this._marginTop = parseInt(this._obj.style.marginTop)||0; if(Sys.IE) { addListener(this._obj, "losecapture", this._fS); this._obj.setCapture(); } else { e.preventDefault(); addListener(window, "blur", this._fS); } addListener(document,"mousemove",this._fM); addListener(document,"mouseup",this._fS); this.Onstart(); }, Move:function(e){ window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty(); var iLeft = e.clientX - this._x, iTop = e.clientY - this._y; if(this.Limit){ iLeft= Math.min(Math.max(iLeft,this.mxLeft),this.mxRight); iTop = Math.min(Math.max(iTop,this.mxTop),this.mxBottom); } var obj = this.custom?this.customobj:this._obj; if(!this.LockX)obj.style.left = iLeft - this._marginLeft + "px"; if(!this.LockY)obj.style.top = iTop - this._marginTop + "px"; this.Onmove(); }, Stop:function(){ removeListener(document,'mousemove',this._fM); removeListener(document,'mouseup',this._fS); if(Sys.IE) { removeListener(this._obj, "losecapture", this._fS); this._obj.releaseCapture(); } else { removeListener(window, "blur", this._fS); }; this.Onstop(); } }); var Slider = new Class({ options :{ direction : true, //true为纵,false为横 type : "Y", //分别为X,Y,N shapechange : true, //是否该变滚动条的形状 topvalue : 0, //上或左偏差值 bottomvalue : 0, //下或右偏差值 border : 0, //处理ie下border的问题 step : 1, //键盘操作时候的步长 t : 0, b : 0, c : 0, d : 40, Onmove : function(){} }, initialize :function(container,block,blockcontainer,options){ this.container = container; this.block = block; this.blockcontainer = blockcontainer; Extend(this.options,options||{}); Extend(this,this.options); this.timer = null; this.ismove = false; var _self = this; /*==========================================================================================================================*/ /*如果滚动条不是单独的图片可以用div模拟 这时候就得设置滚动条的长度或者宽度了 按比例设置*/ this.type =="Y"&&this.shapechange&&(this.block.style.height = this.container.offsetHeight*(this.container.offsetHeight/$$(this.container,"div")[0].scrollHeight)/2+"px"); this.type =="X"&&this.shapechange&&(this.block.style.width = this.container.offsetWidth*(this.container.offsetWidth/$$(this.container,"div")[0].scrollWidth)/2+"px"); /*==========================================================================================================================*/ var xc = this.blockcontainer?this.blockcontainer:this.container; addListener(xc,'click',BindAsEventListener(this,this.Start)); addListener(this.block,'click',BindAsEventListener(this,this.Bubble)); /*==========================================================================================================================*/ this.KeyBind(this.container); //键盘与鼠标滑轮部分参考的cloudgamer的 this.WheelBind(this.container); var oFocus = Sys.IE ? this.block : this.container; addListener(this.block, "mousedown", function(){ _self.Stopmove();oFocus.focus(); }); /*==========================================================================================================================*/ this.drag = new Drag(this.block,{Limit:true,mxContainer:xc,Onmove:Bind(this,this.Move)}); this.drag[this.direction?"LockX":"LockY"] = true; (Sys.IE && ([/MSIE (/d)/.0/i.exec(navigator.userAgent)][0][1] == 7)) this.border = (Sys.IE && (([/MSIE (/d)/.0/i.exec(navigator.userAgent)][0][1] == 6)||([/MSIE (/d)/.0/i.exec(navigator.userAgent)][0][1] == 7)))?this.border:0; //ie6,7下 border也要算进去 不然有误差 ie8,却又不需要算 真是纠结............ if(this.direction) { this.drag.mxTop = this.drag.mxTop - this.topvalue+this.border; this.drag.mxBottom = this.drag.mxBottom + this.bottomvalue+this.border; this.block.style.top = this.drag.mxTop+"px"; } else { this.drag.mxLeft = this.drag.mxLeft - this.topvalue+this.border; this.drag.mxRight = this.drag.mxRight + this.bottomvalue+this.border; this.block.style.left = this.drag.mxLeft+"px"; } this.Move(); }, Keycontrol : function(e){ this.Stopdefault(e); this.Stopmove(); var l1 =this.direction?"top":"left",l2 = this.direction?"offsetTop":"offsetLeft",l3=this.direction?"mxTop":"mxLeft",l4=this.direction?"mxBottom":"mxRight"; switch(e.keyCode){ case 37: this.block.style[l1] = Math.max(this.block[l2]-this.step,this.drag[l3]) +'px'; this.Move(); break; case 38: this.block.style[l1] = Math.max(this.block[l2]-this.step,this.drag[l3]) +'px'; this.Move(); break; case 39: this.block.style[l1] = Math.min(this.block[l2]+this.step,this.drag[l4]) +'px'; this.Move(); break; case 40: this.block.style[l1] = Math.min(this.block[l2]+this.step,this.drag[l4]) +'px'; this.Move(); break; return; } }, Wheelcontrol :function(e){ this.Stopmove(); var t = Sys.Firefox?e.detail:e.wheelDelta; var l1 =this.direction?"top":"left",l2 = this.direction?"offsetTop":"offsetLeft",l3=this.direction?"mxTop":"mxLeft",l4=this.direction?"mxBottom":"mxRight"; this.block.style[l1] = Sys.Firefox?(t<0?Math.max(this.block[l2]-5,this.drag[l3])+'px':Math.min(this.block[l2]+5,this.drag[l4]) +'px'):(t>0?Math.max(this.block[l2]-5,this.drag[l3])+'px':Math.min(this.block[l2]+5,this.drag[l4]) +'px'); this.Move(); this.Stopdefault(e); }, WheelBind : function(o){ addListener(o, Sys.Firefox? "DOMMouseScroll" : "mousewheel", BindAsEventListener(this,this.Wheelcontrol)); }, KeyBind : function(o){ addListener(o,'keydown',BindAsEventListener(this,this.Keycontrol)); o.tabIndex = -1; Sys.IE || (o.style.outline = "none"); }, Move : function(){ var c = $$(this.container,"div")[0] ; /*=========================================================================================================================*/ this.type=="Y"&&(c.scrollTop = (c.scrollHeight - c.offsetHeight)*(this.block.offsetTop - this.drag.mxTop)/(this.blockcontainer.offsetHeight - this.block.offsetHeight +this.topvalue+this.bottomvalue)); this.type=="X"&&(c.scrollLeft = (c.scrollWidth - c.offsetWidth)*(this.block.offsetLeft - this.drag.mxLeft)/(this.blockcontainer.offsetWidth-this.block.offsetWidth+this.topvalue+this.bottomvalue)); /*上面为滚动条的计算方式*/ /*=========================================================================================================================*/ this.Onmove(); }, Start : function(e){ this.ismove = true; this.b = this.direction?this.block.offsetTop:this.block.offsetLeft; if(this.direction) { var t = Sys.Chrome?document.body.scrollTop:document.documentElement.scrollTop; var l = (e.clientY+t)<=this.block.offsetTop?0:this.block.offsetHeight; } else { var t = Sys.Chrome?document.body.scrollLeft:document.documentElement.scrollLeft; var l = (e.clientX+t)<=this.block.offsetLeft?0:this.block.offsetWidth; } this.c = this.direction?(e.clientY+t-l):(e.clientX+t-l); this.t = 0; this.Run(); }, Run : function(){ if(!this.ismove)return; clearTimeout(this.timer); if(this.t<this.d) { this.Runto(Math.round(Tween.Linear(this.t++,this.b,(this.c-this.b),this.d))); this.timer = setTimeout(Bind(this,this.Run),5); } else { this.Runto(this.c); this.t=0; this.ismove = true; } }, Runto : function(i){ this.block.style[this.direction?"top":"left"] = i + "px"; this.Move(); }, Bubble : function(e){ Sys.IE?(e.cancelBubble=true):(e.stopPropagation()); }, Stopdefault : function(e){ Sys.IE?(e.returnValue = false):(e.preventDefault()); }, Left : function(o){ this.Lrmove("mxTop","mxLeft"); }, Right : function(){ this.Lrmove("mxBottom","mxRight"); }, Lrmove : function(t,b){ if(this.t!=0)return; this.ismove = true; this.b = this.direction?this.block.offsetTop:this.block.offsetLeft; this.c = this.direction?this.drag[t]:this.drag[b]; this.Run(); }, Stopmove : function(){ this.ismove=false;clearTimeout(this.time);this.t = 0; } }) window.onload = function(){ var aaa=new Slider($('container'),$('block'),$('eee'),{shapechange:false,topvalue:11,bottomvalue:12,border:1}); addListener($('p1'),'click',Bind(aaa,aaa.Left)); addListener($('p2'),'click',Bind(aaa,aaa.Right)); new Slider($('con1'),$('bbb1'),$('sss1'),{shapechange:true,topvalue:0,bottomvalue:0,border:0}); var ss = new Slider($('container3'),$("block3"),$("scroll3"),{shapechange:false,direction:false,type:"X",topvalue:5,bottomvalue:5,border:2}); addListener($('la'),'click',Bind(ss,ss.Left)); addListener($('r'),'click',Bind(ss,ss.Right)); new Slider($('iii'),$('ii'),null,{direction:false,type:"N",topvalue:0,bottomvalue:0,border:0,Onmove:function(){ $('ss').innerHTML = parseInt((this.block.offsetLeft - this.drag.mxLeft)/(this.container.offsetWidth-this.block.offsetWidth)*100) + "%"; }}); new Slider($('yy1'),$('yy2'),null,{direction:true,type:"S",topvalue:0,bottomvalue:0,border:0,Onmove:function(){ $('sss').innerHTML = parseInt((this.block.offsetTop - this.drag.mxTop)/(this.container.offsetHeight-this.block.offsetHeight)*100) + "%"; }}); } </script> <div id='lalala'></div> </body> </html> <script type="text/javascript"> </script>