I have an element that can have an arbitrary background colour (set via a CMS).
I want to highlight it by brightening it on mouse over and darkening it on mouse out.
I tried using .css('background-color') to get and set the value but it seemed to be a lot more fiddly than I expected.
What's the non-dumb way to do this?
Edit: Just to clarify - the fiddly bit is parsing and doing arithmetic with colour values - not coping with the events.
Edit: The colour plugin gave me a way to read colour values but without colour arithmetic and writing support I still had to do some donkey work.
In the end I went with a fast 'fadeTo' but need to confirm that opacity animation works properly in IE6.