I have a class setup in my style sheet for the UI, and a preferences section where the user can use a color-picker to style the page. The values are stored in the db as hex, but when I use those values to update the page via jQuery:
$nav.css("background-color", button_bg_color)
I lose the NEW :hover colors. The non-hover colors change correctly, but I see they get converted to RGB format, and I'm guessing that this is causing the issues with the :hover values. I figure I can change my code and have the class change on hover to get around this, but is there a way to get jQuery to set the colors using the hex values? Or is there something else I'm missing?
UPDATE: James Montagne is right in that you can't change the :hover effect, so I changed it to a class. Now, using the hover() function, I'm still missing something: Fiddle: http://jsfiddle.net/Y9EBt/6/