Hi,
I have a script which loops through all <areatags of an imagemap and
changes the visibility of a hidden <div(using MooFX for the
transition). The same script then searches each <divto find the <a
class="close_box"tag which toggles back to invisible.
The script works fine in FF, Opera & Safari, but the second half of the
function - find the <ato toggle visibility again - doesn't work in
IE. Here's the relevant part of the script:
var theCloser =
document.getElementById('rep_holder').getElementsB yTagName('a');
for ( i=0; i < theCloser.length; i++) {
if (theCloser[i].getAttribute('class') == 'close_box') {
theCloser[i].onclick = function() {
var theParent = this.parentNode.parentNode.getAttribute('id');
var theChange = new fx.Opacity(theParent, { duration: 500});
theChange.toggle();
return false;
}
}
}
Can anyone see why this wouldn't work in IE? Is it because of the
parentNodes?