Ciao a tutti.
Ho trovato questo script che in teoria dovrebbe permettere la visione di iframe anche ad utenti machintosh, ma non lo fa.. funziona tutto alla perfezione con i pc ma col mac mi caricare le pagine "per aria come gli pare a loro", dov'è l'errore?
var PerMac=navigator.appVersion.indexOf('Mac');
function Trova(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=Trova(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function Cercatore(){
OneToGo=Trova(Cercatore.arguments[0]);
//alert(Cercatore.arguments[1]);
OneToGo.location = Cercatore.arguments[1];
OneToGo.src = Cercatore.arguments[1];
}
function frame(){
var LeftTitle = "<table width=100% border=0><tr><td class=nometabella>";
LeftTitle += frame.arguments[7];
LeftTitle += "</td><td align=right><img src=close.gif border=0></td></tr></table>";
myThing=Trova(frame.arguments[0]);
divThing=Trova(frame.arguments[0]+'title');
inThing=frame.arguments[0]+'content';
myThing.style.visibility = frame.arguments[1];
myThing.style.top = frame.arguments[2] ;
myThing.style.left = frame.arguments[3] ;
if (PerMac>0){
myThing.style.width = frame.arguments[4]+6 ;
myThing.style.height = frame.arguments[5]+6 ;
}else{
myThing.style.width = frame.arguments[4] ;
myThing.style.height = frame.arguments[5] ;
}
divThing.innerHTML= LeftTitle;
Cercatore(inThing,frame.arguments[6]);
//return false;
}
Grazie a chi lo trova..