I am trying to change hoverizr (jQuery plugin) so that it's triggered on :checked
instead of on :hover
. The author of hoverizr said that it can easily be done, but he has no time to write it, and I am unexperienced with JavaScript.
I have asked a similar question on stackoverflow, but that was concerning an image swap script, and hoverizr uses canvas to create image effects
I need the hover
functionality to be swapped for a :checked
of a hidden radio button. You can see what I mean on my website. I use :checked
radio boxes and pseudo classes for filtering on my site.
When the images are filtered, I want the images to appear colored. That is where hoverizr comes in.
Basically I need to bind a checked event instead a hover event. There is a small stackoverflow post that touches on that BUT, this post is on checkboxes, and I need to use radio buttons.
So, here is the JavaScript for hoverizr (the hover event is at the bottom of the code)