<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Skift billeder i 4 emner</title>
<meta name="keywords" content="søgeord adskilt af komma">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
</style>
<script language="javascript" type="text/javascript">
var imgs = ['pic1','pic2','pic3','pic4'];
var pics = new Array()
//Emne1
pics[0] = new Array();
pics[0][0] = "Emne1Pic1.jpg";
pics[0][1] = "Emne1Pic2.jpg";
pics[0][2] = "Emne1Pic3.jpg";
pics[0][3] = "Emne1Pic4.jpg";
pics[0][4] = "Emne1Pic5.jpg";
pics[0][5] = "Emne1Pic6.jpg";
pics[0][6] = "Emne1Pic7.jpg";
pics[0][7] = "Emne1Pic8.jpg";
//Emne2
pics[1] = new Array();
pics[1][0] = "Emne2Pic1.jpg";
pics[1][1] = "Emne2Pic2.jpg";
pics[1][2] = "Emne2Pic3.jpg";
pics[1][3] = "Emne2Pic4.jpg";
//Emne3
pics[2] = new Array();
pics[2][0] = "Emne3Pic1.jpg";
pics[2][1] = "Emne3Pic2.jpg";
pics[2][2] = "Emne3Pic3.jpg";
pics[2][3] = "Emne3Pic4.jpg";
pics[2][4] = "Emne3Pic5.jpg";
pics[2][5] = "Emne3Pic6.jpg";
//Emne4
pics[3] = new Array();
pics[3][0] = "Emne4Pic1.jpg";
pics[3][1] = "Emne4Pic2.jpg";
pics[3][2] = "Emne4Pic3.jpg";
pics[3][3] = "Emne4Pic4.jpg";
pics[3][4] = "Emne4Pic5.jpg";
pics[3][5] = "Emne4Pic6.jpg";
function skiftBilleder(){
for(i=0;imgs.length>i;i++){
num = Math.floor(Math.random()*pics[i].length);
document.images[imgs[i]].src = pics[i][num];
document.images[imgs[i]].alt = pics[i][num];
}
}
</script>
</head>
<body onresize onload="skiftBilleder();setInterval('skiftBilleder()',1000)"><!-- 10 sekunder -->
Emne 1 : <img src="" name="pic1"><br>
Emne 2 : <img src="" name="pic2"><br>
Emne 3 : <img src="" name="pic3"><br>
Emne 4 : <img src="" name="pic4"><br>
</body>
</html>