Hi, does this make a difference:
myListener.onmouseout=function(e) {
target=e.getTarget()
target.setBgColor('#c0c0c0')
e.setBubble(true);
}
Probably not, as I think it defaults to true anyway, but you can try.
I wouldn't be surprised if the fault lay with list.js, as it has other
problems with it's eventlisteners, because it's using secondary inheritance,
which doesn't work well in Dynapi.
I guess the test would be to just put a single dynlayer on your taskbar
object, and see if bubbling was ok then.
Otherwise maybe put the code online somewhere, or attach it in a zip.
Cheers,
Richard
www.richardinfo.com
BTW, dynapi.widgetdev isn't used that much, probably more help would come
from dynapi.help
----- Original Message -----
From: "Steven Brownlee" <sbr...@mo...>
To: <Dyn...@li...>
Sent: Monday, October 29, 2001 2:59 PM
Subject: [Dynapi-Widgetdev] Bubbling up of events
> I coded my own widget that creates a simple layer that acts like a
> Windows taskbar on the left-hand side of the screen for navigational
> elements. I then put a List object inside of it -
>
> navBar = new TaskBar(-130,0,150,300,-5,-126,10,'#c0c0c0')
> list = new List()
>
> myListener=new EventListener(list)
> myListener.onmouseover=function(e) {
> target=e.getTarget()
> target.setBgColor('#ffffff')
> }
> myListener.onmouseout=function(e) {
> target=e.getTarget()
> target.setBgColor('#c0c0c0')
> }
>
> list.moveTo(1,1)
> list.setWidth(148)
> list.setBgColor('#000000')
> list.boldOnSelect(true)
> list.listStyle.padding = 10
> list.add("The CoraSys Mission",1)
> list.add("CoraSys Products",2)
> list.add("CoraSys Services",3)
> list.add("Customer Service",4)
>
> list.addEventListener(myListener)
> navBar.addChild(list)
> DynAPI.document.addChild(navBar)
>
> Now in NS4 it works fine. However, in IE and NS6, when I mouseOver the
> List or ListItems and then mouseOut, the mouseOut doesn't bubble up to
> my TaskBar object. Any ideas on how to do this? Would posting the code
> for the TaskBar object help?
>
> ==================================
> Steven R. Brownlee
> Lead Technologist
> Mind Over Media
>
> P: 412.391.1100 x220
> F: 412.391.0185
> E: ste...@mo...
> W: http://www.momknows.com/
> ==================================
>
> IF YOU BELIEVE that people automatically resist change,
> offer them a new car of their choosing, no strings attached.
>
> _______________________________________________
> Dynapi-Widgetdev mailing list
> Dyn...@li...
> https://lists.sourceforge.net/lists/listinfo/dynapi-widgetdev
>
|