|
From: Robert R. <rra...@ya...> - 2000-10-31 16:37:37
|
It seems the events are broken. So, I changed the EventMethod a bit
so that it uses one method and uses some of Micheal's changes:
DynLayer.prototype.EventMethod = function(e) {
var dyndoc=this.lyrobj.dyndoc
if (is.ie) {
// *** check type of object
var e=this.lyrobj.isDynLayer? dyndoc.elm.event : this.lyrobj.elm.event
// ***
e.cancelBubble=true
if (e.type=="click" && DynAPI.wasDragging && this.lyrobj.isDynLayer) {
e.cancelBubble=true
DynAPI.wasDragging=false
return true
}
if (e.type!="mouseout" && e.type!="mouseover") e.cancelBubble=true
if (e.type=="mouseout" && this.contains(e.toElement)) return true
if (e.type=="mouseover" && this.contains(e.fromElement)) return true
}
var realsrc=is.ie ? e.srcElement:e.target
var which=(is.ie||is.ns5)?e.button:e.which
// *** should set the correct source
var src=realsrc.lyrobj||dyndoc
if (!src) return true
// ***
var evt=dyndoc._e
evt.setEvent(src,e)
var type=evt.type
src.invokeEvent(type,evt)
if (e.type=="mouseover" || e.type=="mouseout") return false
// *** send event on
return evt.bubbleEvent()
// ***
}
// use same dynlayer method
DynDocument.prototype.EventMethod = DynLayer.prototype.EventMethod
Robert
--
Email: <mailto:rra...@ya...>
PGP Key ID: 0x703D7F7C
|