• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

konfuse JS-Datei

Status
Für weitere Antworten geschlossen.

Thai16

Neues Mitglied
Hab im Internet ne schöne Navigation gefunden, die ich eigentlich auch kapieren möchte, um sie irgenwann selber zu machen.

da ist aber eine JS-Datei dabei, bei der ich schlottere, wahrscheinlich massig reguläre Ausdrücke, die ich (noch) nicht beherrsche...
Gibts im Internet irgendwas, das mir das übersetzen kann, oder will sich zufällig einer von euch dranmachen, das Ding sichtbar zu machen?
Wär euch echt zu Dank verbunden, wär sehr interessant...

hier der Code (ein ziemlich langer :-( ):

HTML:
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}('7.19="1B/1x/1K/x.2t";7.3g="1B/1x/1K/3Q-54.2t";7.29="1B/1x/1K/3Q-4r.2t";7.56=14;7.1W=5;7.1O=3;7.D=2;7.1C=3;7.2n="#4u";7.2h="1B/1x/1K/3f-40.3N";7.1D="#4w";7.37="1B/1x/1K/3f-4x.3N";7.47=4y;7.2S=4z;7.1n={2I:1,2i:2,2J:3,2K:4};7.1X={2b:1,2f:2};7.R=[];7.3Z=4A;7.4B=9(){8 1p=1J.30.2a();8 3Y=1J.55.2a();8 4a=1J.4C;8 r=1t;e(1p.1E("35")>-1&&1J.4D>=4E)r=1j;1g e(4a=="4F 4G 4H"){e(1b.39){e(3Y.1E("34")==0){r=/4I (\\d(.\\d*)?)/.4J(1p)&&4K(4L.$1)>=5.1}1g r=1j}}L r};7.1F=9(){H(8 i=0,A=j;A=6.R[i];i++){A.1F()}};7.4M=9(){8 2v=[];H(8 i=0,A=j;A=6.R[i];i++){2v[i]=A.16()}1b.4N(2v.3p(""))};9 7(B,1G,20,21,23,13){6.2w=2w;6.18=18;6.16=16;6.1F=1F;6.1a=1t;6.1Z=1Z;6.E=E;6.Q=[];6.41=v 1e();6.2s=v 1e();6.1i=v 1e();6.2A=v 1e();6.2r=v 1e();6.V=7.R.z;7.R[6.V]=6;8 1T="7"+6.V;8 2c=j;8 2d=j;8 N=j;8 P=1t;8 G=[];8 2T=-1;8 b=j;8 24=1t;8 n=6;8 a=j;8 1U=1G==7.1X.2b?"1q":"1k";8 1N=j;9 2w(1y,1M){8 g=v 1z(1y,1M,6);g.s=6.Q.z;6.Q[g.s]=g};9 18(22){e(!22.2G==6)4O v 4P("4Q 4R a A 4S");e(N==j)N=v 1s(7.1X.2f,-5,2,7.1n.2i);8 m=N.18(22);G[22.s]=m;m.1i=3x;m.2s=3y;m.2A=3A;m.2r=3C;L m};9 1F(){3w();3e();3W();24=1j};9 1Z(){e(24){n.1a=1j;P=1j;42();b["J"].f.2e="4T";b["J"].f.4U=7.3Z++;2D();n.41()}};9 E(){e(24){n.1a=1t;P=1j;H(8 i=0,g=j;g=b.g[i];i++)1R(g);e(N)N.E();2D();n.2s()}};9 42(){8 2F=B.2o==1z;8 1l=2F?B.2G.b["g"][B.s]:B;8 p=1l;8 x=0;8 y=0;8 2N=0;8 2M=(S.43?S.43:1b.46.4X)-1I(b["J"].f.q);8 2R=0;8 2Q=(S.3I?S.3I:1b.46.4Y)-1I(b["J"].f.w);4Z(2F?p.2q.1A.1E("3E")==-1:p.2H){x+=p.50;y+=p.52;e(p.49)x-=p.49;e(p.3v)y-=p.3v;p=p.2H}e(B.2o==1z){x+=1I(p.2q.f.1k);y+=1I(p.2q.f.1q)}3c(23){O 7.1n.2I:Y;O 7.1n.2i:x+=1l.2y;Y;O 7.1n.2J:y+=1l.2B;Y;O 7.1n.2K:x+=1l.2y;y+=1l.2B;Y}x+=20;y+=21;x=1L.2O(1L.2P(x,2M),2N);y=1L.2O(1L.2P(y,2Q),2R);b["J"].f.1k=x+"l";b["J"].f.1q=y+"l"};9 2D(){8 1c=1I(b["U"].f[1U]);8 1v=n.1a?0:-1N;e(a!=j)a.3K();a=v k(1c,1v,7.2S,2T);a.1V=2U;a.27=2X;a.3G()};9 2U(x){b["U"].f[1U]=x+"l"};9 2X(){e(!n.1a)b["J"].f.2e="33";P=1t};9 3W(){8 K=b["Q"].2y;8 T=b["Q"].2B;8 1p=1J.30.2a();b["J"].f.q=K+7.D+2+"l";b["J"].f.w=T+7.D+2+"l";b["U"].f.q=K+7.D+"l";b["U"].f.w=T+7.D+"l";2c=T+7.D;2d=K+7.D;1N=1G==7.1X.2b?2c:2d;b["U"].f[1U]=-1N-7.D+"l";b["J"].f.2e="33";e(1p.1E("34")==-1||1p.1E("35")>-1){b["11"].f.q=K+"l";b["11"].f.w=T+"l";b["11"].f.1D=7.1D;b["X"].f.1k=K+"l";b["X"].f.w=T-(7.1C-7.D)+"l";b["X"].f.1D=7.2n;b["W"].f.1q=T+"l";b["W"].f.q=K-7.1C+"l";b["W"].f.1D=7.2n}1g{b["11"].I.F=7.37;b["11"].I.q=K;b["11"].I.w=T;b["X"].I.F=7.2h;b["X"].f.1k=K+"l";b["X"].I.q=7.D;b["X"].I.w=T-(7.1C-7.D);b["W"].I.F=7.2h;b["W"].f.1q=T+"l";b["W"].I.w=7.D;b["W"].I.q=K-7.1C}};9 3w(){8 A=1b.39(1T);8 1r=A.1r?A.1r:A.4h("*");b={};b["J"]=A;b["g"]=[];H(8 i=0,Z=j;Z=1r[i];i++){3c(Z.1A){O"Q":O"U":O"11":O"X":O"W":b[Z.1A]=Z;Y;O"g":Z.s=b["g"].z;b["g"][Z.s]=Z;Y}}n.b=b};9 3e(){H(8 i=0,g=j;g=b.g[i];i++){g.1i=3l;g.1Q=3n;g.3P=3q}e(2k B.4i!="2m"){B.1i=3r;B.1Q=3s}b["U"].1i=3t;b["U"].1Q=3u};9 3m(12){12.1A="g 4j";e(G[12.s])12.3j.I.F=7.3g};9 1R(12){12.1A="g";e(G[12.s])12.3j.I.F=7.29};9 3l(){e(!P){3m(6);e(G[6.s])N.17(G[6.s]);1g e(N)N.E()}};9 3n(){e(!P){e(G[6.s]){N.1h(G[6.s])}1g{1R(6)}}};9 3q(){e(!P){e(n.Q[6.s].2C)4l.4m=n.Q[6.s].2C}};9 3r(){13.17(n)};9 3s(){13.1h(n)};9 3t(){e(!P){13.17(n);n.1i()}};9 3u(){e(!P){13.1h(n)}};9 3x(){e(!P){13.17(n)}};9 3y(){H(8 i=0;i<G.z;i++){e(G[i]==6){1R(b["g"][i]);Y}}};9 3A(){13.1h(n)};9 3C(){13.17(n)};9 16(){8 2j=[];8 3F="3E"+(B.2o!=1z?" 1q":"");H(8 i=0,g=j;g=6.Q[i];i++){2j[i]=g.16(G[i])}L\'<M 1T="\'+1T+\'" 1d="\'+3F+\'">\'+\'<M 1d="U"><3h 1d="Q" 4q="0" 4s="0" 4t="0">\'+\'<1o><15 3L="2"><1m F="\'+7.19+\'" q="1" w="\'+7.1W+\'"></15></1o>\'+2j.3p(\'\')+\'<1o><15 3L="2"><1m F="\'+7.19+\'" q="1" w="\'+7.1W+\'"></15></1o></3h>\'+\'<M 1d="W"><1m F="\'+7.19+\'" q="1" w="1"></M>\'+\'<M 1d="X"><1m F="\'+7.19+\'" q="1" w="1"></M>\'+\'<M 1d="11"><1m F="\'+7.19+\'" q="1" w="1"></M>\'+\'</M></M>\'}}1s.R=[];9 1s(1G,20,21,23){6.18=18;6.17=17;6.1h=1h;6.E=E;6.25=25;8 2u=[];8 n=6;8 u=j;6.V=1s.R.z;1s.R[6.V]=6;9 18(B){8 m=v 7(B,1G,20,21,23,6);2u[2u.z]=m;L m};9 17(h){e(h!=u){e(u!=j)E(u);u=h;h.1Z()}1g{2l(h)}};9 1h(h){e(u==h&&h.1a){e(!h.1u)3X(h)}};9 3X(h){h.2A();h.1u=S.4W("1s.R["+n.V+"].E(7.R["+h.V+"])",7.47)};9 2l(h){e(h.1u){h.2r();S.51(h.1u);h.1u=j}};9 E(h){e(!h&&u)h=u;e(h&&u==h&&h.1a){25()}};9 25(){e(j!=u){2l(u);u.1u=j;u.E();u=j}}};9 1z(1y,1M,2V){6.16=16;6.4b=1y;6.2C=1M;6.2G=2V;9 16(2Y){8 3i=2Y?7.29:7.19;8 2g=7.1O+7.1W;8 3a="26:"+7.1O+"l; 26-1k:"+2g+"l;";8 3d="26:"+7.1O+"l; 26-2f:"+2g+"l;";L\'<1o 1d="g"><15 4g f="\'+3a+\'">\'+1y+\'</15><15 q="14" f="\'+3d+\'">\'+\'<1m F="\'+3i+\'" q="14" w="14"></15></1o>\'}};9 k(3z,3B,1H,1f){e(2k 1f=="2m")1f=0;e(2k 1S=="2m")1S="l";6.1c=3z;6.1v=3B;6.2z=1H;6.1f=-1f;6.1S=1S;6.4o=j;6.27=v 1e();6.1V=v 1e()};k.1Y.3G=9(){6.2E=v 38().3b();6.3O=6.2E+6.2z;8 2p=6.1v-6.1c;6.3S=6.1c+((1+6.1f)*2p/3);6.3U=6.1c+((2+6.1f)*2p/3);k.2L(6)};k.1Y.3K=9(){k.28(6)};k.1Y.3k=9(1H){e(1H<6.3O){8 45=1H-6.2E;6.1V(k.3D(45/6.2z,6.1c,6.1v,6.3S,6.3U))}1g 6.44()};k.1Y.44=9(){k.28(6);6.1V(6.1v);6.27()};k.2L=9(o){8 V=6.C.z;6.C[V]=o;e(6.C.z==1){6.1P=S.4c("k.36()",6.2W)}};k.28=9(o){H(8 i=0;i<6.C.z;i++){e(o==6.C[i]){6.C=6.C.31(0,i).4d(6.C.31(i+1));Y}}e(6.C.z==0){S.4e(6.1P);6.1P=j}};k.36=9(){8 3o=v 38().3b();H(8 i=0;i<6.C.z;i++){6.C[i].3k(3o)}};k.3J=9(t){L t*t*t};k.32=9(t){L 3*t*t*(1-t)};k.3T=9(t){L 3*t*(1-t)*(1-t)};k.48=9(t){L(1-t)*(1-t)*(1-t)};k.3D=9(1w,3V,3H,3R,3M){L 3H*6.3J(1w)+3M*6.32(1w)+3R*6.3T(1w)+3V*6.48(1w)};k.C=[];k.2W=10;k.1P=j;e(S.2Z){8 2x=[\'4k\',\'1i\',\'1Q\',\'4n\',\'4p\',\'4v\',\'3P\',\'4V\',\'53\'];S.2Z("4f",9(){8 p;H(8 d=1b.1r.z;d--;){p=1b.1r[d];H(8 c=2x.z;c--;){p[2x[c]]=j}}})}',62,317,'||||||this|TransMenu|var|function||elmCache|||if|style|item|oMenu||null|Accelimation|px||_this||el|width||_index||current|new|height|||length|menu|oActuator|instances|shadowSize|hide|src|childMenus|for|firstChild|clip|ow|return|div|childMenuSet|case|animating|items|registry|window|oh|content|index|shadowBottom|shadowRight|break|elm||background|oRow|parentMenuSet||td|toString|showMenu|addMenu|spacerGif|isOpen|document|x0|class|Function|zip|else|hideMenu|onmouseover|true|left|act|img|reference|tr|ua|top|all|TransMenuSet|false|hideTimer|x1|percent|md_aphelion|sText|TransMenuItem|className|templates|shadowOffset|backgroundColor|indexOf|initialize|iDirection|time|parseInt|navigator|images|Math|sUrl|dim|itemPadding|timerID|onmouseout|dehighlight|unit|id|pos|onframe|menuPadding|direction|prototype|show|iLeft|iTop|oMenuItem|iReferencePoint|ready|hideCurrent|padding|onend|_remove|dingbatOff|toLowerCase|down|contentHeight|contentWidth|visibility|right|iEdgePadding|shadowPng|topRight|aHtml|typeof|cancelHide|undefined|shadowColor|constructor|dx|parentNode|ondequeue|ondeactivate|gif|menus|aMenuHtml|addItem|cearElementProps|offsetWidth|dt|onqueue|offsetHeight|url|slideStart|t0|sub|parentMenu|offsetParent|topLeft|bottomLeft|bottomRight|_add|maxX|minX|max|min|maxY|minY|slideTime|slideAccel|slideFrame|oParent|targetRes|slideEnd|bDingbat|attachEvent|userAgent|slice|_B2|hidden|mac|gecko|_paintAll|backgroundPng|Date|getElementById|sPaddingLeft|getTime|switch|sPaddingRight|initEvents|grey|dingbatOn|table|sDingbat|lastChild|_paint|item_mouseover|highlight|item_mouseout|now|join|item_click|actuator_mouseover|actuator_mouseout|content_mouseover|content_mouseout|scrollTop|initCache|child_mouseover|child_deactivate|from|child_queue|to|child_dequeue|_getBezier|transMenu|sClassName|start|endPos|innerHeight|_B1|stop|colspan|control2|png|t1|onclick|submenu|control1|c1|_B3|c2|startPos|initSize|scheduleHide|pf|_maxZ||onactivate|setContainerPos|innerWidth|_end|elapsed|body|hideDelay|_B4|scrollLeft|an|text|setInterval|concat|clearInterval|onunload|nowrap|getElementsByTagName|tagName|hover|data|location|href|onmousedown|timer|onmouseup|cellpadding|off|cellspacing|border|888|ondblclick|666|80|1000|400|100|isSupported|appName|productSub|20020605|Microsoft|Internet|Explorer|msie|test|Number|RegExp|renderAll|write|throw|Error|Cannot|add|here|visible|zIndex|onselectstart|setTimeout|clientWidth|clientHeight|while|offsetLeft|clearTimeout|offsetTop|oncontextmenu|on|platform|dingbatSize'.split('|'),0,{}))

die Seite dazu:
http://www.hs-prutz.tsn.at/

der Code ist in der Datei 'unsichtbar'..
weiß ich auch nicht wie das geht, wär auch interessant *g*... naja, man lernt nie aus :-)

--> der Code ist sogar jetzt noch unsichtbar, wenn ich ihn als "Code" einfüge..geil :-) --> daher jetzt als HTML-Code eingefügt, obwohls natürlich ein JS-Code ist
 
Werbung:
Status
Für weitere Antworten geschlossen.
Zurück
Oben