Detto fatto!!
questo il javascript:
codice:
function link(id){
if(id=="Professionisti"){
top.frames.FrameCentrale.location.href ="Professionisti.html";
document.getElementById("Top").innerHTML = "<img src=\"metodo_progettazione.jpg\" width=\"100%\" height=\"200px\">";}
if(id=="HomePage"){
top.frames.FrameCentrale.location.href = "./PaginaIniziale1/PaginaIniziale1/PaginaIniziale1.html";
document.getElementById("Top").innerHTML = "<img src=\"bandiera_europa_04.jpg\" width=\"100%\" height=\"200px\">";}
if(id=="Patner"){
top.frames.FrameCentrale.location.href = "Patner.htm";
document.getElementById("Top").innerHTML = "<img src=\"stretta_mano.jpg\" width=\"100%\" height=\"200px\">";}
if(id=="Mission"){
top.frames.FrameCentrale.location.href = "Mission.htm";
document.getElementById("Top").innerHTML = "<img src=\"mission2.jpg\" width=\"100%\" height=\"200px\">"; }
if(id=="Modulistica"){
top.frames.FrameCentrale.location.href = "Modulistica.htm";
document.getElementById("Top").innerHTML = "<img src=\"documenti.jpg\" width=\"100%\" height=\"200px\">";}
if(id=="PaginaNews"){
top.frames.FrameCentrale.location.href = "PaginaNews.htm";
document.getElementById("Top").innerHTML = "<img src=\"news.jpg\" width=\"100%\" height=\"200px\">";}
if(id=="Links"){
top.frames.FrameCentrale.location.href ="Links.htm";
document.getElementById("Top").innerHTML = "<img src=\"link.jpg\" width=\"100%\" height=\"200px\">";}
}
questo HTML
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>index</title>
<script language="JavaScript" src="script.js">
</script>
</head>
<body style="background-color: rgb(33, 0, 127);">
<div id="Titolo" style="border: 0px solid rgb(0, 0, 0); position: absolute; top: 0px; left: 0px; width: 100%; height: 45px; z-index: 1; background-color: rgb(33, 0, 127);">
<a style="font-style: italic; font-size: 40px; color: white;">Selicati
& Partners</a>
</div>
<div id="Top" style="border: 1px solid rgb(0, 0, 0); position: absolute; top: 45px; left: 0px; float: left; width: 100%; height: 200px;">
[img]bandiera_europa_04.jpg[/img]</div>
<div id="Trasparent" style="border: 1px solid rgb(0, 0, 0); opacity: 0.4;filter: alpha(opacity=40); background-color: rgb(255, 255, 255); position: absolute; left: 40px; float: left; width: 150px; z-index: 1; top: 116px; height: 83px;">
</div>
<div id="Menu" style="border: 1px solid rgb(0, 0, 0); background-color: rgb(33, 0, 153); position: absolute; top: 200px; left: 40px; width: 150px; float: left; height: 600px; z-index: 1;">
<table style="height: 184px; width: 150px;" id="frameSinistro" border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="HomePage" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: white; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">Home</td>
</tr>
<tr>
<td id="Professionisti" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: white; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">Professionisti</td>
</tr>
<tr>
<td id="Patner" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: white; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">Collaborazioni</td>
</tr>
<tr>
<td id="Mission" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: white; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">Mission</td>
</tr>
<tr>
<td id="Modulistica" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: white; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">Modulistica</td>
</tr>
<tr>
<td id="Links" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: white; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">Links</td>
</tr>
<tr>
<td id="PaginaNews" onclick="link(this.id);" onmouseover="colora(this.id);" onmouseout="levaColore(this.id);" style="color: red; font-size: 15px; cursor: pointer;" align="left" bgcolor="#210099">News</td>
</tr>
</tbody>
</table>
</div>
<div id="Main" style="align: middle; border: 0px solid rgb(0, 0, 0); position: absolute; top: 250px; left: 190px; width: 80%; height: 600px; background-color: rgb(33, 0, 127);">
<iframe frameborder="0px" id="FrameCentrale" src="PaginaIniziale1/PaginaIniziale1/PaginaIniziale1.html" width="100%" height="100%"></iframe>
</div>
<div id="Down" style="align: middle; border: 2px solid rgb(0, 0, 0); position: absolute; top:800px; left: 0px; width: 100%; height: 40px; background-color: #FFFFFF; z-index: 1;">
</div>
</body></html>
Speriamo di riuscire a risolvere questo problema!!