
01.02.2007, 02:29
|
|
Новичок
Регистрация: 27.12.2006
Сообщений: 18
Провел на форуме: 105228
Репутация:
19
|
|
А че сложного то?
Код HTML:
<html>
<head>
<title></title>
<script type="text/javascript">
var sites = new Array();
var currentSite = 0;
//тут добавляешь скока хошь сайтов
sites[0] = "http://mail.ru";
sites[1] = "http://ya.ru";
sites[2] = "http://google.com";
function changeSite() {
document.getElementById( "ifrm" ).src = sites[currentSite];
currentSite++;
if ( currentSite >= sites.length ) {
currentSite = 0;
}
}
setInterval( "changeSite()", 5000 );
</script>
</head>
<body onload="changeSite()">
<iframe id="ifrm" src="ya.ru"/>
</body>
</html>
|
|
|