OK danke hat mich schonmal ein stück voran gebract, aber das eigentliche problem besteht noch:
ich hab ne variable id, da steht eine zahl von 1 - 9 drin
jetzt gibt es die funktion img1.src = 'green.gif'; die mir mein bild mit der id img1 hat wechselt auf green.gif. anstatt der eins soll immer die zahl stehen die die variable id hat also
imgID.src = 'green.gif';
geht das nicht?
MfG
Michael Wölk