@litepockets
There is no such file like jscriptfoot_jquery-cookies_json.js in jscript directory but I found something related with JMyCarousel in jscript_jquery-ui-mods.js in line 611.
There is:
HTML Code:
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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($){$.22.2r=G(o){o=$.21({P:O,S:O,1G:K,1j:Q,1g:1S,1t:\'2l\',E:Q,U:K,1m:\'4\',W:0,20:1,1h:1Y,1f:Q,1e:\'1R\',1v:\'2q\',2m:O,2k:O},o||{});M 1p.2h(G(){8 c=Q,13=o.E?"N":"J",19=o.E?"H":"F";8 f=$(1p),L=$("L",f),1k=$("1C",L),14=1k.1i(),v=o.1m;8 g=0;8 h=(o.S===O&&o.P===O)?K:Q;8 i=(v.1x().1w("%")!=-1?\'%\':(v.1x().1w("I")!=-1)?\'I\':\'1T\');8 j=O;5(o.U){8 k=1k.1D();L.1u(k).2p(k.1D())}8 l=$("1C",L);f.3("2j","1m");l.3("1r","1q").3("1K",o.E?"1J":"J").1b().3("1r","1q");5(!o.E){l.3("2g","2d")}5(l.1b().2c(0).29.28()==\'a\'&&!o.E){l.1b().3(\'1K\',\'J\')}5(o.E&&1H.27.26){l.3(\'25-H\',\'1F\').1b().3(\'T-X\',\'-1F\')}L.3("T","0").3("12","0").3("17","1E").3("24-23-1l","1J").3("z-16","1");f.3("1r","1q").3("17","1E").3("z-16","2").3("J","15");8 m=o.E?H(l):F(l);8 n=o.E?1B(l):H(l);8 p=o.W;8 q=l.1i();8 r=m*q;8 t=14;8 u=t*m;8 w=q*m;8 x=o.1h==\'1Z\'?m:o.1h;o.P=h?$(\'<1A 1l="1z" 1y="\'+(o.E?\'1X\':\'1W\')+\'" />\'):$(o.P);o.S=h?$(\'<1A 1l="1z" 1y="\'+(o.E?\'1V\':\'1U\')+\'" />\'):$(o.S);8 y=o.P;8 z=o.S;5(h&&o.1j!==K){y.3({\'Z\':\'0.6\'});z.3({\'Z\':\'0.6\'});f.1u(y);f.1u(z);o.P=y;o.S=z}5(o.1f){x=m;5(o.W%m!==0){8 A=7(o.W/m);p=o.W=(A*m)}}5(o.U){o.W+=(m*14);p+=(m*14)}8 B,11,10;5(i==\'%\'){B=0;11=7(v);10="%"}R 5(i==\'I\'){B=7(v);11=7(v);10="I"}R{B=m*7(v);11=m*7(v);10="I"}L.3(19,r+"I").3(13,-(o.W));f.3(19,11+10);5(o.E&&10==\'%\'){8 C=((m*t)*(7(v)/1Q));f.3(19,C+\'I\')}5(B===0){B=f.F()}5(o.E){f.3("F",n+\'I\');L.3("F",n+\'I\');l.3(\'T-X\',(7(l.3(\'T-X\'))*2)+\'I\');l.1P(l.1i()-1).3(\'T-X\',l.3(\'T-N\'))}R{f.3(\'H\',n+\'I\');L.3(\'H\',n+\'I\')}5(i==\'%\'){v=B/l.F();5(v%1!==0){v+=1}v=7(v)}8 D=f.H();5(h){z.3({\'z-16\':1O,\'17\':\'1N\'});y.3({\'z-16\':1O,\'17\':\'1N\'});5(o.E){y.3({\'F\':y.F(),\'H\':y.H(),\'N\':\'15\',\'J\':7(n/2)-7(y.F()/2)+\'I\'});z.3({\'F\':y.F(),\'H\':y.H(),\'N\':(D-y.H())+\'I\',\'J\':7(n/2)-7(y.F()/2)+\'I\'})}R{y.3({\'J\':\'15\',\'N\':7(n/2)-7(y.H()/2)+\'I\'});z.3({\'18\':\'15\',\'N\':7(n/2)-7(y.H()/2)+\'I\'})}}5(o.P){$(o.P).1a(o.1e,G(){5(h){o.P.3(\'Z\',0.9)}c=K;j=\'Y\';M Y()});$(o.P).1a(o.1v,G(){5(h){o.P.3(\'Z\',0.6)}c=Q;j=O;M 1c()})}5(o.S){$(o.S).1a(o.1e,G(){5(h){o.S.3(\'Z\',0.9)}c=K;j=\'V\';M V()});$(o.S).1a(o.1v,G(){5(h){o.S.3(\'Z\',0.6)}c=Q;j=O;M 1c()})}5(o.1j===K){c=K;V()}5(o.1G&&f.1M){f.1M(G(e,d){5(!o.U&&(d>0?(p+B<r):(p>0))||o.U){g+=1;5(c===Q){5(d>0){V(x,K)}R{Y(x,K)}c=K}}})}G V(a,b){8 s=(a?a:x);5(c===K&&j==="Y"){M}5(!o.U){5(p+s+(o.E?D:B)>u){s=u-(p+(o.E?D:B))}}L.1L(13=="J"?{J:-(p+s)}:{N:-(p+s)},o.1g,o.1t,G(){p+=s;5(o.U){5(p+(o.E?D:B)+m>=w){L.3(o.E?\'N\':\'J\',-p+u);p-=u}}5(!b&&c){V()}R 5(b){5(--g>0){1p.V(x,K)}R{c=Q;j=O}}})}G Y(a,b){8 s=(a?a:x);5(c===K&&j==="V"){M}5(!o.U){5(p-s<0){s=p-0}}L.1L(13=="J"?{J:-(p-s)}:{N:-(p-s)},o.1g,o.1t,G(){p-=s;5(o.U){5(p<=m){L.3(o.E?\'N\':\'J\',-(p+u));p+=u}}5(!b&&c){Y()}R 5(b){5(--g>0){Y(x,K)}R{c=Q;j=O}}})}G 1c(){5(!o.1f){L.1c();p=0-7(L.3(13))}c=Q;j=O}G 2i(a,b){5(b==\'F\'){M a.1n(\'1o\').F()}R{M a.1n(\'1o\').H()}}G 1B(a){8 b=a.1n(\'1o\');5(o.E){M 7(a.3(\'T-J\'))+7(a.3(\'T-18\'))+7(b.F())+7(a.3(\'1d-J-F\'))+7(a.3(\'1d-18-F\'))+7(a.3(\'12-18\'))+7(a.3(\'12-J\'))}R{M 7(a.3(\'T-N\'))+7(a.3(\'T-X\'))+7(b.F())+7(a.3(\'1d-N-H\'))+7(a.3(\'1d-X-H\'))+7(a.3(\'12-N\'))+7(a.3(\'12-X\'))}}G 1s(a){$(\'#1s\').1I($(\'#1s\').1I()+a+"<2f/>")}})};G 3(a,b){M 7($.3(a[0],b))||0}G F(a){M a[0].2e+3(a,\'2n\')+3(a,\'2o\')}G H(a){M a[0].2b+3(a,\'2a\')+3(a,\'2s\')}})(1H);',62,153,'|||css||if||parseInt|var||||||||||||||||||||||||||||||||vertical|width|function|height|px|left|true|ul|return|top|null|btnPrev|false|else|btnNext|margin|circular|forward|start|bottom|backward|opacity|cssUnity|cssSize|padding|animCss|tl|0px|index|position|right|sizeCss|bind|children|stop|border|evtStart|eltByElt|speed|step|size|auto|tLi|type|visible|find|img|this|hidden|overflow|debug|easing|prepend|evtStop|indexOf|toString|class|button|input|elHeight|li|clone|relative|4px|mouseWheel|jQuery|html|none|float|animate|mousewheel|absolute|200|eq|100|mouseover|500|el|next|down|prev|up|50|default|scroll|extend|fn|style|list|line|msie|browser|toLowerCase|tagName|marginTop|offsetHeight|get|inline|offsetWidth|br|display|each|imgSize|visibility|afterEnd|linear|beforeStart|marginLeft|marginRight|append|mouseout|jMyCarousel|marginBottom'.split('|'),0,{}))
After decoding we got:
HTML Code:
(function($){$.fn.jMyCarousel=function(o){o=$.extend({btnPrev:null,btnNext:null,mouseWheel:true,auto:false,speed:400,easing:'linear',vertical:false,circular:true,visible:'4',start:0,scroll:1,step:50,eltByElt:false,evtStart:'mouseover',evtStop:'mouseout',beforeStart:null,afterEnd:null},o||{});return this.each(function(){var c=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var f=$(this),ul=$("ul",f),tLi=$("li",ul),tl=tLi.size(),v=o.visible;var g=0;var h=(o.btnNext===null&&o.btnPrev===null)?true:false;var i=(v.toString().indexOf("%")!=-1?'%':(v.toString().indexOf("px")!=-1)?'px':'el');var j=null;if(o.circular){var k=tLi.clone();ul.prepend(k).append(k.clone())}var l=$("li",ul);f.css("visibility","visible");l.css("overflow","hidden").css("float",o.vertical?"none":"left").children().css("overflow","hidden");if(!o.vertical){l.css("display","inline")}if(l.children().get(0).tagName.toLowerCase()=='a'&&!o.vertical){l.children().css('float','left')}if(o.vertical&&jQuery.browser.msie){l.css('line-height','4px').children().css('margin-bottom','-4px')}ul.css("margin","0").css("padding","0").css("position","relative").css("list-style-type","none").css("z-index","1");f.css("overflow","hidden").css("position","relative").css("z-index","2").css("left","0px");var m=o.vertical?height(l):width(l);var n=o.vertical?elHeight(l):height(l);var p=o.start;var q=l.size();var r=m*q;var t=tl;var u=t*m;var w=q*m;var x=o.step=='default'?m:o.step;o.btnPrev=h?$('<input type="button" class="'+(o.vertical?'up':'prev')+'" />'):$(o.btnPrev);o.btnNext=h?$('<input type="button" class="'+(o.vertical?'down':'next')+'" />'):$(o.btnNext);var y=o.btnPrev;var z=o.btnNext;if(h&&o.auto!==true){y.css({'opacity':'0.6'});z.css({'opacity':'0.6'});f.prepend(y);f.prepend(z);o.btnPrev=y;o.btnNext=z}if(o.eltByElt){x=m;if(o.start%m!==0){var A=parseInt(o.start/m);p=o.start=(A*m)}}if(o.circular){o.start+=(m*tl);p+=(m*tl)}var B,cssSize,cssUnity;if(i=='%'){B=0;cssSize=parseInt(v);cssUnity="%"}else if(i=='px'){B=parseInt(v);cssSize=parseInt(v);cssUnity="px"}else{B=m*parseInt(v);cssSize=m*parseInt(v);cssUnity="px"}ul.css(sizeCss,r+"px").css(animCss,-(o.start));f.css(sizeCss,cssSize+cssUnity);if(o.vertical&&cssUnity=='%'){var C=((m*t)*(parseInt(v)/100));f.css(sizeCss,C+'px')}if(B===0){B=f.width()}if(o.vertical){f.css("width",n+'px');ul.css("width",n+'px');l.css('margin-bottom',(parseInt(l.css('margin-bottom'))*2)+'px');l.eq(l.size()-1).css('margin-bottom',l.css('margin-top'))}else{f.css('height',n+'px');ul.css('height',n+'px')}if(i=='%'){v=B/l.width();if(v%1!==0){v+=1}v=parseInt(v)}var D=f.height();if(h){z.css({'z-index':200,'position':'absolute'});y.css({'z-index':200,'position':'absolute'});if(o.vertical){y.css({'width':y.width(),'height':y.height(),'top':'0px','left':parseInt(n/2)-parseInt(y.width()/2)+'px'});z.css({'width':y.width(),'height':y.height(),'top':(D-y.height())+'px','left':parseInt(n/2)-parseInt(y.width()/2)+'px'})}else{y.css({'left':'0px','top':parseInt(n/2)-parseInt(y.height()/2)+'px'});z.css({'right':'0px','top':parseInt(n/2)-parseInt(y.height()/2)+'px'})}}if(o.btnPrev){$(o.btnPrev).bind(o.evtStart,function(){if(h){o.btnPrev.css('opacity',0.9)}c=true;j='backward';return backward()});$(o.btnPrev).bind(o.evtStop,function(){if(h){o.btnPrev.css('opacity',0.6)}c=false;j=null;return stop()})}if(o.btnNext){$(o.btnNext).bind(o.evtStart,function(){if(h){o.btnNext.css('opacity',0.9)}c=true;j='forward';return forward()});$(o.btnNext).bind(o.evtStop,function(){if(h){o.btnNext.css('opacity',0.6)}c=false;j=null;return stop()})}if(o.auto===true){c=true;forward()}if(o.mouseWheel&&f.mousewheel){f.mousewheel(function(e,d){if(!o.circular&&(d>0?(p+B<r):(p>0))||o.circular){g+=1;if(c===false){if(d>0){forward(x,true)}else{backward(x,true)}c=true}}})}function forward(a,b){var s=(a?a:x);if(c===true&&j==="backward"){return}if(!o.circular){if(p+s+(o.vertical?D:B)>u){s=u-(p+(o.vertical?D:B))}}ul.animate(animCss=="left"?{left:-(p+s)}:{top:-(p+s)},o.speed,o.easing,function(){p+=s;if(o.circular){if(p+(o.vertical?D:B)+m>=w){ul.css(o.vertical?'top':'left',-p+u);p-=u}}if(!b&&c){forward()}else if(b){if(--g>0){this.forward(x,true)}else{c=false;j=null}}})}function backward(a,b){var s=(a?a:x);if(c===true&&j==="forward"){return}if(!o.circular){if(p-s<0){s=p-0}}ul.animate(animCss=="left"?{left:-(p-s)}:{top:-(p-s)},o.speed,o.easing,function(){p-=s;if(o.circular){if(p<=m){ul.css(o.vertical?'top':'left',-(p+u));p+=u}}if(!b&&c){backward()}else if(b){if(--g>0){backward(x,true)}else{c=false;j=null}}})}function stop(){if(!o.eltByElt){ul.stop();p=0-parseInt(ul.css(animCss))}c=false;j=null}function imgSize(a,b){if(b=='width'){return a.find('img').width()}else{return a.find('img').height()}}function elHeight(a){var b=a.find('img');if(o.vertical){return parseInt(a.css('margin-left'))+parseInt(a.css('margin-right'))+parseInt(b.width())+parseInt(a.css('border-left-width'))+parseInt(a.css('border-right-width'))+parseInt(a.css('padding-right'))+parseInt(a.css('padding-left'))}else{return parseInt(a.css('margin-top'))+parseInt(a.css('margin-bottom'))+parseInt(b.width())+parseInt(a.css('border-top-height'))+parseInt(a.css('border-bottom-height'))+parseInt(a.css('padding-top'))+parseInt(a.css('padding-bottom'))}}function debug(a){$('#debug').html($('#debug').html()+a+"<br/>")}})};function css(a,b){return parseInt($.css(a[0],b))||0}function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')}function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
As I said, I want to change width of this element so I can change number of displayed images from 4 to 3 (it's easy to find in both sources above). But while it works fine for FF and Opera it does not work in IE.
Need to find how width of this element is calculated in this script...
Bookmarks