Magic Thumb™的效果不错,不过页面加载后,可能是由于js里过于复杂的算法,因此有点慢,好了,说一下如果去掉Please upgrade to full version of Magic Thumb™ 吧,看下面的代码吧
/* Copyright 2008 MagicToolBox.com. To use this code on your own site, visit http://www.magictoolbox.com */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'//w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('//b'+e(c)+'//b','g'),k[c])}}return p}('b 7={2X:/'1.2V/',z:{H:!!(h.1G&&!h.1r),2Z:!!(h.1G&&!h.2x),31:!!(h.32&&h.2x),1r:!!h.1r,2T:17.1i.P(/'3n//')>-1,3h:17.1i.P(/'3g/')>-1&&17.1i.P(/'3f/')==-1,3i:!!17.1i.3j(/33.*3m.*3l/),1B:f.2u&&/'3k/'==f.2u.3e()},$:6(4){a(!4)8 15;a("3d"==1p 4){4=f.36(4)}8 4},$A:6(C){a(!C)8[];a(C.2r){8 C.2r()}b B=C.B||0,1H=1L 1z(B);2R(B--)1H[B]=C[B];8 1H},1l:6(U,1X){a(/'26/'===1p(U)){8 U}I(b p 1I 1X){U[p]=1X[p]}8 U},1D:6(){b 1C=[];I(b i=0,2S=K.B;i<2S;i++){I(b j=0,2O=K[i].B;j<2O;j++){1C.34(K[i][j])}}8 1C},2p:6(){b F=7.$A(K),1a=F.16(),19=F.16();8 6(){8 1a.1J(19,7.1D(F,7.$A(K)))}},38:6(){b F=7.$A(K),1a=F.16(),19=F.16();8 6(c){8 1a.1J(19,7.1D([c||h.c],F))}},39:6(m,C){b 14=C.B;I(b i=0;i<14;i++){a(m===C[i]){8 1k}}8 Q},L:6(){8 1L 3b().3a()},3c:6(){b Z,13,X,W,1c,1o;b G=(!7.z.1B)?f.M:f.q;b q=f.q;Z=(h.1u&&h.23)?h.1u+h.23:(q.1f>q.1w)?q.1f:(7.z.H&&7.z.1B)?q.1f:q.1w;13=(h.S&&h.2k)?h.S+h.2k:(q.2j>q.1A)?q.2j:q.1A;b 1b,1g;1b=7.z.H?G.1f:(f.M.1N||E.1u),1g=7.z.H?G.1m:(f.M.1m||E.S);1c=(E.28)?E.28:G.35;1o=(E.2d)?E.2d:G.37;a(13<1g){X=1g}w{X=13}a(Z<1b){W=1b}w{W=Z}8{W:W,X:X,1x:7.z.H?G.1N:(f.M.1N||E.1u),1y:7.z.H?G.1m:(7.z.1r)?E.S:(E.S||f.M.1m),1c:1c,1o:1o,30:Z,2U:13}},2Y:{2W:6(4,c,N){4=7.$(4);a(4.1Y){4.1Y(c,N,Q)}w{4.1G("1M"+c,N)}},3w:6(4,c,N){4=7.$(4);a(4.22){4.22(c,N,Q)}w{4.42("1M"+c,N)}},41:6(c){a(c.2g){c.2g()}w{c.43=1k}a(c.2h){c.2h()}w{c.44=Q}},46:6(4,1W,1R){4=7.$(4);a(4==f&&f.1n&&!4.21)4=f.M;b c;a(f.1n){c=f.1n(1W);c.45(1R,1k,1k)}w{c=f.40();c.3Z=1W}a(f.1n){4.21(c)}w{4.3U(/'1M/'+1R,c)}8 c}},T:{2i:6(s){8 s.1K(/^//s+|//s+$/g,/'/')},1q:6(s){8 s.1K(/-(//D)/g,6(48,25){8 25.3T()})}},O:{2f:6(4,J){a(!(4=7.$(4))){8}8((/' /'+4.V+/' /').P(/' /'+J+/' /')>-1)},3V:6(4,J){a(!(4=7.$(4))){8}a(!7.O.2f(4,J)){4.V+=(4.V?/' /':/'/')+J}},3W:6(4,J){a(!(4=7.$(4))){8}4.V=7.T.2i(4.V.1K(1L 3Y(/'(^|s)/'+J+/'(?:s|$)/'),/'$1/'))},3X:6(4,v){4=7.$(4);v=v==/'24/'?/'1Z/':7.T.1q(v);b m=4.v[v];a(!m&&f.2e){b 1V=f.2e.47(4,15);m=1V?1V[v]:15}w a(!m&&4.1s){m=4.1s[v]}a(/'k/'==v)8 m?1E(m):1.0;a(/^(4f(29|2a|2b|2c)4h)|((4g|4a)(29|2a|2b|2c))$/.49(v)){m=4b(m)?m:/'4c/'}8 m==/'4e/'?15:m},2s:6(4,o){6 2J(s,n){a(/'4d/'===1p(n)&&!(/'3o/'===s||/'2L/'===s)){8/'3R/'}8/'/'}4=7.$(4);b r=4.v;I(b s 1I o){3y{a(/'k/'===s){7.O.2E(4,o[s]);2v}a(/'24/'===s){r[(/'26/'===1p(r.27))?/'1Z/':/'27/']=o[s];2v}r[7.T.1q(s)]=o[s]+2J(7.T.1q(s),o[s])}3x(e){}}8 4},2E:6(4,k){4=7.$(4);b r=4.v;k=1E(k);a(k==0){a(/'2F/'!=r.1j)r.1j=/'2F/'}w{a(k>1){k=1E(k/18)}a(/'2G/'!=r.1j)r.1j=/'2G/'}a(!4.1s||!4.1s.3z){r.2L=1}a(7.z.H){r.3A=(k==1)?/'/':/'3B(k=/'+k*18+/')/'}r.k=k;8 4},2N:6(4){4=7.$(4);8{/'1x/':4.1w,/'1y/':4.1A}},2l:6(4){4=7.$(4);b l=t=0;3S{l+=4.3v||0;t+=4.3q||0;4=4.3p}2R(4);8{/'1e/':t,/'1d/':l}},3r:6(4){b p=7.O.2l(4);b s=7.O.2N(4);8{/'1e/':p.1e,/'3s/':p.1e+s.1y,/'1d/':p.1d,/'3u/':p.1d+s.1x}}},Y:{3t:6(x){8 x},2P:6(x){8-(u.2t(u.2B*x)-1)/2},2D:6(p){8 u.1h(p,2)},3C:6(p){8 1-7.Y.2D(1-p)},2C:6(p){8 u.1h(p,3)},3D:6(p){8 1-7.Y.2C(1-p)},2m:6(p,x){x=x||1.3N;8 u.1h(p,2)*((x+1)*p-x)},3M:6(p,x){8 1-7.Y.2m(1-p)},3O:6(p,x){x=x||[];8 u.1h(2,10*--p)*u.2t(20*p*u.2B*(x[0]||1)/3)},3P:6(x){8 0}}};7.2w=6(){9.2y.1J(9,K)};7.2w.1F={2A:{2K:3Q,3L:0.5,2z:7.Y.2P,2H:6(){},1U:6(){},2q:6(){}},y:{},2y:6(4,2n){9.4=4;9.y=7.1l(7.1l({},9.2A),2n);9.R=Q},1T:6(1t,d){8(1t[1]-1t[0])*d+1t[0]},3K:6(o){9.o=o;9.3F=0;9.3E=0;9.1P=7.L();9.2Q=9.1P+9.y.2o*1O;9.R=3G(7.2p(9.2M,9),u.1S(1O/9.y.2K));9.y.2H()},2M:6(){b L=7.L();a(L>=9.2Q){a(9.R){3H(9.R);9.R=Q}9.1Q(1.0);3J(9.y.1U,10);9.y.1U=6(){};8 9}b 12=9.y.2z((L-9.1P)/(9.y.2o*1O));9.1Q(12)},1Q:6(12){b 11={};I(b s 1I 9.o){a(/'k/'===s){11[s]=u.1S(9.1T(9.o[s],12)*18)/18}w{11[s]=u.1S(9.1T(9.o[s],12))}}9.y.2q(11);7.O.2s(9.4,11)}};a(!1z.1F.P){7.1l(1z.1F,{/'P/':6(2I,1v){b 14=9.B;I(b i=(1v<0)?u.3I(0,14+1v):1v||0;i<14;i++){a(9[i]===2I)8 i}8-1}})}',62,266,'||||el||function|MagicTools|return|this|if|var|event|||document||window|||opacity||val||styles||body|elStyle|||Math|style|else||options|browser||length|arr||self|args|ieBody|ie|for|klass|arguments|now|documentElement|handler|Element|indexOf|false|timer|innerHeight|String|obj|className|pageWidth|pageHeight|Transition|xScroll||to_css|dx|yScroll|len|null|shift|navigator|100|object|__method|windowWidth|scrollX|left|top|scrollWidth|windowHeight|pow|userAgent|visibility|true|extend|clientHeight|createEvent|scrollY|typeof|camelize|opera|currentStyle|ft|innerWidth|from|offsetWidth|width|height|Array|offsetHeight|backCompatMode|result|concat|parseFloat|prototype|attachEvent|results|in|apply|replace|new|on|clientWidth|1000|startTime|render|evName|round|calc|onComplete|css|evType|props|addEventListener|cssFloat||dispatchEvent|removeEventListener|scrollMaxX|float|m2|undefined|styleFloat|pageXOffset|Top|Bottom|Left|Right|pageYOffset|defaultView|hasClass|stopPropagation|preventDefault|trim|scrollHeight|scrollMaxY|getPosition|backIn|opt|duration|bind|onBeforeRender|toArray|setStyle|cos|compatMode|continue|Render|XMLHttpRequest|init|transition|defaults|PI|cubicIn|quadIn|setOpacity|hidden|visible|onStart|item|addpx|fps|zoom|loop|getSize|arrlen|sin|finishTime|while|arglen|webkit|viewHeight|09|add|version|Event|ie6|viewWidth|ie7|ActiveXObject|Apple|push|scrollLeft|getElementById|scrollTop|bindAsEvent|inArray|getTime|Date|getPageSize|string|toLowerCase|KHTML|Gecko|gecko|mobilesafari|match|backcompat|Safari|Mobile|AppleWebKit|zIndex|offsetParent|offsetTop|getRect|bottom|linear|right|offsetLeft|remove|catch|try|hasLayout|filter|alpha|quadOut|cubicOut|curFrame|state|setInterval|clearInterval|max|setTimeout|start|duraton|backOut|618|elastic|none|50|px|do|toUpperCase|fireEvent|addClass|removeClass|getStyle|RegExp|eventType|createEventObject|stop|detachEvent|cancelBubble|returnValue|initEvent|fire|getComputedStyle|m1|test|margin|parseInt|0px|number|auto|border|padding|Width'.split('|'),0,{})) eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'//w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('//b'+e(c)+'//b','g'),k[c])}}return p}('g b={54:/'1.2.5c/',T:[],1e:[],U:4L,S:E,4A:{13:8.1R.5i,U:4L,1f:0.5,3T:E,1S:E,1U:/'3k/',24:/'25/',2O:0.5,2H:0,4I:/'#4Z/',3z:0.2,4j:O,3N:E,22:0.5g,2z:/'2S/',3r:O,1Z:/'C 1g/',3R:[/'2I/',/'M/',/'2N/']},m:{},43:{/'2I/':{D:0,1H:/'5b/'},/'M/':{D:1,1H:/'55/'},/'2N/':{D:2,1H:/'5f/'}},2y:p(){7.m=8.26(7.4A,7.m);7.m.1U=/3i/i.1Q(7.m.1U)?/'3i/':/'3k/';7.m.24=/1C/i.1Q(7.m.24)?/'1C/':/'25/';7.U=7.m.U;g 36=y.2U("a");g l=36.1A;g 4t=0;2w(g i=0;i
其实很简单在最后加上“.replace("f.innerHTML=str","f.innerHTML=''")”替换一下就哦了 ;
还有就eval()是把一段字符串按照javascript执行的函数