Už to mám a kazdý obrázek je odkaz jinam.
<html>
<head>
<title>Rotace obrázků</title>
<center>
<br>
<br>
<br>
<script language="javascript">
<!--
doba=5000
pocet = 2
rotator=0
obrsrc = new Array(pocet)
cesta =new Array(pocet)
obrsrc[0]="1.jpg"; cesta[0]="1.html";
obrsrc[1]="2.jpg"; cesta[1]="2.html";
obr = new Array(pocet);
for (i=0; i < pocet; i++){
obr= new Image();
obr.src= obrsrc
}
function rotate() {
if (rotator==pocet) {rotator=0;}
document.images["obraz"].src = obrsrc[rotator];
rotator = rotator + 1
window.setTimeout('rotate();',doba);
}
function poslat() {
window.location=cesta[rotator-1];
return false;
}
//--></script>
</head>
<body onLoad="rotate();">
<a
href="..." onclick="return poslat();">
<img name="obraz" src="obraz.jpg" border="0" width="150"
height="100"></a>
</html>
</head>