Because in NS the image doesn't allow the click event to pass to the layer.
You would need to put a cover layer and attach the eventListener to that
layer.

Jon

-----Original Message-----
From: Michael Towers [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 4:54 AM
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] Broken mouse up event in NS


Hi,

Does anyone have any idea why the mouseup event in the following code does
not in NS 4.5 & 4.76 & 6.0

DynAPI.onLoad=function() {
        
        var testLayer = new DynLayer( null, 10, 10, 200, 200 );
        testLayer.setHTML( "<IMG SRC='pix/blue6.gif' ALT='ToolTip'
width='200' height='200'>" );

        eventListener = new EventListener( testLayer );
        eventListener.onmouseup = function( event ) 
        {
                window.status = "onmouseup ";
        }
        eventListener.onmouseout = function( event ) 
        {
                window.status = "MouseOut";
        }
        eventListener.onmouseover = function( event ) 
        {
                        window.status = "MouseOver";
        }
        testLayer.addEventListener(eventListener);

        DynAPI.document.addChild( testLayer );
}

Thanks 

Mike..

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to