jquery - How can I keep the image highlighted upon click, even after browser refresh? -
basically, have 3 images: tried assign 'focus' them create border around image upon click. however, want following - if possible - happen:
- every image click stays highlighted, , when refresh browser clicked ones stay highlighted.
or
- clicked image stay highlighed after browser has refreshed.
a:focus img { border:1px solid #f00; }
<a href="#"><img src="http://cdn.s7.disneystore.com/is/image/disneyshopping/1344039601602?$yetidetail$" alt="" /></a> <a href="#"><img src="http://cdn.s7.disneystore.com/is/image/disneyshopping/1344039601602?$yetidetail$" alt="" /></a> <a href="#"><img src="http://cdn.s7.disneystore.com/is/image/disneyshopping/1344039601602?$yetidetail$" alt="" /></a>
any appreciated.
have tried "visited" selector?
a:visited img, image:visited { # awesome styling right here! }
Comments
Post a Comment