javascript - How can I add a hover event to multiple paths in a SVG? And have it work in IE9? -


I am trying to figure out how to create a hover event that controls multiple paths in a SVG is. In the US map, I am building Alaska, Hawaii and Michigan, which has many paths. I have been successful in adding a hover event using CSS, but when I change the path to the states with the grouped elements only that path I am hovering over. When I hover over them, I want to be able to get all the paths in the proper Pathological State changes as they are the only way

It seems that by using CSS I do not allow restraint to search for. Maybe jQuery? I've discovered a jQuery solution, but I read somewhere that jQuery does not work well inside SVGS. I tried SIMIL, but I'm not working well with IE 9.

Does anyone help me come up with a solution that will work in IE9 and the latest Chrome, Safari, and Firefox browsers?

The SVG file is linked below. Any help you provide will be highly appreciated. Thank you.

Since Alaska is a & lt; G & gt; You can apply hover to it ...

  # Alaska: hover {fill-opacity: 0.1; Cursor: indicator;}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -