hi,
Hat bis jetzt leider noch nicht funktioniert!
Code sieht volgendermaßen aus:
grausig.
<script>
var ms= (new Date()).getMilliseconds();
kontrollausgabe, welchen wert hat ms?
if(ms<=100){
bin mir gerade nicht sicher, aber rückgabewert von Date.getMilliseconds() dürfte ein string sein - und somit nicht ohne weiteres mit zahlen "vergleichbar".
erst mal mit parseInt() 'ne zahl draus machen, könnte weiterhelfen.
document.getElementById("changeit").style.backgroundImage="url(hlGras.gif)";
}else{
if(ms<=200){
document.getElementById("changeit").style.backgroundImage="url(hlAsche.gif)";
[...]
du kennst http://de.selfhtml.org/javascript/objekte/array.htm?
gruß,
wahsaga
--
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."