Codice HTML:
<script type="text/javascript"><!--
AVToolbar = {
count: 10,
lw:0,
s:
['width','marginLeft','marginRight','paddingLeft','paddingRight','borderLeftWidth'
,'borderRightWidth'],
parse: function(i) { return isNaN(parseInt(i))?0:parseInt(i) },
msie: 0,</p>
<p> resize: function() {
var w=0,s;
if(this.count==0)this.count=3;
if (this.msie) {
if (this.msie<6||
(this.msie>=6&&document.compatMode!=’CSS1Compat’)) {
this.iframe.style.width =
document.body.clientWidth+’px’;
this.crea.style.left=(document.body.clientWidth-
101)+’px’;
if( this.count>0)setTimeout
(’AVToolbar.resize()’,250);
return
}
else if (this.msie==6) w =
document.documentElement.clientWidth-1;
else w = document.documentElement.clientWidth;
} else {
for(s in this.s)w+=this.style(this.b,this.s[s]);
}
if(this.lw!=w) {
this.iframe.style.left=(-this.style
(this.b,’borderLeftWidth’)-this.style
(this.b,’marginLeft’))+’px’;
this.crea.style.right=(-this.style
(this.b,’borderRightWidth’)-this.style
(this.b,’marginRight’))+’px’;
this.iframe.style.width=w+’px’;
this.lw=w;
}
if( this.count>0)setTimeout(’AVToolbar.resize()’,250);
},</p>
<p> style: function(el,pr,m) { // Passare le proprieta’ CSS col nome
javascript-like (es. marginLeft)
var v;
if(!el)return 0;
if
(document.defaultView&&document.defaultView.getComputedStyle)
v=document.defaultView.getComputedStyle(el,null)[pr];
else if(el.currentStyle)v=el.currentStyle[pr];
else v=el.style[pr];
return(m?v:this.parse(v));
},</p>
<p> init: function() {
this.crea=document.getElementById
(’av_toolbar_regdiv’);
if(window.parent!=window||typeof(av_toolbar_off)!
=’undefined’){this.crea.style.display=’none’;return}
var b,c=0,i,my,u=document.location.host.match(/([a-zA-Z0-9]+)
\.altervista\.org$/)[1];
for(i=0;i<u.length;i++)c+=u.charCodeAt(i);
this.b=document.getElementsByTagName('body')[0];
if (i=navigator.userAgent.match(/MSIE (\d+)/))this.msie=i[1];
if (this.msie&&document.compatMode!='CSS1Compat') {
document.write('<'+'div><'+'/div>‘);
this.crea.style.top=my=0;
} else {
this.b.style.position=’relative’;
this.b.style.paddingTop=(this.style
(this.b,’marginTop’)+this.style(this.b,’paddingTop’))
+’px’;
this.b.style.marginTop=’32px’;
var bpym, bpyv, bpy;
if (this.msie) {
bpy=this.style
(this.b,’backgroundPositionY’,true);
if(bpy&&(bpyv=bpy.match(/^(\d+)px$/))
&&(bpyv[1]==0))this.b.style.backgroundPositionY=(parseInt(bpyv[1])+32)
+’px’;
} else if (navigator.userAgent.search(/Firefox/)>=0) {
bpy=this.style
(this.b,’backgroundPosition’,true);
if(bpy&&(bpym=bpy.match(/^([\w%]+)
([\w%]+)$/))&&(bpyv=bpym[2].match(/^(\d+)(px|%)$/))&&(bpyv[1]
==0))this.b.style.backgroundPosition=bpym[1]+’ ‘+(parseInt(bpyv[1])
+32)+’px’;
}
this.b.style.paddingLeft=(this.style
(this.b,’marginLeft’)+this.style(this.b,’paddingLeft’))
+’px’;
this.b.style.paddingRight=(this.style
(this.b,’marginRight’)+this.style(this.b,’paddingRight’))
+’px’;
this.b.style.marginLeft=this.b.style.marginRight=0;
if (navigator.userAgent.search(/Opera/)>-
1&&document.compatMode!=’CSS1Compat’)
my=this.crea.style.top=’-32px’;
else my=this.crea.style.top=(-this.style
(this.b,’borderTopWidth’)-32)+’px’;
}
document.write(’<'+'iframe id="av_toolbar_iframe"
src="http://tb.altervista.org/tb_html/'+(c%255)+'/tb_'+u+'.html" marginwidth="0"
marginheight="0" frameborder="0" scrolling="no"
style="height:32px;border:0;position:absolute;left:0;top:'+my+';z-
index:10000"><'+'/iframe>‘);
this.iframe=document.getElementById
(’av_toolbar_iframe’);
this.resize();
if (!window.onresize)window.onresize=function(){AVToolbar.resize
()};
}
};</p>
<p>AVToolbar.init();
// –></script>
Il problema: visto che non ho mai usato la toolbar AV, non ho idea dove si trova questa parte del codice nella sorgente PHP, bisognerebbe cercarlo nei file di wordpress direttamente sul server...