Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
The problem from what I can tell is that an image map overlays the image it's associated wtih (instead of being part of it), so the script thinks the two are separate. As a result, when you move the mouse over the image map, the script thinks you've actually moved the mouse out of the fading element and into another element, hence the fade out.
Inside the .js file, try changing the function:
Code:
gradualFader.fadeinterface=function(obj, e, direction){
if (!this.isContained(obj, e)){
gradualFader.clearTimer(obj)
gradualFader.fadeupdown(obj, direction)
}
}
to:
Code:
gradualFader.fadeinterface=function(obj, e, direction){
var e=window.event || e
var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
if (!this.isContained(obj, e) && c.tagName!="AREA"){
gradualFader.clearTimer(obj)
gradualFader.fadeupdown(obj, direction)
}
}
to manually discount image maps within an image.
Bookmarks