Poslao: 18 Nov 2008 18:14
|
offline
- Pridružio: 23 Sep 2008
- Poruke: 52
- Gde živiš: Sabac
|
Evo, nasao sam neki ajax script. Sve super odgovara, medjutim ne odgovara mi raspored foldera po kojima su css i js, image fajlovi rasporedjeni.
Tragao sam po kodu za linkovima do tih fajlova i nista. Onda sam poceo da bisem iz index.htm strane deo po deo i na kraju zakljucio da je stvar u jednom js fajlu.
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}('j u=\'1.0\';v 1g(){j a=\'H/1h.1i\';i(1j.V){5=1k
V("1l.1m");5.W=k;5.X(a)}I i(4.J&&4.J.Y){5=4.J.Y("","",K);5.W=k;
5.X(a)}w=5.6(\'h\')[0].7(\'L\');M=5.6(\'h\')[0].7(\'Z\');j b=4.x(\'N
\');b.y(\'O\',\'q\'+o);b.y(\'10\',\'11\');b.12=\'13 14 <a 15="1n://1o.1p.1q
/?1r=H" 1s="13 14 z 2.0 A B C \'+u+\'" 3="r-16: 17; P: 18;">z 2.0 A B C
\'+u+\'</a>\';b.3.19=\'1t\';b.3.19=\'1u\';b.3.l=\'s\';b.3.1v=\'Q\';b.3.1w=
\'8\'+\'m\';b.3.1x=\'8\'+\'m\';b.3.1y=\'1z\';b.3.P=\'18\';b.3.r=\'1A 17
1B, 1C, 1D-1E\';j c=4.x(\'N\');j d=4.x(\'N\');j e=4.x(\'1F\');j
f=k;e.1G=\'1a/1b\';e.1H=\'1I\';e.15=\'H/\'+u+\'/1J.1b\';4.6(\'1K
\')[0].D(e);c.y(\'O\',\'p\');c.3.1L=5.6(\'t\')[0].7(\'1c\');c.3.L=4.R.1M+
\'m\';d.y(\'O\',\'E\');d.10=\'11\';d.12=5.6(\'h\')[0].7(\'1a\');d.3.L=w+
\'m\';d.3.1N=5.6(\'h\')[0].7(\'r-1O\');d.3.1P=5.6(\'h\')[0].7(\'r-1Q\');
d.3.1R=5.6(\'h\')[0].7(\'r-3\');d.3.1S=5.6(\'h\')[0].7(\'r-16\')+\'m\';
d.3.P=5.6(\'h\')[0].7(\'1T\');d.3.1U=w+\'m\';d.3.Z=M+\'m\';d.3.1V=
\'-\'+M/\'2\'+\'m\';d.3.1W=\'-\'+w/\'2\'+\'m\';d.3.1X=5.6(\'h\')[0].7(\'1c
\');d.3.1Y=\'1Z(\\\'\'+5.6("h")[0].7("20")+\'\\\')\';4.6(\'S\')[0].D(b);
4.6(\'S\')[0].D(d);i(5.6(\'t\')[0].7(\'F\')!="k"){4.6(\'S\')[0].D(c);j g=5.6(\'t
\')[0].7(\'T\');4.9(\'p\').21=\'22\';4.9(\'p\').3.23=\'24(T=\'+g+\')\';4.9(\'p
\').3.T=\'.\'+g+\'\'}}v 25(){j a=k;i(!a){i(4.9(\'q\'+o)!=K){i(5.6(\'t
\')[0].7(\'F\')!="k"){4.9(\'p\').3.l=\'s\'}i(5.6(\'h\')[0].7(\'Q\')!="k"){4.9(\'E
\').3.l=\'s\'}4.9(\'q\'+o).3.l=\'s\';U()}I{26(\'z 2.0 A B \'+u+\' C 27
28:\\n\\29 2a 2b 2c 2d 2e 2f 2g z 2.0 A B C. 2h, 2i 2j 2k 2l 2m\\\'2n 2o, 2p 2q 2r 2s 2t 2u 2v. 2w 2x 2y 2z 2A.\')}}I{4.9(\'q\'+o).3.l=\'G\';i(5.6(\'t
\')[0].7(\'F\')!="k"){4.9(\'p\').3.l=\'s\'}i(5.6(\'h\')[0].7(\'Q\')!="k"){4.9(\'E
\').3.l=\'s\'}U()}}v 2B(){i(5.6(\'t\')[0].7(\'F\')!="k"){4.9(\'p\').3.l=
\'G\'}4.9(\'E\').3.l=\'G\';i(4.9(\'q\'+o)!=K){4.9(\'q\'+o).3.l=\'G\'}1d()}v
U(){4.R.3.1e=\'2C\'}v 1d(){4.R.3.1e=\'2D\'}j o=1f.2E(1f.2F()*2G);
',62,167,'|||style|document|config|getElementsByTagName|getAttribute|
|getElementById||||||||loadingmessage|if|var|false|display|px||randomid|
LoadingMessageModalPane|credits_|font|block|modalpanel|Web20AjaxLoadingPanelVersion|function|
loadingMessageHeight|createElement|setAttribute|Web|AJAX|Loading|Panel|appendChild|loadingMessageContainer|modal|
none|Web20AjaxLoadingPanel|else|implementation|
null|height|loadingMessageWidth|div|id|color|visible|documentElement|body|opacity|hidePageScrollBars|ActiveXObject|
async|load|createDocument|width|unselectable|on|innerHTML|Powered|by|href|size|10px|white|position|text|css|backcolor|showPageScrollBars
|overflowY|Math|renderLoadingPanel|Config|xml|window|new|Microsoft|XMLDOM|http|acidmartin|wemakesites|net|pageId|title|absolute|fixed|visibility
|bottom|right|zIndex|120000|normal|Arial|Verdana|Sans|serif|link|type|rel|stylesheet|W20ALP|head|background|scrollHeight|fontFamily|family|fontWeight
|weight|fontStyle|fontSize|forecolor|lineHeight|marginLeft|marginTop|backgroundColor|backgroundImage|url|loadingimage|className|modalPaneTrue|filter
|alpha|displayLoadingPanel|alert|System|Message|nYou|are|using|an|illegally|modified|version|of|Please|either|rollback|the|changes|you|ve|made|or|
download|it|again|from|my|website|The|script|will|not|start|hideLoadingPanel|hidden|auto|floor|random|100000000000000'.split('|'),0,{}))
Posto se css za ovaj skrip nalazi u nekom folderu nesto/1.0 preko search sam nasao gore pri vrhu koda 1.0 i izbrisao. posle toga sam css prekopirao u taj folder nesto i radilo je. Medjutim kako da izbacim css i config.xml iz tog foldera "nesto"?
|
|
|
Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
|
|
Poslao: 18 Nov 2008 18:28
|
offline
- bobby
- Administrator
- Pridružio: 04 Sep 2003
- Poruke: 24135
- Gde živiš: Wien
|
Okaci mi ceo HTML fajl, pa da ti dekodiram ovo.
Fali deo skripta, a imas jos i los prelom redova zato sto si koristio WordWrap u editoru.
|
|
|
|
|
Poslao: 21 Nov 2008 02:12
|
offline
- igor86
- Stručni saradnik
Web programiranje
- Pridružio: 24 Maj 2006
- Poruke: 1633
|
ovo si trazio
var Web20AjaxLoadingPanelVersion='1.0';
function renderLoadingPanel(){
var a='Web20AjaxLoadingPanel/Config.xml';
if(window.ActiveXObject){
config=new ActiveXObject("Microsoft.XMLDOM");
config.async=false;
config.load(a)
}
else if(document.implementation&&document.implementation.createDocument){
config=document.implementation.createDocument("","",null);
config.async=false;
config.load(a)
}
loadingMessageHeight=config.getElementsByTagName('loadingmessage')[0].getAttribute('height');
loadingMessageWidth=config.getElementsByTagName('loadingmessage')[0].getAttribute('width');
var b=document.createElement('div');
b.setAttribute('id','credits_'+randomid);
b.setAttribute('unselectable','on');
b.innerHTML='Powered by Web 2.0 AJAX Loading Panel '+Web20AjaxLoadingPanelVersion+'';
b.style.position='absolute';
b.style.position='fixed';
b.style.display='block';
b.style.visibility='visible';
b.style.bottom='8'+'px';
b.style.right='8'+'px';
b.style.zIndex='120000';
b.style.color='white';
b.style.font='normal 10px Arial, Verdana, Sans-serif';
var c=document.createElement('div');
var d=document.createElement('div');
var e=document.createElement('link');
var f=false;
e.type='text/css';
e.rel='stylesheet';
e.href='Web20AjaxLoadingPanel/'+Web20AjaxLoadingPanelVersion+'/W20ALP.css';
document.getElementsByTagName('head')[0].appendChild(e);
c.setAttribute('id','LoadingMessageModalPane');
c.style.background=config.getElementsByTagName('modalpanel')[0].getAttribute('backcolor');
c.style.height=document.documentElement.scrollHeight+'px';
d.setAttribute('id','loadingMessageContainer');
d.unselectable='on';
d.innerHTML=config.getElementsByTagName('loadingmessage')[0].getAttribute('text');
d.style.height=loadingMessageHeight+'px';
d.style.fontFamily=config.getElementsByTagName('loadingmessage')[0].getAttribute('font-family');
d.style.fontWeight=config.getElementsByTagName('loadingmessage')[0].getAttribute('font-weight');
d.style.fontStyle=config.getElementsByTagName('loadingmessage')[0].getAttribute('font-style');
d.style.fontSize=config.getElementsByTagName('loadingmessage')[0].getAttribute('font-size')+'px';
d.style.color=config.getElementsByTagName('loadingmessage')[0].getAttribute('forecolor');
d.style.lineHeight=loadingMessageHeight+'px';
d.style.width=loadingMessageWidth+'px';
d.style.marginLeft='-'+loadingMessageWidth/'2'+'px';
d.style.marginTop='-'+loadingMessageHeight/'2'+'px';
d.style.backgroundColor=config.getElementsByTagName('loadingmessage')[0].getAttribute('backcolor');
d.style.backgroundImage='url(\''+config.getElementsByTagName("loadingmessage")[0].getAttribute("loadingimage")+'\')';
document.getElementsByTagName('body')[0].appendChild(b);
document.getElementsByTagName('body')[0].appendChild(d);
if(config.getElementsByTagName('modalpanel')[0].getAttribute('modal')!="false"){
document.getElementsByTagName('body')[0].appendChild(c);
var g=config.getElementsByTagName('modalpanel')[0].getAttribute('opacity');
document.getElementById('LoadingMessageModalPane').className='modalPaneTrue';
document.getElementById('LoadingMessageModalPane').style.filter='alpha(opacity='+g+')';
document.getElementById('LoadingMessageModalPane').style.opacity='.'+g+''
}
}
function displayLoadingPanel(){
var a=false;
if(!a){
if(document.getElementById('credits_'+randomid)!=null){
if(config.getElementsByTagName('modalpanel')[0].getAttribute('modal')!="false")
document.getElementById('LoadingMessageModalPane').style.display='block'
if(config.getElementsByTagName('loadingmessage')[0].getAttribute('visible')!="false")
document.getElementById('loadingMessageContainer').style.display='block'
document.getElementById('credits_'+randomid).style.display='block';
hidePageScrollBars();
}
else
alert('Web 2.0 AJAX Loading '+Web20AjaxLoadingPanelVersion+' Panel System Message:\n\nYou are using an illegally modified version of Web 2.0 AJAX Loading Panel. Please, either rollback the changes you\'ve made, or download it again from my website. The script will not start.')
}
else{
document.getElementById('credits_'+randomid).style.display='none';
if(config.getElementsByTagName('modalpanel')[0].getAttribute('modal')!="false")
document.getElementById('LoadingMessageModalPane').style.display='block'
if(config.getElementsByTagName('loadingmessage')[0].getAttribute('visible')!="false")
document.getElementById('loadingMessageContainer').style.display='block'
hidePageScrollBars();
}
}
function hideLoadingPanel(){
if(config.getElementsByTagName('modalpanel')[0].getAttribute('modal')!="false")
document.getElementById('LoadingMessageModalPane').style.display='none'
document.getElementById('loadingMessageContainer').style.display='none';
if(document.getElementById('credits_'+randomid)!=null)
document.getElementById('credits_'+randomid).style.display='none'
showPageScrollBars()
}
function hidePageScrollBars(){
document.documentElement.style.overflowY='hidden'
}
function showPageScrollBars(){
document.documentElement.style.overflowY='auto'
}
var randomid=Math.floor(Math.random()*100000000000000);
|
|
|
|
Poslao: 22 Nov 2008 02:32
|
offline
- Pridružio: 23 Sep 2008
- Poruke: 52
- Gde živiš: Sabac
|
To care... Znaci sad mogu da ga postavim i ovako dekodiranog i da radi sve super?
|
|
|
|
Poslao: 22 Nov 2008 08:25
|
offline
- lnenad
- Stručni saradnik
Web
- Pridružio: 16 Jan 2007
- Poruke: 2860
- Gde živiš: Bijeljina
|
Da , mada sumnjiv si mi da ovo nije necije tudje djelo ?
|
|
|
|
|
Poslao: 22 Nov 2008 12:42
|
offline
- Pridružio: 23 Sep 2008
- Poruke: 52
- Gde živiš: Sabac
|
Nije moje delo, ali stvarno nemam lose namere sa ovim, sem da ispravim ovo:
e.href='Web20AjaxLoadingPanel/'+Web20AjaxLoadingPanelVersion+'/W20ALP.css';
var a='Web20AjaxLoadingPanel/Config.xml';
Covek je tako retardirano stavio da moraju stajati u folderu Web20AjaxLoadingPanel, i css i config.xml da to nema dalje. A jedini Ajax site loader koji inache valja. Bar za moj ukus. Hvala puno jos jednom.
|
|
|
|
|
Poslao: 22 Nov 2008 13:41
|
offline
- Pridružio: 23 Sep 2008
- Poruke: 52
- Gde živiš: Sabac
|
Naravno da ne. Ostavio sam i sav copyright.
Mislim da se niko nece zaliti na to sto sam ovo uradio:
e.href='Web20AjaxLoadingPanel/'+Web20AjaxLoadingPanelVersion+'/W20ALP.css';
var a='Web20AjaxLoadingPanel/Config.xml';
e.href='files/W20ALP.css';
var a='files/config.xml';
|
|
|
|