Ciao a tutti,

sono tre giorni che cerco di capire come sostituire un IFRAME nel mio sito, dato che crea ovvi problemi di indicizzazione.

Ho fatto un file esterno che mi permette di gestire:
1) Il menù, così anche con F5 il menù rimane uguale
2) l'assegnazione dinamica all'Iframe della pagina html da aprire.

Al momento è così:
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<HEAD>
<script type="text/javascript" src="Gestione_menu.js"></script>
</HEAD>
<body onload="gest_pag()">
<IFRAME align="left" width="1079" height="558" NAME="Corpo" id="Corpo" NOREsize scrolling="auto" frameborder="no" border="0"  onload="gest_menu()"></IFRAME>
</body>
</html>
Nel file Gestione_menu.js:
codice:
	function gest_pag() {
		if(menu==1) {
			parent.Corpo.location.href="/1.html";
		}
		if(menu==2) {
			parent.Corpo.location.href="/2.html";
		}
}


Ora, dato che voglio togliere l'IFRAME ho fatto così:

codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<HEAD>
<script type="text/javascript" src="Gestione_menu.js"></script>
</HEAD>
<body onload="gest_pag()">
<script type="text/javascript">
window.onload = function() 	{ 
		document.getElementById("#indexIframe").innerHTML=(gest_menu());
		document.innerHTML=(gest_id());
			}
</script>
<div id="indexIframe">
</div>
<div id="Pagina">
</div>
</body>
</html>
La funzione gest_menu sopra richiamata così funziona ma non quella di gest_id...

e il file di Gestione_menu.js ho provato a modificarlo così:
codice:
//fornisce indirizzo all'id centrale
	function gest_id() {
		if(menu==1) {
			$("#Pagina").load('/1.html');
		}
		if(menu==2) {
			$("#Pagina").load('/2.html');
		}
}
Io non so più dove sbattere la testa... sono 3 giorni che ci lavoro ma non ne vengo fuori...

grazie