Can you post a link to the complete file?
I have not tweaked it for formatting within html files, which it looks like you may be doing (cant tell). It will destroy your html formatting unless you highlight all the javascript first
[quote=“nobleach”]Looks good, but it seemed to ignore my lines containing jQuery:
[code]$(’#map-configurator’).accordion();
window.onsvgload = function() {
var obj = document.getElementById(‘map’);
var doc = obj.contentDocument; // grab the document object inside the SVG file
var hucs = doc.getElementsByTagNameNS(svgns, ‘path’);
for (var i = 0; i < hucs.length; i++) {
var id = hucs*.id;
//console.log(id);
hucs*.addEventListener(‘mouseover’, function(evt) {
evt.target.style.fill = ‘#FF9200’;
}, false);
hucs*.addEventListener(‘mousedown’, function(evt) {
alert('Huc: ’ + evt.target.id);
}, false);
}
}[/code]***[/quote]