document.getElementById wil niet.
Dit is de foutmelding:
Fout document.getElementById("diashow") has no properties
Bronbestand http://www.landartprojects.com/pags.php?id=voorbeeldproject
Regel 17
Dit is de broncode:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>LandArt Projecten bij Events - voor kinderen en volwassenen</title>
<link href="/css.php?id=pags" type="text/css" rel="stylesheet" />
</head>
<body>
<script language="javascript">
var aantal = new Array();
aantal[1] = 120;
function pic(id, diashow){
if (id != aantal[diashow]){
document.getElementById('diashow').src='jpg/diashow/'+diashow+'/'+id+'.jpg';
var volgende = id+1;
setTimeout(pic(volgende, diashow), 3000);
}
else{
pic(1, diashow);
}
}
setTimeout(pic(2, 1), 3000);
</script>
<p align="center"><img src="jpg/diashow/1/1.jpg" id="diashow" height="300"></p>
</body>
</html>
Bronbestand:
http://www.landartprojects.com/pags.php?id=voorbeeldproject
Weet iemand waardoor dit komt???