evtl. so?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//">
<html>
<head>
<title>Lauflicht-Effekt</title>
<script type="text/javascript"><!--
var pos = 0;
function lauf(){
document.lauflicht.licht[pos].checked = true;
if (document.lauflicht.richtungSchalter.checked == true) {
if(--pos < 0){
pos = document.lauflicht.licht.length - 1;
}
}
else {
if(++pos >= document.lauflicht.licht.length){
pos = 0;
}
}
window.status = pos;
setTimeout('lauf()', 1000 / document.lauflicht.tempo.options[document.lauflicht.tempo.selectedIndex].value)
}
// -->
</script>
</head>
<body onload="setTimeout('lauf()', 50)">
<table border="0" width="100%" bgcolor="#000000">
<tr><td>
<br><br><br><br>
<form name="lauflicht">
<table border="0" cellpadding="8" align ="center" bgcolor="#ffffff">
<tr>
<td><input type="radio" name ="licht" value="licht01"></td>
<td><input type="radio" name ="licht" value="licht02"></td>
<td><input type="radio" name ="licht" value="licht03"></td>
<td><input type="radio" name ="licht" value="licht04"></td>
<td><input type="radio" name ="licht" value="licht05"></td>
<td><input type="radio" name ="licht" value="licht06"></td>
<td><input type="radio" name ="licht" value="licht07"></td>
<td><input type="radio" name ="licht" value="licht08"></td>
<td><input type="radio" name ="licht" value="licht09"></td>
<td><input type="radio" name ="licht" value="licht10"></td>
</tr>
<tr>
<td colspan="10"><br><br><br>
<strong>Rückwärts: </strong><input type="checkbox" name ="richtungSchalter"></td>
</tr>
<tr>
<td colspan="10"><br>
<strong>Schritte<br>pro Sekunde: </strong>
<select name="tempo" size="1">
<option value="5">5</option>
<option value="10">10</option>
<option value="20">20</option>
</select><br><br><br></td>
</tr>
<br><br><br>
</table>
</form>
<br><br><br><br><br><br>
<br><br><br><br><br><br>
</td></tr>
</table>
<noscript> Ihr Browser versteht leider kein JavaScript! </noscript>
</body>
</html>
oesi
als Antwort auf: [#104454]