Hello,
I’m trying to add some basic interaction to a SVG map of Africa, using Javascript. All I want is that when you rollover a country, the name appears and the country is highlighted - something simple.
I’m new to SVG so I first read both part 1 and [URL=“http://www.alistapart.com/articles/using-svg-for-flexible-scalable-and-fun-backgrounds-part-ii/”]part 2 of the A List Apart articles about SVG.
As you might know, there are many ways to use and embed SVG, but the best option for me seemed to be SVG Web, because it works on all browsers and allows scripting.
In my HTML file I’ve put the SVG within a <script> tag as they recommend.
I’ve tried really simple jQuery interactions such as prompting an alert box when clicking on a country, but it does not work in IE. I’ve tried with normal javascript too but it doesn’t work. I’m trying to apply a behaviour to the <path> element of the SVG.
It works fine in all intelligent browsers but not in IE6-7-8
Any ideas?
thanks