janosh Skrevet 27. mars 2003 Del Skrevet 27. mars 2003 Jeg satt og leste litt nyheter hos dagbladet, da så jeg en fin ticker i øverste venstre hjørnet, og tenkte jeg skulle se hvordan de hadde laget denne. Jeg har gjort litt javascripting, og tenkte dette skulle gå bra, så jeg begynte å lese kildekoden, det første jeg fant var ganske enkelt, men linket videre til denne adressen: http://www.dagbladet.no/ads/rubrikk/stilli...kercontent.html dette er selve tickeren, men prøv å les kildekoden hær! det er ikke mye til hjelp. denne linjen: eval(' '+unescape('%76%61%72%20%66%3D%6E%65%77%20%53%74%72%69%6E%67%28%29%3B%77%68%69%6C%65%28%74%2E%6C%65%6E%67%74%68%3E%32%29%7B%70%3D%74%2E%73%75%62%73%74%72%69%6E%67%28%30%2C%20%32%29%3B%74%3D%74%2E%73%75%62%73%74%72%69%6E%67%28%32%2C%74%2E%6C%65%6E%67%74%68%29%3B%66%3D%66%2B%75%6E%65%73%63%61%70%65%28%27%25%27%2B%20%70%29%3B%7D%66%3D%66%2B%75%6E%65%73%63%61%70%65%28%27%25%27%2B%74%29%3B%65%76%61%6C%28%66%29%3B')); fikk jeg unescaped til å bli dette: var f=new String(); while(t.length>2) { p=t.substring(0, 2); t=t.substring(2,t.length); f=f+unescape('%'+ p); } f=f+unescape('%'+t); eval(f); men den lange blokken med noe som ser ut som HEX tall klarer jeg ikke å lese... noen som kan hjelpe meg? Lenke til kommentar
allyse Skrevet 27. mars 2003 Del Skrevet 27. mars 2003 *merk du kan ikke "stjele" koden, men du har lov å prøve den ut* <head> <script language='JavaScript1.2'> dbroll=new Array(); dbroll[0]=new Array('',''); dbroll[1]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=36','Finnmark Fylkeskommune- Lakselv Videregående skole<br>[Lakselv Videregående Skole]'); dbroll[2]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=35','NTNU- Norges Teknisk-Naturvitenskapelige Universitet<br>[NTNU]'); dbroll[3]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=34','Hunter?<br>[Nyjobb AS]'); dbroll[4]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=33','Dyktige TM selgere søkes<br>[Nyjobb AS på vegne av oppdragsgiver]'); dbroll[5]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=32','Motiverende teamledere søkes<br>[Nyjobb AS på vegne av anonym oppdragsgiver]'); dbroll[6]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=31','Pluss-Landsforeningen mot aids<br>[Pluss- Landsforeningen mot Aids]'); dbroll[7]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=30','Har du alltid villet bo og jobbe i solen? Her er muligheten..<br>[Club Greece]'); dbroll[8]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=29','Stilling ledig som Rektor ved Høgskolen i Nesna<br>[Høgskolen i Nesna]'); dbroll[9]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=27','Ledig stilling i NONITE<br>[NONITE]'); dbroll[10]=new Array('http://www.dagbladet.no/rubrikk/stilling/vis.php?id=25','Barne- og familieetaten MST-enheten<br>[barne- og familieetaten]'); </script> <style type="text/css"> <!-- /* rubrikk.css */ h3 {line-height:18px;font-size: 18px; font-family: arial, helvetica, sans-serif; background:#ffffff;color:#039;} .login-box { background:#0066cc;color:#0066cc; border:1px solid; border-color:#A0B3D5 #808080 #808080 #A0B3D5;} .blaa-box { background:#D5DFF1;color:#000000; border:1px solid; border-color:#E1EAFA #A0B3D6 #A0B3D6 #E1EAFA;} .rub {font-size: 11px; font-family: verdana, arial, helvetica, sans-serif;} .alert { background:#ffffff;color:#ff0033; font-size: 11px; font-family: verdana, arial, helvetica, sans-serif; font-weight:bold;} .formSelect, .formText {width: 350px;} input, select, option, textarea {font-family: Verdana, Arial, Helvetica, san-serif;font-size: 11px;} --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <script language="JavaScript1.2"> var t=new String('696E74657276616C203D2033353B0D0A696E6372656D656E74203D20323B0D0A7061757365203D20333530303B0D0A6263203D202223666666666666223B0D0A6D61784C6F6F7073203D20323B0D0A746172676574203D2027205441524745543D225F746F702220273B0D0A636C6173736964203D202720434C4153533D227275622220273B0D0A6E756D686561646C696E6573203D20393B0D0A66696E6974653D286D61784C6F6F70733E30293B7374796C654F626A3D222E7374796C65223B69737061757365643D303B0D0A76617220704C3D302C70543D302C64573D3135302C64483D39303B0D0A0D0A7661722070733D33353B0D0A66756E6374696F6E207830383232362869297B0D0A20206F626A3D6576616C28226D7367222B692B7374796C654F626A293B0D0A202072657475726E206F626A3B0D0A7D0D0A66756E6374696F6E2078303635333039286E2C73686F77297B0D0A2020766172206342616E6E65723D783038323236286E293B0D0A20206342616E6E65722E7669736962696C6974793D2873686F77293F2276697369626C65223A2268696464656E223B7D0D0A0D0A66756E6374696F6E207830353834343628297B0D0A202076617220746D70423D63757272656E743B0D0A202063757272656E743D28746D70423D3D6462726F6C6C2E6C656E6774682D31293F303A746D70422B313B0D0A202069662863757272656E74213D302970733D70617573653B78313135353239353228746D70422C63757272656E74293B7D0D0A0D0A66756E6374696F6E2078313332343828297B0D0A20206342616E2E706978656C546F702D3D696E6372656D656E743B0D0A20206966286E42616E2E706978656C546F702D696E6372656D656E743C3D6E7442616E297B0D0A202020206E42616E2E706978656C546F703D6E7442616E3B0D0A20202020636C656172496E74657276616C28696E74657276616C4944293B0D0A202020206342616E2E7669736962696C6974793D2268696464656E223B0D0A2020202074696D656F757449443D73657454696D656F75742822783035383434362829222C7073293B0D0A2020202069662863757272656E743D3D6462726F6C6C2E6C656E6774682D3129746F702E7352656C6F616428290D0A20207D656C73657B0D0A202020206E42616E2E706978656C546F702D3D696E6372656D656E743B0D0A20207D0D0A7D0D0A0D0A66756E6374696F6E2078313135353239353228746D70422C746F297B0D0A20206342616E3D78303832323628746D7042293B0D0A20206E42616E3D78303832323628746F293B0D0A20206E42616E2E706978656C546F703D6342616E2E706978656C546F702B64483B0D0A20206E7442616E3D6342616E2E706978656C546F703B0D0A20207830363533303928746F2C74727565293B0D0A2020696E74657276616C49443D736574496E74657276616C28227831333234382829222C696E74657276616C293B0D0A7D0D0A0D0A66756E6374696F6E20783130393636286C506F732C74506F73297B0D0A2020746869732E7374796C652E706978656C4C6566743D6C506F733B0D0A2020746869732E7374796C652E706978656C546F703D74506F733B0D0A7D0D0A0D0A66756E6374696F6E20783238323630323228297B0D0A202076617220746578743D273C4449562049443D22626E7222205354594C453D22706F736974696F6E3A6162736F6C757465223E273B0D0A2020666F722876617220693D6462726F6C6C2E6C656E6774682D313B693E3D303B692D2D297B0D0A20202020746578742B3D273C4449562049443D226D7367272B692B2722205354594C453D22706F736974696F6E3A6162736F6C757465223E3C5C2F4449563E273B0D0A20207D0D0A2020746578742B3D273C5C2F4449563E273B0D0A2020646F63756D656E742E626F64792E696E7365727441646A6163656E7448544D4C28224265666F7265456E64222C74657874293B0D0A20207769746828626E722E7374796C65297B0D0A2020202077696474683D64573B0D0A202020206865696768743D64483B636C69703D2272656374283020222B64572B2220222B64482B22203029223B0D0A202020206261636B67726F756E64436F6C6F723D62633B0D0A20207D0D0A2020626E722E7831303936363D7831303936363B0D0A2020626E722E78313039363628704C2C7054293B0D0A2020666F7228693D303B693C6462726F6C6C2E6C656E6774683B692B2B297B0D0A2020202077697468286576616C28226D7367222B692B222E7374796C652229297B0D0A2020202020207669736962696C6974793D2268696464656E223B20200D0A20202020202077696474683D64572D323B0D0A2020202020206261636B67726F756E64436F6C6F723D62633B0D0A202020207D0D0A20206576616C28226D7367222B692B222E7831303936363D78313039363622293B0D0A20206576616C28226D7367222B692B222E78313039363628322C302922293B7D0D0A7D0D0A0D0A66756E6374696F6E207832363537343828297B0D0A2020766172206342616E6E65723B0D0A2020666F7228693D303B693C6462726F6C6C2E6C656E6774683B692B2B297B0D0A202020206342616E6E65723D6576616C28226D7367222B69293B0D0A202020206E6577735374723D223C412022202B7461726765742B636C61737369642B2220485245463D222B6462726F6C6C5B6E657773436F756E745D5B305D2B223E222B6462726F6C6C5B6E657773436F756E745D5B315D2B223C5C2F413E223B0D0A202020206342616E6E65722E696E6E657248544D4C3D6E6577735374723B0D0A202020206E657773436F756E742B2B3B0D0A202020206966286E657773436F756E743D3D6462726F6C6C2E6C656E677468296E657773436F756E743D303B0D0A20207D0D0A7D0D0A0D0A66756E6374696F6E20783234393838343928297B0D0A20206E657773436F756E743D303B0D0A202069662866696E697465296C6F6F70436F756E743D303B0D0A2020783238323630323228293B0D0A20207832363537343828293B0D0A20207833333228293B0D0A202077696E646F772E6F6E726573697A653D783331363B0D0A7D0D0A0D0A66756E6374696F6E207833333228297B0D0A20207830363533303928302C74727565293B0D0A202063757272656E743D303B0D0A202074696D656F757449443D73657454696D656F75742822783035383434362829222C7073293B0D0A7D0D0A0D0A66756E6374696F6E207833313628297B0D0A202077696E646F772E6C6F636174696F6E2E72656C6F616428293B0D0A7D0D0A77696E646F772E6F6E6C6F61643D78323439383834393B'); eval(' '+unescape('%76%61%72%20%66%3D%6E%65%77%20%53%74%72%69%6E%67%28%29%3B%77%68%69%6C%65%28%74%2E%6C%65%6E%67%74%68%3E%32%29%7B%70%3D%74%2E%73%75%62%73%74%72%69%6E%67%28%30%2C%20%32%29%3B%74%3D%74%2E%73%75%62%73%74%72%69%6E%67%28%32%2C%74%2E%6C%65%6E%67%74%68%29%3B%66%3D%66%2B%75%6E%65%73%63%61%70%65%28%27%25%27%2B%20%70%29%3B%7D%66%3D%66%2B%75%6E%65%73%63%61%70%65%28%27%25%27%2B%74%29%3B%65%76%61%6C%28%66%29%3B')); </script> </body> </html> Lenke til kommentar
janosh Skrevet 28. mars 2003 Forfatter Del Skrevet 28. mars 2003 Ja, jeg merket meg det Det er derfor jeg nesten regner med at den lange blokken med nr og bokstaver (?hex?) blir oversatt til vanlig javscript av browseren, så derfor burde det jo være mulig å decode den også? Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå