codice:
<head>
<script type="text/javascript">
function riduci_espandi(){
if(document.getElementById('ridotta').style.display=='block'){
document.getElementById('ridotta').style.display=='none'
document.getElementById('espansa').style.display=='block'
}
else{
document.getElementById('ridotta').style.display=='block'
document.getElementById('espansa').style.display=='none'
}
}
</script>
</head>
<body>
riduci/espandi
<table id="ridotta" style="display:block" width="100" height="100" border="1">
<tr><td></td></tr>
</table>
<table id="espansa" style="display:none" width="100" height="200" border="1">
<tr><td></td></tr>
</table>
</body>
così non mi funziona...forse ho sbagliato io ma non capisco dove...