Hvorfor siger den "fejl i linie..."
Hvad er det galt med dette script ?Den siger at der er fejl i
linie: 21
Tegn: 24
Fejl: Tegnet ';' var ventet
Kode: 0
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF"><table border="0" cellpadding="0">
<caption><strong>Tourguide i vores showrooms.<br>
</strong></caption>
<tr>
<td width="100%"><img src="originale%20htmler/plane1.gif" width="400" height="250" name="photoslider"></td>
</tr>
<tr>
<td width="100%"><form method="POST" name="rotater">
<div align="center"><center>
<p>
<script language="JavaScript1.1">
var photos=new Array()
var which=0
photos[0]="plane1.gif" photos[1]="plane2.gif" photos[2]="plane3.gif" photos[3]="plane4.gif" photos[4]="plane5.gif"
function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}
</script>
<input type="button" value="<< Tilbage" name="B2"
onClick="backward()">
<input type="button" value="Næste >>" name="B1"
onClick="forward()">
<br>
<br>
<a href="#" onClick="which=1;backward();return false"><small><font face="Arial, Helvetica, sans-serif" size="2">Forfra
igen</font></small></a></p>
</center></div>
</form>
</td>
</tr>
</table>
</body>
</html>
