Hello,
Thanks for your response. But the path to library files isn't the problem.
I am not getting any error messages. The layer is drawn but the events are
not working. The onclick event that I added works fine. The others don't.
B.T.W I'm running 2000 Professional. Is it possible that ie5.5 behaves
different on 2000 then 98/nt?
I noticed other strange behavior with events. I created a widget that
contains
multiple images with event listener attached to them (onclick events only).
Instances of this widget run fine in IE. NS 6 and 4.51 creates the layers,
but
the events aren't working. But no errors messages occur.
Has anyone had the same experiences
<SCRIPT language="Javascript" src="../js/dynapi.js"></SCRIPT>
<SCRIPT language="Javascript">DynAPI.setLibraryPath('../js/lib')
DynAPI.include('dynapi.api.*')
DynAPI.onLoad=function() {
myLayer=new DynLayer(null,100,100,100,100,'#c0c0c0')
myListener=new EventListener(myLayer)
myListener.onclick=function(e) {
target=e.getTarget()
target.setBgColor('#ffffff')
}
myListener.onmouseover=function(e) {
target=e.getTarget()
target.setBgColor('#ffffff')
}
myListener.onmouseout=function(e) {
target=e.getTarget()
target.setBgColor('#c0c0c0')
}
myLayer.addEventListener(myListener)
DynAPI.document.addChild(myLayer)
}
</script>
</head>
<body>
</body>
</html>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Raymond
Smith
Sent: Monday, December 25, 2000 8:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] mouseover and mouseout events not working?
Runs fine here, after I fixed the directory pathing. I'm "assuming" from
this point on that your creating this inside the examples folder and that
you haven't changed the directory structure. The following changes fixed
your example.
<script language="Javascript" src="../src/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('../src/lib/')
DynAPI.include('dynapi.api.*')
Nothing wrong with the layer, listener structure. Your library pathing has
an error in it somewhere.
DS
----- Original Message -----
From: "Arnold Meenhorst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 25, 2000 5:27 AM
Subject: [Dynapi-Help] mouseover and mouseout events not working?
> Hello,
>
> I tried the mouseover and mouseout event example. I'm using the latest
> dynapi sources. I've just downloaded them from the CVS.
> The following example wont run in NS4.51 NS6 and IE5.5
> Why?
>
> <html>
> <head><title>DynAPI2 tutor - mouseevents listener</title>
> <SCRIPT language="Javascript" src="./dynAPI/js/dynapi.js"></SCRIPT>
> <SCRIPT language="Javascript">DynAPI.setLibraryPath('./dynAPI/js/lib')
>
> DynAPI.include('dynapi.api.*')
>
> DynAPI.onLoad=function() {
> myLayer=new DynLayer(null,100,100,100,100,'#c0c0c0')
>
> myListener=new EventListener(myLayer)
> myListener.onmouseover=function(e) {
> target=e.getTarget()
> target.setBgColor('#0000f0')
> }
> myListener.onmouseout=function(e) {
> target=e.getTarget()
> target.setBgColor('#c0c0c0')
> }
>
> myLayer.addEventListener(myListener)
>
> DynAPI.document.addChild(myLayer)
> }
>
> </script>
> </head>
> <body>
> </body>
> </html>
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help