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_bo x"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.getEle mentById('rep_h older').getElem entsByTagName(' a');
for ( i=0; i < theCloser.lengt h; i++) {
if (theCloser[i].getAttribute(' class') == 'close_box') {
theCloser[i].onclick = function() {
var theParent = this.parentNode .parentNode.get Attribute('id') ;
var theChange = new fx.Opacity(theP arent, { duration: 500});
theChange.toggl e();
return false;
}
}
}
Can anyone see why this wouldn't work in IE? Is it because of the
parentNodes?