forked from sisihuisi/myfocus-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyfocus-1.0.min.js
11 lines (11 loc) · 6.8 KB
/
myfocus-1.0.min.js
1
2
3
4
5
6
7
8
9
10
11
/*
* myFocus JavaScript Library v1.0.0 Fianl
* JS焦点图库 myFocus-1.0正式版
*
* 你可以免费任意使用,但请保留相关版权信息
* @Author [email protected]
* @Blog http://hi.baidu.com/koen_li/
*
* @Date 2010/11/28
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?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}('f y={$:7(W){x 1s.38(W)},$$:7(1e,6){x(2E 6==\'3r\'?6:8.$(6)).1j(1e)},$$1O:7(1e,6){f E=[],n=0,a=6.1j(1e);F(f i=0;i<a.R;i++){9(a[i].2K==6)E.17(a[i]);9(a[i].1j(1e).R){n=a[i].1j(1e).R}i=i+n;n=0}x E},$c:7(A,6){f 1C=6.1j(\'*\'),A=A.1h(/\\-/g,\'\\\\-\'),1v=3h 32(\'(^|\\\\s)\'+A+\'(\\\\s|$)\'),E=[];F(f i=0,l=1C.R;i<l;i++){9(1v.37(1C[i].K)){E.17(1C[i]);2G}}x E[0]},$D:7(A,6){x 8.$$1O(\'D\',8.$c(A,6))},1J:7(t,b,c,d){x c*t/d+b},3c:7(t,b,c,d){x c*(t/=d)*t*t*t+b},2B:7(t,b,c,d){x-c*((t=t/d-1)*t*t*t-1)+b},34:7(t,b,c,d){x((t/=d/2)<1)?(c/2*t*t*t*t+b):(-c/2*((t-=2)*t*t*t-2)+b)},q:7(6,q){x(+[1,])?1A.2W(6,2l)[q]:6.31[q]},L:7(6,v){9(v!=X){v=v>J?J:(v<0?0:v);6.q.3d="1F(M="+v+")";6.q.M=(v/J)}N x(!+[1,])?((6.2H.1F)?6.2H.1F.M:J):((6.q.M)?6.q.M*J:J)},V:7(6,U,1r,2R,Y,T){f L=U==\'M\'?1B:G,1I=8.q(6,U),2Q=2E 1r===\'3y\';9(L&&8.q(6,\'1y\')==\'1V\'){6.q.1y=\'3x\';8.L(6,0)}f t=0,b=L?8.L(6):2o(1I==\'H\'?0:1I),c=2Q?1r/1:1r-b,d=2R||3s,1K=Y||\'2B\',m=c>0?\'3l\':\'2n\';9(6[U+\'19\'])1l(6[U+\'19\']);6[U+\'19\']=29(7(){9(L&&t<d){y.L(6,23[m](y[1K](++t,b,c,d)))}N 9(!L&&t<d){6.q[U]=23[m](y[1K](++t,b,c,d))+\'C\'}N{9(L&&1r==0){6.q.1y=\'1V\'}1l(6[U+\'19\']);T&&T.3n(6)}},10);x 8},3o:7(6,I,T){8.V(6,\'M\',J,I==X?20:I,\'1J\',T);x 8},3j:7(6,I,T){8.V(6,\'M\',0,I==X?20:I,\'1J\',T);x 8},2b:7(6,1D,I,2m,T){F(f p 1Y 1D)8.V(6,p,1D[p],I,2m,T);x 8},3i:7(6){f V=[\'1E\',\'2h\',\'2r\',\'3p\',\'13\',\'O\',\'M\'];F(f i=0;i<V.R;i++)9(6[V[i]+\'19\'])1l(6[V[i]+\'19\']);x 8},1w:7(p){f 1f=[],w=p.13,h=p.O||8.$(p.W).3z,16=1s.2L(\'q\');16.Y=\'1W/1f\';9(p.1M)8.1M([8.$(p.W)],p.q+\'3A\');9(p.1f!==G)1f.17(\'.\'+p.S+\' *{3w:0;2p:0;3v:0;3e-q:1V;}.\'+p.S+\'{1S:2u;13:\'+w+\'C;O:\'+p.O+\'C;1T:1L;3t:3u/1.5 3B,33,3a-39;2s:#2t;}.\'+p.S+\' .1H{1S:35;z-u:36;13:J%;O:J%;3b:#2Z;1W-2X:2q;2p-2r:\'+0.3*h+\'C;2s:#2t 2V(2Y://3k.3M.45/46/47/48-1H.44) 2q \'+0.4*h+\'C 3Z-40;}.\'+p.S+\' .41{1S:2u;13:\'+w+\'C;O:\'+h+\'C;1T:1L;}.\'+p.S+\' .1g D,.\'+p.S+\' .1g D 1U,.\'+p.S+\' .1g-3C{13:\'+w+\'C;O:\'+p.2v+\'C!2A;4g-O:\'+p.2v+\'C!2A;1T:1L;}.\'+p.S+\' .1g D p a{1y:4h;}\');9(16.2x){16.2x.4f=1f.1N(\'\')}N{16.1m=1f.1N(\'\')}f 1R=8.$$(\'4c\',1s)[0];1R.2J(16,1R.4e)},2N:7(o,1n){f 1Q=o.K;f 1v="/\\\\s*"+1n+"\\\\b/g";o.K=1Q?1Q.1h(2c(1v),\'\'):\'\'},3X:7(o,1n,2d){f B=8.$$(\'B\',o)[0];B.1k=2d?B.1k.1h(2c("/"+1n+"\\\\.(?=[^\\\\.]+$)/g"),\'.\'):B.1k.1h(/\\.(?=[^\\.]+$)/g,1n+\'.\')},2U:7(k,2a){k.S=k.q+\'-\'+k.W;9(8[k.q]){F(f p 1Y k)8[k.q][p]=k[p];k=8[k.q]}9(2a){y.$(k.W).K+=\' \'+k.q+\' \'+k.S;y.1w(k);y[k.q](k);x}9(1A.2C){(7(){3K{y.$(k.W).K+=\' \'+k.q+\' \'+k.S;y.1w(k)}3L(e){2F(3I.3H,0)}})();1A.2C(\'3D\',7(){y[k.q](k)})} N{1s.2i("3E",7(){y.$(k.W).K+=\' \'+k.q+\' \'+k.S;y.1w(k)},G);1A.2i(\'3U\',7(){y[k.q](k)},G)}},3V:7(6,A){f s=[],15=8.$$(\'15\',6)[0],D=8.$$1O(\'D\',15),B,n=D.R,1P=A.R;F(f j=0;j<1P;j++){s.17(\'<15 2I=\'+A[j]+\'>\');F(f i=0;i<n;i++){B=8.$$(\'B\',D[i])[0];s.17(\'<D>\'+(A[j]==\'1P\'?(\'<a>\'+(i+1)+\'</a>\'):(A[j]==\'1g\'&&B?D[i].1m.1h(/<B(.|\\n|\\r)*?(\\>\\<\\/a\\>)/i,B.3R+\'</a>\')+\'<p>\'+B.2T("1W")+\'</p>\':(A[j]==\'2S\'&&B?\'<B 1k=\'+(B.2T("2S")||B.1k)+\' />\':\'\')))+\'<1U></1U></D>\')};s.17(\'</15>\')};6.1m+=s.1N(\'\')},1M:7(E,A){f 1p=1s.2L(\'1p\');1p.K=A;E[0].2K.2J(1p,E[0]);F(f i=0;i<E.R;i++)1p.3G(E[i])},3F:7(6,A){6.1m=\'<15 2I=\'+A+\'>\'+6.1m+\'</15>\'},3Y:7(2w,25,2O,d,2D){x"f 1G=8.$c(\'1H\',1i),11="+2O+",14=1B,1c="+d+"||\'1E\',1t=1c==\'1E\'||1c==\'2h\'?k.13:k.O,1q="+2D+"||1q,u=k.u||0,t=k.4d*49;9(11){1q.q[1c]=-1t*n+\'C\';u+=n;}9(1G)1i.4a(1G);f Q=7(1b){("+2w+")(y);f 22=u;9(11&&u==2*n-1&&14!=1){1q.q[1c]=-(n-1)*1t+\'C\';u=n-1}9(11&&u==0&&14!=2){1q.q[1c]=-n*1t+\'C\';u=n}9(!11&&u==n-1&&1b==X)u=-1;9(11&&1b!==X&&u>n-1&&!14) 1b+=n;f 12=1b!==X?1b:u+1;9("+25+")("+25+")(y);u=12;14=G;};Q(u);9(t&&k.H!==G)f H=29(7(){Q()},t);1i.27=7(){9(H)1l(H)};1i.21=7(){9(H)H=29(7(){Q()},t)};"},43:7(P,Y,1u){x"F (f j=0;j<n;j++){"+P+"[j].u=j;9("+Y+"==\'4b\'){"+P+"[j].27=7(){9(8.u!=u)8.K+=\' 2P\'};"+P+"[j].21=7(){y.2N(8,\'2P\')};"+P+"[j].1z=7(){9(8.u!=u) {Q(8.u);x G}};}N 9("+Y+"==\'42\'){"+P+"[j].27=7(){f 1o=8;9("+1u+"==0){9(1o.u!=u){Q(1o.u);x G}}N "+P+".d=2F(7(){9(1o.u!=u) {Q(1o.u);x G}},"+(1u==X?J:1u)+")};"+P+"[j].21=7(){3N("+P+".d)};}N{3T(\'3O 3Q : \\"\'+"+Y+"+\'\\"\');2G;};F(f i=0,1X=8.$$(\'a\',1i),2M=1X.R;i<2M;i++) 1X[i].3P=7(){8.3S();}}"},3W:7(6,28,2k){x"f 1x=G;"+6+".1z=7(){8.K=8.K==\'"+28+"\'?\'"+2k+"\':\'"+28+"\';9(!1x){1l(H);H=2l;1x=1B;}N{H=1B;1x=G;}}"},3J:7(6,1d,2f,26,I){x"f 1a={},Z="+2f+",2z=23.2n("+26+"/2),2y=2o("+6+".q["+1d+"])||0,18=12>=n?12-n:12,2g="+I+"||30,2e=Z*(n-"+26+"),24=Z*18+2y;9(24>Z*2z&&18!==n-1) 1a["+1d+"]=\'-\'+Z;9(24<Z&&18!==0) 1a["+1d+"]=\'+\'+Z;9(18===n-1) 1a["+1d+"]=-2e;9(18===0) 1a["+1d+"]=0;y.2b("+6+",1a,2g);"},3q:7(22,12){x 22+".1z=7(){14=1;Q(u>0?u-1:n-1);};"+12+".1z=7(){14=2;f 2j=u>=2*n-1?n-1:u;Q(u==n-1&&!11?0:2j+1);}"},3m:7(1Z){F(f p 1Y 1Z)8[p]=1Z[p]}};y.2U.3f={3g:7(q,p){8[q]=p}};',62,266,'||||||obj|function|this|if||||||var|||||par||||||style||||index|||return|myFocus||cla|img|px|li|arr|for|false|auto|speed|100|className|opa|opacity|else|height|arrStr|run|length||fn|prop|animate|id|undefined|type|scDis||less|next|width|_turn|ul|oStyle|push|scIdx|Timer|scPar|idx|_dir|dir|tag|css|txt|replace|box|getElementsByTagName|src|clearInterval|innerHTML|name|self|div|pics|val|document|_dis|delay|reg|initCSS|_stop|display|onclick|window|true|tags|params|left|alpha|ld|loading|offset|linear|st|hidden|wrap|join|_|num|oClass|oHead|position|overflow|span|none|text|lk|in|fnObj||onmouseout|prev|Math|scD|fn2|sn|onmouseover|cla1|setInterval|im|slide|eval|del|scMax|dis|scSpd|right|addEventListener|tIdx|cla2|null|easing|floor|parseInt|padding|center|top|background|fff|relative|txtHeight|fn1|styleSheet|scDir|scN|important|easeOut|attachEvent|cont|typeof|setTimeout|break|filters|class|insertBefore|parentNode|createElement|ln|removeClass|isless|hover|am|spd|thumb|getAttribute|setting|url|getComputedStyle|align|http|666||currentStyle|RegExp|Geneva|easeInOut|absolute|9999|test|getElementById|serif|sans|color|easeIn|filter|list|prototype|param|new|stop|fadeOut|nethd|ceil|extend|call|fadeIn|bottom|turn|object|50|font|12px|border|margin|block|string|offsetHeight|_wrap|Verdana|bg|onload|DOMContentLoaded|wrapIn|appendChild|callee|arguments|scroll|try|catch|zhongsou|clearTimeout|Error|onfocus|Setting|alt|blur|alert|load|addList|toggle|alterSRC|switchMF|no|repeat|pic|mouseover|bind|gif|com|wtimg|i_41956|28236|1000|removeChild|click|head|time|firstChild|cssText|line|inline'.split('|'),0,{}))