Codice PHP:
var Rules = {
'.small': function(el){
el.onclick=openWinPopUp;
}
};
window.onload=function(){
EventSelectors.start(Rules);
};
var observer = {
onDestroy : function(event, win){
this.opener=win.opener;
new Effect.Opacity(this.opener,{
duration: 0.5,
transition: Effect.Transitions.linear,
from: 0.5, to: 1.0
}
);
$(this.opener).onclick=openWinPopUp;
}
};
Windows.addObserver(observer);
var openWinPopUp= function(){
this.onclick=null;
new Effect.Opacity(this.id,{
duration: 1.0,
transition: Effect.Transitions.linear,
from: 1.0, to: 0.5
}
);
if(!this.image){ //QUI
this.loader_id=this.id+'_loader';
new Insertion.After(this,'<div class="loader" id="'+this.loader_id+'"></div>');
this.loader=$(this.loader_id);
this.offset=Position.cumulativeOffset(this);
Element.setStyle(this.loader,{
top:this.offset[1]+(this.height-parseInt(Element.getStyle(this.loader,'height')))/2+'px',
left:this.offset[0]+(this.width-parseInt(Element.getStyle(this.loader,'width')))/2+'px',
display:'block'
});
this.image=new Image(); //DA QUI
this.image.info=this.getAttribute('info');
this.image.opener=this.id;
this.image.src=this.getAttribute('big_src')+'?'+new Date().getTime();
this.image.onload=openWin;
}else{
this.image.onload();
}//A QUI
};
openWin=function(){
this.loader=$(this.opener+'_loader');
if(this.loader)Element.remove(this.loader);
var win = new Window(
'big_'+this.opener,{
className: 'dialog',
width:this.width,
height:this.height,
zIndex: 100,
resizable: true,
title:this.info,
showEffect:Effect.Appear,
hideEffect: Effect.Fade,
showEffectOptions:{duration: 0.2},
hideEffectOptions:{duration: 0.2},
maximizable:false,
minimizable:false,
draggable:true,
wiredDrag: false
}
);
win.getContent().appendChild(this);
win.setDestroyOnClose();
win.showCenter();
win.setZIndex(Windows.maxZIndex+20);
win.opener=this.opener;
};
Qua c'è tutto, l'importante è che non sia presente il marchio aziendale e il sito, cosa mi puoi dire?
//QUI e //DA QUI //A QUI sono i marker dove si svolge il misfatto