kinSlideshow.js
9.05 KB
/**
* 欢迎使用 KinSlideshow 幻灯片『焦点图』插件
*
* jQuery KinSlideshow plugin
* ========================================〓说明〓========================================================
* jQuery幻灯片插件,基本能满足你在网页上使用幻灯片(焦点图)效果。兼容IE6/IE7/IE8/IE9,FireFox,Chrome,Opera等主流浏览器。
* 使用极其方便、简单,外观样式可以自定义,具体定义样式方法和设置其他参数请参见demo文件
* 所有宽度和高度单位都是像素,设置参数时不需要加单位(px)
* ========================================================================================================
* @name jquery.KinSlideshow.js
* @version 1.1
* @author Mr.Kin
* @date 2010-07-25
* @Email:Mr.Kin@Foxmail.com
*
* 欲索取最新版本KinSlideshow或是报告Bug,请发送Email至 【Mr.Kin@Foxmail.com】
*
**/
eval((function(a,b){return a.replace(/\w+/g, function(ss){ return b[parseInt(ss, 36)]; }); })("(0($) {\r$.1.2 = 0(3){\r3 = 4.5({\r6 : 7,\r8 : 9,\ra:\"b\",\rc:\"d\",\re:f,\rg:{h:i,j:\"#k\",l:m.7},\rn:f,\ro:{p:q,r:\"#s\",t:\"u\",v:\"w\"},\rx:f,\ry:{z:\"#10\",11:\"#12\",13:\"#14\",15:\"#k\",16:\"u\",17:\"#18\",19:\"#1a\",1b:1c,1d:m.1e}\r},3);\r1f 1g = {h:i,j:\"#k\",l:m.7}\r1f 1h = {p:q,r:\"#s\",t:\"u\",v:\"w\"}\r1f 1i = {z:\"#10\",11:\"#12\",13:\"#14\",15:\"#k\",16:\"u\",17:\"#18\",19:\"#1a\",1b:1c,1d:m.1e}\r1j (1f 1k 1l 1g){\r1m(3.g[1k] == 1n){\r3.g[1k] = 1g[1k];\r}\r}\r1j (1f 1k 1l 1h){\r1m(3.o[1k] == 1n){\r3.o[1k] = 1h[1k];\r}\r}\r1j (1f 1k 1l 1i){\r1m(3.y[1k] == 1n){\r3.y[1k] = 1i[1k];\r}\r}\r1f 1o = 1p;\r1f 1q = $(1o).1r;\r1f 1s = 1t 1u();\r1f 1v = m;\r1f 1w =1t 1u();\r1f 1x = m;\r1f 1y = 3.6;\r1f 1z;\r1f 20 = f;\r1m(21(1y) || 1y <= 1c){\r1y = 7;\r}\r1m(3.8 > 22){\r3.8 = 22;\r}23 1m(3.8 < 1c){\r3.8 = 1c;\r}\r0 24(){\r$(1o).25({26:\"27\"});\r$(1q+\" 28 29\").25({2a:m});\r2b();\r2c();\r};\r0 2b(){\r1v = $(1q+\" 28\").2d;\r1w.2e($(1q+\" 28 29\").2f());\r1w.2e($(1q+\" 28 29\").2g());\r$(1q+\" 28 29\").2h(0(2i){\r1s.2e($(1p).2j(\"2k\"));\r});\r$(1q+\" 28\").2l(\"<2m 2n=\'2o\'><\/2m>\");\r$(\"#2o\").2p().2j(\"2n\",\"2q\").2r(1o);\r2s();\r2t();\r2u();\r2v();\r2w(3.c);\r$(1o).25({26:\"2x\"});\r};\r0 2s(){\r$(1o).25({2f:1w[m],2g:1w[1c],2y:\"27\",2z:\"30\"});\r$(1o).31(\"<2m 32=\'33\'><\/2m>\");\r1f 34 = 3.g.h;\r1m(21(34)){\r34 = i;\r}23 1m(34 < 35){\r34 = 35;\r};\r$(1q+\" .33\").25({2g:34,2f:\"36%\",2z:\"37\",38:m,b:m})\r1m(3.e){\r$(1q+\" .33\").25({39:3.g.j,3a:3.g.l})\r}\r};\r0 2t(){\r1m(3.n){\r$(1q+\" .33\").31(\"<3b 32=\'3c\' 3d=\'3e:3f m m 3g;3h:m;\'><\/3b>\");\r$(1q+\" .33 .3c\").25({3i:3.o.p,3j:3.o.r,3k:3.o.t,3l:3.o.v});\r3m(m);\r};\r};\r0 2u(){\r1m(3.y.1b > 3n){3.y.1b = 3n}\r1m(3.y.1b < m || 21(3.y.1b)){3.y.1b = m}\r1m(3.x && 1v >= 3n){\r$(1o).31(\"<2m 32=\'3o\' 3d=\'2z:37;3p:3q;38:3r; 3s-3t:36\'><\/2m>\");\r1f 3u = \"\";\r1j(2i=1c;2i<=1v;2i++){\r3u+=\"<3v>\"+2i+\"<\/3v>\";\r}\r3u = \"<3w 2n=\'3x\' 3d=\'3e:m;3h:m; 2y:27\'>\"+3u+\"<\/3w>\";\r$(1q+\" .3o\").31(3u);\r$(1q+\" .3o #3x 3v\").25({3y:\"3z\",40:\"b\",2f:41,2g:41,42:3.y.1b,43:3.y.17,44:\"45\",39:3.y.z,46:\"47\",48:\"49\",4a:4b,3i:q,3k:3.y.16,4c:\"4d\",3a:3.y.1d,3j:3.y.13});\r$(\"#3x 3v:4e(m)\").25({39:3.y.11,43:3.y.19,3j:3.y.15});\r};\r};\r0 2v(){\r4f(3.a){\r4g \"b\": 4h(); 4i;\r4g \"3p\": 4j();4i;\r4g \"4k\": 4l(); 4i;\r4g \"4m\": 4n(); 4i;\r4o: 3.a = \"b\"; 4h();\r}\r};\r0 4h(){\r$(1q+\" 2m:4p(3n)\").2l(\"<2m 2n=\'4q\'><\/2m>\");\r$(\"#4q\").25({2f:1w[m],2g:1w[1c],2y:\"27\",2z:\"30\"});\r$(\"#2o\").25({40:\"b\"});\r$(\"#2q\").25({40:\"b\"});\r$(1q+\" #4q 2m\").2l(\"<2m 2n=\'4r\'><\/2m>\");\r$(1q+\" #4r\").25({40:\"b\",2f:\"4s%\"});\r1z = 4t(0(){4u(3.a)},1y*4v+3.8);\r};\r0 4j(){\r$(1q+\" 2m:4p(3n)\").2l(\"<2m 2n=\'4q\'><\/2m>\");\r$(\"#4q\").25({2f:1w[m],2g:1w[1c],2y:\"27\",2z:\"30\"});\r$(\"#2o\").25({40:\"b\"});\r$(\"#2q\").25({40:\"b\"});\r$(1q+\" #4q 2m\").2l(\"<2m 2n=\'4r\'><\/2m>\");\r$(1q+\" #4r\").25({40:\"b\",2f:\"4s%\"});\r$(\"#2q\").4w(\"\");\r$(\"#2o 28\").4x(\"<4y><\/4y>\")\r$(\"#2o 28\").2h(0(2i){\r$(\"#2q\").4z($(\"#2o 4y:4e(\"+2i+\")\").4w());\r})\r$(\"#2o\").4w($(\"#2q\").4w());\r1f 50 = (1v-1c)*1w[m];\r$(\"#4q\").51(50);\r1z = 4t(0(){4u(3.a)},1y*4v+3.8);\r};\r0 4l(){\r$(1q+\" 2m:4p(3n)\").2l(\"<2m 2n=\'4q\'><\/2m>\");\r$(\"#4q\").25({2f:1w[m],2g:1w[1c],2y:\"27\",2z:\"30\"});\r$(\"#4q\").52({53: m}, 1c);\r1z = 4t(0(){4u(3.a)},1y*4v+3.8);\r};\r0 4n(){\r$(1q+\" 2m:4p(3n)\").2l(\"<2m 2n=\'4q\'><\/2m>\");\r$(\"#4q\").25({2f:1w[m],2g:1w[1c],2y:\"27\",2z:\"30\"});\r$(\"#2q\").4w(\"\");\r$(\"#2o 28\").4x(\"<4y><\/4y>\")\r$(\"#2o 28\").2h(0(2i){\r$(\"#2q\").4z($(\"#2o 4y:4e(\"+2i+\")\").4w());\r})\r$(\"#2o\").4w($(\"#2q\").4w());\r1f 54 = (1v-1c)*1w[1c];\r$(\"#4q\").52({53: 54}, 1c);\r1z = 4t(0(){4u(3.a)},1y*4v+3.8);\r};\r0 4u(3d){\r4f(3d){\r4g \"b\":\r1m(1x >= 1v){\r1x = m;\r$(\"#4q\").51(m);\r$(\"#4q\").52({51:1w[m]}, 3.8);\r}23{\r55 =(1x+1c)*1w[m];\r1m ($(\"#4q\").56(\':57\')){\r$(\"#4q\").58();\r$(\"#4q\").52({51: 55}, 3.8);\r}23{\r$(\"#4q\").52({51: 55}, 3.8);\r}\r}\r3m(1x+1c);\r4i;\r4g \"3p\":\r1f 50 = (1v-1c)*1w[m];\r1m(1x >= 1v){\r1x = m;\r$(\"#4q\").51(50+1w[m]);\r$(\"#4q\").52({51:50}, 3.8);\r}23{\r1m(20){\r1x++;\r20 = 59;\r}\r55 =50-(1x*1w[m]);\r1m ($(\"#4q\").56(\':57\')){\r$(\"#4q\").58();\r$(\"#4q\").52({51: 55}, 3.8);\r}23{\r$(\"#4q\").52({51: 55}, 3.8);\r}\r}\r3m(1x);\r4i;\r4g \"4k\":\r1m(1x >= 1v){\r1x = m;\r$(\"#4q\").53(m);\r$(\"#4q\").52({53:1w[1c]}, 3.8);\r}23{\r55 =(1x+1c)*1w[1c];\r1m ($(\"#4q\").56(\':57\')){\r$(\"#4q\").58();\r$(\"#4q\").52({53: 55}, 3.8);\r}23{\r$(\"#4q\").52({53: 55}, 3.8);\r}\r}\r3m(1x+1c);\r4i;\r4g \"4m\":\r1f 50 = (1v-1c)*1w[1c];\r1m(1x >= 1v){\r1x = m;\r$(\"#4q\").53(50+1w[1c]);\r$(\"#4q\").52({53:50}, 3.8);\r}23{\r1m(20){\r1x++;\r20 = 59;\r}\r55 =50-(1x*1w[1c]);\r1m ($(\"#4q\").56(\':57\')){\r$(\"#4q\").58();\r$(\"#4q\").52({53: 55}, 3.8);\r}23{\r$(\"#4q\").52({53: 55}, 3.8);\r}\r}\r3m(1x);\r4i;\r}\r1x++;\r}\r0 3m(3t){\r1m(3t == 1v){3t = m};\r1m(3.n){\r$(1q+\" .33 3b\").4w(1s[3t]);\r};\r$(\"#3x 3v\").2h(0(2i){\r1m(2i == 3t){\r$(1p).25({39:3.y.11,43:3.y.19,3j:3.y.15});\r}23{\r$(1p).25({39:3.y.z,43:3.y.17,3j:3.y.13});\r}\r})\r};\r0 2w(5a){\r4f(5a){\r4g \"5b\" : 5c(); 4i;\r4g \"d\" : 5d(); 4i;\r4o : 5d();\r}\r};\r0 5c(){\r$(\"#3x 3v\").5b(0(){\r1f 5e = $(\"#3x 3v\").3t($(1p));\r4f(3.a){\r4g \"b\" :\r1x = 5e-1c; 4i;\r4g \"3p\" :\r1m(20){\r1x = 5e-1c; 4i;\r}23{\r1x = 5e; 4i;\r}\r4g \"4k\" :\r1x = 5e-1c; 4i;\r4g \"4m\" :\r1m(20){\r1x = 5e-1c; 4i;\r}23{\r1x = 5e; 4i;\r}\r}\r4u(3.a);\r$(\"#3x 3v\").2h(0(2i){\r1m(2i ==5e){\r$(1p).25({39:3.y.11,43:3.y.19,3j:3.y.15});\r}23{\r$(1p).25({39:3.y.z,43:3.y.17,3j:3.y.13});\r}\r})\r})\r};\r0 5d(){\r$(\"#3x 3v\").5f(0(){\r1f 5e = $(\"#3x 3v\").3t($(1p));\r4f(3.a){\r4g \"b\" :\r1x = 5e-1c; 4i;\r4g \"3p\" :\r1m(20){\r1x = 5e-1c; 4i;\r}23{\r1x = 5e; 4i;\r}\r4g \"4k\" :\r1x = 5e-1c; 4i;\r4g \"4m\" :\r1m(20){\r1x = 5e-1c; 4i;\r}23{\r1x = 5e; 4i;\r}\r}\r4u(3.a);\r$(\"#3x 3v\").2h(0(2i){\r1m(2i ==5e){\r$(1p).25({39:3.y.11,43:3.y.19,3j:3.y.15});\r}23{\r$(1p).25({39:3.y.z,43:3.y.17,3j:3.y.13});\r}\r})\r})\r};\r0 2c(){\r$(\"#3x 3v\").5b(0(){\r5g(1z);\r})\r$(\"#3x 3v\").5h(0(){\r1z = 4t(0(){4u(3.a)},1y*4v+3.8);\r})\r};\r5i 24();\r};\r})(4);", "function|fn|KinSlideshow|settings|jQuery|extend|intervalTime|5|moveSpeedTime|400|moveStyle|left|mouseEvent|mouseclick|isHasTitleBar|true|titleBar|titleBar_height|40|titleBar_bgColor|000000|titleBar_alpha|0|isHasTitleFont|titleFont|TitleFont_size|12|TitleFont_color|FFFFFF|TitleFont_family|Verdana|TitleFont_weight|bold|isHasBtn|btn|btn_bgColor|666666|btn_bgHoverColor|CC0000|btn_fontColor|CCCCCC|btn_fontHoverColor|btn_fontFamily|btn_borderColor|999999|btn_borderHoverColor|FF0000|btn_borderWidth|1|btn_bgAlpha|7|var|titleBar_Bak|titleFont_Bak|btn_Bak|for|key|in|if|undefined|KinSlideshow_BoxObject|this|KinSlideshow_BoxObjectSelector|selector|KinSlideshow_DateArray|new|Array|KinSlideshow_imgaeLength|KinSlideshow_Size|KinSlideshow_changeFlag|KinSlideshow_IntervalTime|KinSlideshow_setInterval|KinSlideshow_firstMoveFlag|isNaN|500|else|KinSlideshow_initialize|css|visibility|hidden|a|img|border|KinSlideshow_start|KinSlideshow_mousehover|length|push|width|height|each|i|attr|alt|wrapAll|div|id|KinSlideshow_content|clone|KinSlideshow_contentClone|appendTo|KinSlideshow_setTitleBar|KinSlideshow_setTitleFont|KinSlideshow_setBtn|KinSlideshow_action|KinSlideshow_btnEvent|visible|overflow|position|relative|append|class|KinSlideshow_titleBar|getTitleBar_Height|25|100|absolute|bottom|background|opacity|h2|title|style|margin|3px|6px|padding|fontSize|color|fontFamily|fontWeight|setTiltFontShow|2|KinSlideshow_btnBox|right|39%|5px|z|index|KinSlideshow_btnList|li|ul|btnlistID|listStyle|none|float|18|borderWidth|borderColor|borderStyle|solid|textAlign|center|cursor|pointer|marginLeft|3|lineHeight|18px|eq|switch|case|KinSlideshow_moveLeft|break|KinSlideshow_moveRight|up|KinSlideshow_moveUp|down|KinSlideshow_moveDown|default|lt|KinSlideshow_moveBox|KinSlideshow_XposBox|2000|setInterval|KinSlideshow_move|1000|html|wrap|span|prepend|KinSlideshow_offsetLeft|scrollLeft|animate|scrollTop|KinSlideshow_offsetTop|sp|is|animated|stop|false|Event|mouseover|KinSlideshow_btnMouseover|KinSlideshow_btnMouseclick|curLiIndex|click|clearInterval|mouseout|return".split("|")));