📄 jquery_004.js
字号:
/**
* jQuery lightBox plugin
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
* and adapted to me for use like a plugin from jQuery.
* @name jquery-lightbox-0.4.pack.js
* @author Leandro Vieira Pinho - http://leandrovieira.com
* @version 0.4
* @date November 17, 2007
* @category jQuery plugin
* @copyright (c) 2007 Leandro Vieira Pinho (leandrovieira.com)
* @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
*/
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}('(6($){$.2H.2I=6(4){4=2s.2G({28:\'#2C\',24:0.8,23:Y+\'X/5-2D-L.V\',2v:Y+\'X/5-1n-2E.V\',2g:Y+\'X/5-1n-2R.V\',29:Y+\'X/5-1n-2X.V\',19:Y+\'X/5-2U.V\',1h:10,2e:2P,2u:\'18\',2k:\'2O\',2z:\'c\',2h:\'p\',2o:\'n\',h:[],9:0},4);f D=C;6 1Z(){1Y(C,D);H 1a}6 1Y(1f,D){$(\'2A, 2w, 2x\').k({\'2y\':\'2S\'});22();4.h.y=0;4.9=0;7(D.y==1){4.h.1X(u 1c(1f.14(\'F\'),1f.14(\'1V\')))}m{2W(f i=0;i<D.y;i++){4.h.1X(u 1c(D[i].14(\'F\'),D[i].14(\'1V\')))}}1U(4.h[4.9][0]!=1f.14(\'F\')){4.9++}N()}6 22(){$(\'l\').2F(\'<e g="r-K"></e><e g="r-5"><e g="5-t-d-w"><e g="5-t-d"><1o g="5-d"><e 2K="" g="5-j"><a F="#" g="5-j-Z"></a><a F="#" g="5-j-W"></a></e><e g="5-L"><a F="#" g="5-L-1T"><1o I="\'+4.23+\'"></a></e></e></e><e g="5-t-d-17-w"><e g="5-t-d-17"><e g="5-d-G"><1e g="5-d-G-1j"></1e><1e g="5-d-G-1l"></1e></e><e g="5-1p"><a F="#" g="5-1p-26"><1o I="\'+4.29+\'"></a></e></e></e></e>\');f v=1C();$(\'#r-K\').k({2Y:4.28,3e:4.24,J:v[0],O:v[1]}).1M();f Q=1D();$(\'#r-5\').k({2d:Q[1]+(v[3]/10),1m:Q[0]}).E();$(\'#r-K,#r-5\').T(6(){1d();});$(\'#5-L-1T,#5-1p-26\').T(6(){1d();H 1a;});$(A).3a(6(){f v=1C();$(\'#r-K\').k({J:v[0],O:v[1]});f Q=1D();$(\'#r-5\').k({2d:Q[1]+(v[3]/10),1m:Q[0]})})}6 N(){$(\'#5-L\').E();$(\'#5-d,#5-j,#5-j-Z,#5-j-W,#5-t-d-17-w,#5-d-G-1l\').1k();f R=u 18();R.1H=6(){$(\'#5-d\').2Z(\'I\',4.h[4.9][0]);1G(R.J,R.O);R.1H=6(){}};R.I=4.h[4.9][0]};6 1G(1r,1u){f 1J=$(\'#5-t-d-w\').J();f 1F=$(\'#5-t-d-w\').O();f 1t=(1r+(4.1h*2));f 1s=(1u+(4.1h*2));f 1K=1J-1t;f 1Q=1F-1s;$(\'#5-t-d-w\').38({J:1t,O:1s},4.2e,6(){1L()});7((1K==0)&&(1Q==0)){7($.35.36){1E(33)}m{1E(32)}}$(\'#5-j-Z,#5-j-W\').k({O:1u+(4.1h*2)});$(\'#5-t-d-17-w\').k({J:1r})};6 1L(){$(\'#5-L\').1k();$(\'#5-d\').1M(6(){1N();2l()});2q()};6 1N(){$(\'#5-t-d-17-w\').3d(\'3c\');$(\'#5-d-G-1j\').1k();7(4.h[4.9][1]){$(\'#5-d-G-1j\').2B(4.h[4.9][1]).E()}7(4.h.y>1){$(\'#5-d-G-1l\').2B(4.2u+\' \'+(4.9+1)+\' \'+4.2k+\' \'+4.h.y).E()}}6 2l(){$(\'#5-j\').E();$(\'#5-j-Z,#5-j-W\').k({\'13\':\'1v 12(\'+4.19+\') 16-11\'});7(4.9!=0){$(\'#5-j-Z\').1g().2f(6(){$(C).k({\'13\':\'12(\'+4.2v+\') 1m 15% 16-11\'})},6(){$(C).k({\'13\':\'1v 12(\'+4.19+\') 16-11\'})}).E().2p(\'T\',6(){4.9=4.9-1;N();H 1a})}7(4.9!=(4.h.y-1)){$(\'#5-j-W\').1g().2f(6(){$(C).k({\'13\':\'12(\'+4.2g+\') 31 15% 16-11\'})},6(){$(C).k({\'13\':\'1v 12(\'+4.19+\') 16-11\'})}).E().2p(\'T\',6(){4.9=4.9+1;N();H 1a})}2i()}6 2i(){$(b).2J(6(S){2t(S)})}6 1y(){$(b).1g()}6 2t(S){7(S==2a){P=2M.2m;1q=27}m{P=S.2m;1q=S.2N}U=2Q.2V(P).2T();7((U==4.2z)||(U==\'x\')||(P==1q)){1d()}7((U==4.2h)||(P==37)){7(4.9!=0){4.9=4.9-1;N();1y()}}7((U==4.2o)||(P==39)){7(4.9!=(4.h.y-1)){4.9=4.9+1;N();1y()}}}6 2q(){7((4.h.y-1)>4.9){2r=u 18();2r.I=4.h[4.9+1][0]}7(4.9>0){2n=u 18();2n.I=4.h[4.9-1][0]}}6 1d(){$(\'#r-5\').2j();$(\'#r-K\').34(6(){$(\'#r-K\').2j()});$(\'2A, 2w, 2x\').k({\'2y\':\'3g\'})}6 1C(){f o,q;7(A.1b&&A.25){o=A.1R+A.3b;q=A.1b+A.25}m 7(b.l.1O>b.l.1P){o=b.l.3h;q=b.l.1O}m{o=b.l.30;q=b.l.1P}f z,B;7(M.1b){7(b.s.1i){z=b.s.1i}m{z=M.1R}B=M.1b}m 7(b.s&&b.s.1z){z=b.s.1i;B=b.s.1z}m 7(b.l){z=b.l.1i;B=b.l.1z}7(q<B){1w=B}m{1w=q}7(o<z){1A=o}m{1A=z}1I=u 1c(1A,1w,z,B);H 1I};6 1D(){f o,q;7(M.1S){q=M.1S;o=M.3f}m 7(b.s&&b.s.1x){q=b.s.1x;o=b.s.2c}m 7(b.l){q=b.l.1x;o=b.l.2c}2b=u 1c(o,q);H 2b};6 1E(20){f 21=u 1W();1B=2a;2L{f 1B=u 1W()}1U(1B-21<20)};H C.1g(\'T\').T(1Z)}})(2s);',62,204,'||||settings|lightbox|function|if||activeImage||document||image|div|var|id|imageArray||nav|css|body|else||xScroll||yScroll|jquery|documentElement|container|new|arrPageSizes|box||length|windowWidth|window|windowHeight|this|jQueryMatchedObj|show|href|details|return|src|width|overlay|loading|self|_set_image_to_view|height|keycode|arrPageScroll|objImagePreloader|objEvent|click|key|gif|btnNext|images|LBox_path|btnPrev||repeat|url|background|getAttribute||no|data|Image|imageBlank|false|innerHeight|Array|_finish|span|objClicked|unbind|containerBorderSize|clientWidth|caption|hide|currentNumber|left|btn|img|secNav|escapeKey|intImageWidth|intHeight|intWidth|intImageHeight|transparent|pageHeight|scrollTop|_disable_keyboard_navigation|clientHeight|pageWidth|curDate|___getPageSize|___getPageScroll|___pause|intCurrentHeight|_resize_container_image_box|onload|arrayPageSize|intCurrentWidth|intDiffW|_show_image|fadeIn|_show_image_data|scrollHeight|offsetHeight|intDiffH|innerWidth|pageYOffset|link|while|title|Date|push|_start|_initialize|ms|date|_set_interface|imageLoading|overlayOpacity|scrollMaxY|btnClose||overlayBgColor|imageBtnClose|null|arrayPageScroll|scrollLeft|top|containerResizeSpeed|hover|imageBtnNext|keyToPrev|_enable_keyboard_navigation|remove|txtOf|_set_navigation|keyCode|objPrev|keyToNext|bind|_preload_neighbor_images|objNext|jQuery|_keyboard_action|txtImage|imageBtnPrev|object|select|visibility|keyToClose|embed|html|000|ico|prev|append|extend|fn|lightBox|keydown|style|do|event|DOM_VK_ESCAPE|of|400|String|next|hidden|toLowerCase|blank|fromCharCode|for|close|backgroundColor|attr|offsetWidth|right|100|250|fadeOut|browser|msie||animate||resize|scrollMaxX|fast|slideDown|opacity|pageXOffset|visible|scrollWidth'.split('|'),0,{}))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -