Reply – Re: Challenge: how to bypass shadowbox with image map "area" getEl...
Your Name
Subject
Message
or Cancel
In Reply To
Re: Challenge: how to bypass shadowbox with image map "area" getElement command!
— by HenzeBerkheij HenzeBerkheij
well..like this:

var areas = document.getElementById('map').getElementsByTagName('area');
var shadowboxAreas = new array();
for (i=0;i<areas.length;i++){
    if(areas[i].rel.substr(0,8)=="Shadowbox"){
         shadowboxAreas[] = areas[i];
    }
}

Shadowbox.setup(shadowboxAreas);

something like this? this is the idea..code is not tested, so i am not sure if this is bugfree, but this is the idea..and if debugged, this is how it should work!