Hi,
I think you can do that using jQuery very easily. you need to create grid of Div tag and then on click of particular Div you can toggle the color from red to green or green to red.
Please visit
this[
^] link, you will get idea about toggle Div color.
Best of luck
Thanks
-Amit Gajjar