ciao a tutti,
spero tanto che qualcuno possa darmi una mano, purtroppo sono alle prime armi con il javascript!
il sito da modificare e fatto con gli <iframe>.
(vedi file allegato)
Il menù strutturato a tab ha questo javascript:
<script>
function cellImg(idCell,imgName1,imgName2,imgName3) {
var idCellSx = idCell;
var idCellDx = idCell;
document.getElementById(idCell).style.background = "url(" + imgName1 + ")";
idCellSx = idCell+"a";
document.getElementById(idCellSx).style.background = "url(" + imgName2 + ")";
idCellDx = idCell+"b";
document.getElementById(idCellDx).style.background = "url(" + imgName3 + ")";
}
function disabilita(x,y,z,h){
var i;
for(i=1;i<=8;i++){
var iStr = i+"";
if(iStr != x){
var idCellSx = i+"a";
var idCellDx = i+"b";
document.getElementById(i).style.background = "url(" + y + ")";
document.getElementById(idCellSx).style.background = "url(" + z + ")";
document.getElementById(idCellDx).style.background = "url(" + h + ")";
}
}
}
</script>
<table>
<tr valign="bottom">
<td></td>
<td class="TabLeft_1" id="1a"></td>
<td valign="middle" class="TabMiddle_1" id="1">
Home</td>
<td class="TabRight_1" id="1b"></td>
<td class="space"></td>
<td class="TabLeft_1d" id="2a"></td>
<td valign="middle" class="TabMiddle_1d" id="2">Finalità</td>
<td class="TabRight_1d" id="2b"></td>
<td class="space"></td>
<td class="TabLeft_1d" id="3a"></td>
<td valign="middle" class="TabMiddle_1d" id="3">Struttura</td>
<td class="TabRight_1d" id="3b"></td>
<td class="space"></td>
</tr>
</table>
Nell'iframe Convegni quello sulla sinistra ho dei testi che devo collegare alla pagina convegni.html (iframe centrale) e contemporaneamente nel menù a tab (in alto) deve essere acceso il tasto Convegni.
Come si fà?
grazie mille!