I used the object tag to display the map based on this: http://stackoverflow.com/questions/4476526/do-i-use-img-object-or-embed-for-svg-files. I copied in the code from the Inkscape documentation and tinkered with it for hours and hours and can't get it to work. Note, Dane County (Madison Area) is the the only one with a link. I'm not sure what link to put in Inkscape, so I tried (1) #dane (2) the URL plus #dane with and without a "/". The basic bookmark at the bottom of the example works, but clicking on Dane County does nothing. When I hover over the county it doesn't show the "/" before #dane. I suspect that's a problem, but when I add a "/" at the end of the object URL the map doesn't show at all!! Please help me before I off myself!! Thanks!! (I don't know javascript or a whole lot of CSS, but I can use FTP.)
Code: Select all
<object id="svg1" data="http://utatest.dreamhosters.com/wp-content/uploads/2016/06/WI-County-Directory.svg" type="image/svg+xml"></object>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
id="svg1" >
</svg>
Here, I create a bookmark with the id attribute:
<h2 id="dane">Dane County</h2>
Then, add a link to the bookmark, from within the same page:
<a href="#dane">Visit the Dane County Section</a>