codice:
/*
Da qui in poi eventuali modifiche sono consigliabili solo a chi e' molto esperto di JavaScript, vi invitiamo a non intervenire se non siete sicuri di quel che fate, non vi garantiamo risposta alcuna.
*/
var DL=(document.layers); DA=(document.all); WO=(window.opera);
var TND= new Array(qV1,qV2,qV3,qV4,qV5,qV6,qV7,qV8,qV9,qV10);
var cQV=""; CmB=""; AmB=""; ndcB=""; ndcQVM=""; cQVM=""; VZ="ba100";
function Ov(qVOv,NumConB,ql,cOv) {
window.clearTimeout(CmB);
if (ql==0) {
for(cs=ndcQVM; cs>ndcB; cs--) {
qVcs="ba"+cs;
(DA)?document.all[qVcs].style.visibility="hidden":(DL)?document.layers[qVcs].visibility="hide":document.getElementById(qVcs).style.visibility ="hidden";
}
for (cbg=1; cbg<=QM; cbg++) {
rip="ba"+cbg+"00";
(DA)?document.all[rip].style.background=cMZ:(DL)?document.layers[rip].bgColor=cMZ:document.getElementById(rip).style.background=cMZ;
}
}
cQV=qVOv+NumConB;
cQm="ba"+(ql+NumConB);
if (ql==0) {
for (i=NumConB+1; i<=cQV; i++) {
qualeVoceApro="ba"+i;
(DA)?document.all[qualeVoceApro].style.visibility="visible":(DL)?document.layers[qualeVoceApro].visibility="show":document.getElementById(qualeVoceApro).style.visibility="visible";
}
}
(DA)?document.all[cQm].style.background=cOv:(DL)?document.layers[cQm].bgColor=cOv:document.getElementById(cQm).style.background=cOv;
}
function outMenu(qVOut,ncbo) {
cQVM=cQV;
cQV=qVOut+ncbo;
ndcB=ncbo;
ndcQVM=ncbo+qVOut;
VZ="ba"+ndcB;
for (b=ncbo+1; b<=cQV; b++) {
qvB="ba"+b;
(DA)?document.all[qvB].style.background=cVM:(DL)?document.layers[qvB].bgColor=cVM:document.getElementById(qvB).style.background=cVM;
}
CmB=setTimeout('cB()',tC);
}
function cB() {
if (cQVM>ndcB) {
qvC="ba"+cQVM;
(DA)?document.all[qvC].style.visibility="hidden":(DL)?document.layers[qvC].visibility="hide":document.getElementById(qvC).style.visibility="hidden";
cQVM--;
setTimeout('cB()',tso);
} else {
(DA)?document.all[VZ].style.background=cMZ:(DL)?document.layers[VZ].bgColor=cMZ:document.getElementById(VZ).style.background=cMZ;
cQVM=ndcB;
}
}
</script>
</head>
<body onresize="if (DL) {location.reload(true)}" onBlur="setTimeout('cB()',tC);" onUnload="cB();" bgcolor="#FFFFFF" text="#000000">
<script language="javascript">
var CU = new Array();
CU[0]=0;
diT=0;
var BrW=(DL||WO)?window.innerWidth:(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1)?document.width:document.body.clientWidth;
var BrH=(DL||WO)?window.innerHeight:(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1)?document.height:document.body.clientHeight;
if (AlCentroPagina==true) {
var M_Length=0;
for (qmn=1; qmn<=QM; qmn++) {
M_Length+=LM[qmn];
}
M_Length=M_Length+(QM-1)*dMo;
dispD=parseInt((BrW-M_Length)/2);
}
for (ndc=0; ndc<QM; ndc++) {
CU[CU.length]=CU[ndc]+100;
uni=ndc+1;
IDb="ba"+CU[uni];
dispD=dispD+dMo+LM[ndc];
ddx=dispD-dMo;
qV="qV"+uni;
cu="CU["+uni+"]";
document.writeln((DL)? '<layer id="'+IDb+'" left="'+ddx+'" top="'+dA+'" width="'+LM[uni]+'" height="'+AM+'" bgcolor="'+cMZ+'" visibility="show" onmouseover="Ov('+qV+','+cu+',0,cOmZ);" onmouseout="outMenu('+qV+','+cu+');"><table width="'+LM[uni]+'" border="'+BrdB+'" cellspacing="'+CspB+'" cellpadding="'+CpdB+'" height="'+AM+'"><tr align="'+aTb+'" valign="middle"><td>'+Voci[uni][0]+'</td></tr></table></layer>':'<div id="'+IDb+'" style="position:absolute; width:'+LM[uni]+'px; height: '+AM+'px; background-color:'+cMZ+'; left: '+ddx+'px; top: '+dA+'; visibility: visible" onmouseover="Ov('+qV+','+cu+',0,cOmZ);" onmouseout="outMenu('+qV+','+cu+');" onclick="Vai(\''+Links[uni][0]+'\',\''+Trg[uni][0]+'\');"><table width="'+LM[uni]+'" border="'+BrdB+'" cellspacing="'+CspB+'" cellpadding="'+CpdB+'" height="'+AM+'"><tr align="'+aTb+'" valign="middle"><td style="cursor: pointer">'+Voci[uni][0]+'</td></tr></table></div>');
dispB=dA;
for (ndcV=0; ndcV < TND[diT]; ndcV++) {
uniV=ndcV+1;
IDb="ba"+(CU[uni]+uniV);
dispB=dispB+dMv+AM;
document.writeln((DL)? '<layer id="'+IDb+'" left="'+ddx+'" top="'+dispB+'" width="'+LM[uni]+'" height="'+AM+'" bgcolor="'+cVM+'" visibility="hide" onmouseover="Ov('+qV+','+cu+','+uniV+',cOV);" onmouseout="outMenu('+qV+','+cu+');"><table width="'+LM[uni]+'" border="'+BrdV+'" cellspacing="'+CspV+'" cellpadding="'+CpdV+'" height="'+AM+'"><tr align="'+aTv+'" valign="middle"><td>'+Voci[uni][uniV]+'</td></tr></table></layer>' : '<div id="'+IDb+'" style="position:absolute; width:'+LM[uni]+'px; height: '+AM+'px; background-color:'+cVM+'; left: '+ddx+'px; top: '+dispB+'; visibility: hidden" onmouseover="Ov('+qV+','+cu+','+uniV+',cOV);" onmouseout="outMenu('+qV+','+cu+');" onclick="Vai(\''+Links[uni][uniV]+'\',\''+Trg[uni][uniV]+'\');"><table width="'+LM[uni]+'" border="'+BrdV+'" cellspacing="'+CspV+'" cellpadding="'+CpdV+'" height="'+AM+'"><tr align="'+aTv+'" valign="middle"><td style="cursor: pointer">'+Voci[uni][uniV]+'</td></tr></table></div>');
}
diT++;
}
function Vai(lnk,tg) {
if (tg=="s"||tg=="t") {
lnko=lnk;
tgT=tg;
setTimeout('rVai()',30);
} else if (tg=="b") {
window.open(lnk,'','width='+BrW+',height='+BrH+',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes');
} else if (tg=="p") {
pp=window.open(lnk,'pp','toolbar=no,location=no,top=50,left=50,width=300,height=300');
pp.focus();
} else if (tg!="" && tg!="s" && tg!="b" && tg!="p" && tg!="t") {
top[tg].location.href=lnk;
}
}
function rVai() {
if (tgT=='s') {
self.location.href=lnko;
} else {
top.location.href=lnko;
}
}
</script>
</body>
</html>
Grazie e grazie... veramente io non saprei come farlo senza combinare casini, HELP!!