Hi
Ich möchte ein Farbauswahl anbieten
Code
<img onclick="this.style.border='1px solid #000000'" src="colors/white.GIF" />
<img src="colors/gray.GIF" />
<img src="colors/yellow.GIF" />
<img src="colors/orange.GIF" />
<img src="colors/red.GIF" />
<img src="colors/800.GIF" />
<img src="colors/lightgreen.GIF" />
<img src="colors/green.GIF" />
<img src="colors/ff00cc.GIF" />
<img src="colors/pink.GIF" />
<img src="colors/lightblue.GIF" />
<img src="colors/blue.GIF" />
<img src="colors/black.GIF" />
Alles anzeigen
und möchte daß sobald ein Bild angeklickt wird, es ein border bekommt. Klickt man ein anderes Bild an, soll das neue Bild den border bekommen und broder für das letzte Bild soll entfernt werden.
Ich brauche irgendwie ne function mit javascript, weiß aber nicht wie ich es realisieren soll.
Muß nicht unbedingt ein Border sein ... möchte nur daß das Bild irgendwie als markiert angezeigt wird.
Jemand ne Idee?