Ciao, sei stato gentilissimo, grazie, la tua soluzione funziona, però ho dovuto aggiungere questo codice:Originariamente inviato da Xinod
parti da una cosa del genere
richiamato da un link del generecodice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>frameset</title> <script type="text/javascript"> /*<![CDATA[*/ window.onload=function(){ var qs=self.location.search; if(qs){ qs=qs.substring(1).split('&'); for(var k=0;k<qs.length;k++){ var vQs=qs[k].split('='); if(vQs[0]=='fr1') document.getElementById('frame1').contentWindow.location.replace(vQs[1]); if(vQs[0]=='fr2') document.getElementById('frame2').contentWindow.location.replace(vQs[1]); } } } /*]]>*/ </script> </head> <frameset rows="33%,*"> <frame id="frame1" src="sopra.htm" /> <frame id="frame2" src="sotto.htm" /> </frameset> </html>
ciaocodice:frameset
Al frameset contenente i due frame sa sostituire, perchè facendo delle verifiche ho notato che la funziona in assenza di questa mia aggiunta non veniva chiamata correttamente, il codice della pagina, nella parte in cui si creano i frame sarà quindi:codice:onLoad="function();"
Grazie dell'aiuto che mi hai dato.codice:<frameset rows="33%,*" onLoad="function();"> <frame id="frame1" src="sopra.htm" /> <frame id="frame2" src="sotto.htm" /> </frameset>