I'm using galleriffic to handle my image gallery and I'm having a problem with the thumbnail active states.
Galleriffic doesn't have support for active states on the images - only the list items. Right now the gallery will assign a "selected" class to the current LI containing the thumbnail and I've been trying to use jQuery to target the thumbnail ID within the active LI so I assign an active state to the image and then return it to the default state.
Essentially I'm doing:
$('.selected img#myImage').attr('src', 'path_to_active_state.jpg');
Which works, however, I can't get the image to go back to the default afterward. I don't think there's jQuery support for using hasClass in an if statement, but if someone knows please help out. Any advice is welcomed.