From: Bachis Bogdan-A. <ba...@ya...> - 2001-01-08 08:59:51
|
Hello, I'm new to DynAPI project and I have the following problem: I have a DynLayer object that is a child of another DynLayer object. I added the onmouseover event to the child DynLayer object, but when I moved the mouse over the layer, nothing happens. Here's the code: menuBar=new DynLayer(null, 10, 10, 210, 25, "red") menuOption1=new DynLayer(null, 10, 5, 40, 15, "white") menuOption1Listener=new EventListener(menuOption1) menuOption1Listener.onmouseover=function(e){ alert("test") } menuOption1.addEventListener(menuOption1Listener) menuBar.addChild(menuOption1) DynAPI.document.addChild(menuBar) I've tried to add the onmouseup event instead of onmouseover and everything worked just fine... Can you please tell me what's wrong with it? Thanks, Bogdan. P.S. I'm using IE 5.5 and Windows NT 4.0 Workstation __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ |