Perché non funge ?? Deve stampare il nome del frame di destinazione in base al valore indirizzo... ma non lo fa .
<head>
<script language="Javascript">
<!--
var indirizzo = window.location;
if (indirizzo == 'http://www.mysite.com/') {
var dest = "http://www.mysite.com/index_norm.php";
}
if (indirizzo == 'http://gest@mysite.com/') {
var dest= "http://www.mysite.com/gest/";
}
if (indirizzo == 'http://biella@mysite.com/') {
var dest= "http://www.mysite.com/biella/";
}
-->
</script>
</head>
<body>
<FRAMESET ROWS="*,0" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0>
<script type="text/javascript">
document.write('<frame src=" ' + dest + ' " noresize>');
</script>
</FRAMESET><noframes></noframes>
</body>


Rispondi quotando
