Simple hit & stay script?

Was wondering how i could do this with the minimum of code and the most effective/easiest

Lets say you have 12 images and when you hover over them, they change colour.
But, if i click on any of them it should stay on that hover color and also perform some javascript code.

What is the best way to do this ?

Thank you in advance!:kir: