I want to change the colour of a border around an image when a user clicks on the image.
Not sure how to go about this, i have tried a few things but it doens't seem to work.
here is my image.
<img src="images/canvas_colours/images/canvas_taupe_sm all.gif" alt="Taupe" name="taupe_sma ll" id="taupe_small " style="cursor:h and;border-Style:solid;bor der-Width:2px;borde r-Color:white">
This is what I tried.
<img src="images/canvas_colours/images/canvas_taupe_sm all.gif" alt="Taupe" name="taupe_sma ll" id="taupe_small " style="cursor:h and;border-Style:solid;bor der-Width:2px;borde r-Color:white;" onclick="border-Color:red;">
Any help would be great.
Thanks.
Not sure how to go about this, i have tried a few things but it doens't seem to work.
here is my image.
<img src="images/canvas_colours/images/canvas_taupe_sm all.gif" alt="Taupe" name="taupe_sma ll" id="taupe_small " style="cursor:h and;border-Style:solid;bor der-Width:2px;borde r-Color:white">
This is what I tried.
<img src="images/canvas_colours/images/canvas_taupe_sm all.gif" alt="Taupe" name="taupe_sma ll" id="taupe_small " style="cursor:h and;border-Style:solid;bor der-Width:2px;borde r-Color:white;" onclick="border-Color:red;">
Any help would be great.
Thanks.
Comment