Buongiorno a tutti
Ho trovato questo script sul forum che fa ruotare pagine html .. ottimo direi!
Il mio problema e' che vorrei ,tramite un click su di un immagine che realizzero' dopo,fare aprire in una nuova scheda il sito che sta passando in rotazione
Mi aiutate ??
<html>
<head>
<title>Untitled</title>
<script type="text/javascript">
var i=0,
arrPages=["http://localhost/miacartella/pagina1.htm","C:\inetpub\wwwroot\miacartella\pagin a2.htm"];
function changePage(){
if(!arrPages[i]) i=0;
document.getElementById("main").src=arrPages[i++];
}
</script>
</head>
<body>
<iframe src="about :blank" onload="setTimeout('changePage()',5)"
id="main" width="100%" height="100%"></iframe>
</body>
</html>