I have a number of spans(20 - to be exact) they all have Id's. I then in my style sheet I set the visibility to hidden.
I made this script to show and hide these spans once clicking on a section of the image map:
function showDiv(pass) {
var divs = document.getElementsByTagName('span');
for (i = 0; i < divs.length; i++) {
if (divs[i].id.match(pass)) {
(pass).style.visibility = 'visible';
divs[i].style.visibility = 'hidden';
}
}
}
It works perfectly in IE but FF doesn't budge, Chrome displays it alright enough with minor problems that I think I can fix.
Anyone know why FF doesn't accept? Any suggestions would be greatly appreciated and compensated for in the after life :)