Danke!
Das hilft schonmal sehr.
Hallo
Ich habe einmal ein lauflicht programmiert!
Vielleicht siehst du dir einmal den Code an!
<html>
<head>
<title>Lauflicht</title>
<script type="text/javascript">
<!--
BildAus = new Image();
BildAus.src = "images/aus.gif";
BildAn = new Image();
BildAn.src = "images/an.gif";
var timerID = 0;
var LichtNr = 0;function Laufe()
{
for(var i = 0; i < document.images.length; i++)
(LichtNr == i) ? document.images[i].src = BildAn.src : document.images[i].src = BildAus.src;
(LichtNr == 3) ? LichtNr=0 : LichtNr++;timerID = setTimeout("Laufe()",1000);
}function Stopp()
{
clearTimeout(timerID);
}
// -->
</script>
</head>
<body bgcolor="#FFFFFF">
<h3>Lauflicht</h3>
<hr>
<img src="images/aus.gif" width="67" height="70">
<img src="images/aus.gif" width="67" height="70">
<img src="images/aus.gif" width="67" height="70">
<img src="images/aus.gif" width="67" height="70">
<hr>
<p><a href="javascript:Laufe();">Start</a> || <a href="javascript:Stopp();">Stopp</a></p>
</body>
</html>PS: hab vl noch ein besseres Beispiel
mfg Florian