I seem to be losing some mouse-events in IE-5.
Does anyone have similar behavior?
I have a bunch of Labels with mouseOver event listeners that change the font
color of the label. In IE5 if I mouse over the labels quickly some of them
change color and some don't. In NS4+ it works fine.
Please help!
Thanks in advance,
-Ben
=== Sample Code ===============================
var linksLayer1_obj = new Object();
linksLayer1_obj["row1link0"] = new Array("/LL/composite", "My Homepage",
"MyHome");
linksLayer1_obj["row1link1"] = new
Array("/LL/lehmanlive?op=navigation&target=bottom&menuId=51898", "Fixed
Income", "FIXED_INCOME");
linksLayer1_obj["row1link2"] = new
Array("/LL/lehmanlive?op=navigation&target=bottom&menuId=50102", "Equities",
"EQUITIES");
linksLayer1_obj["row1link3"] = new
Array("/LL/lehmanlive?op=navigation&target=bottom&menuId=48705", "Investment
Banking", "INVESTMENT_BANKING");
linksLayer1_obj["row1link4"] = new
Array("/LL/lehmanlive?op=navigation&target=bottom&menuId=50635", "Private
Client Service", "PRIVATE_CLIENT_SERVICE");
DynAPI.onLoad=function() {
var myevent1 = new EventListener(this.document)
myevent1.onmouseover=function(e) {
e.getSource().setFontColor("#DD761A")
}
myevent1.onmouseout=function(e) {
e.getSource().setFontColor("#8C9092")
}
//Add row 1 tabs to the page
linksLayer1 = new
DynLayer('linksLayer1',10,53,this.document.getWidth()-20,15)
for (i in linksLayer1_obj) {
eval("var "+ i +" = new Label('" + linksLayer1_obj[i][1] +
"')")
eval(i + ".setID('" + i + "')")
eval(i + ".setPadding(1)")
eval(i + ".setSelectable(false)")
eval("linksLayer1.addChild(" + i + ")")
}
this.document.addChild(linksLayer1)
//Place row 1 tab buttons
for (i in linksLayer1.children) {
obj = linksLayer1.children[i]
obj.setWidth(obj.getContentWidth() +5)
obj.setHeight(obj.getContentHeight() +5)
prevObj = null
if(i>0) prevObj = linksLayer1.children[i-1]
if(prevObj) obj.moveTo(prevObj.x + prevObj.w +7, 0)
else obj.moveTo(0,0)
}
for (i in linksLayer1.children) {
obj = linksLayer1.children[i]
obj.addEventListener(myevent1)
}
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated
recipient(s) named above. If you are not the intended recipient of this message you
are hereby notified that any review, dissemination, distribution or copying of this
message is strictly prohibited. This communication is for information purposes only
and should not be regarded as an offer to sell or as a solicitation of an offer to buy
any financial product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers Inc. Email transmission cannot be guaranteed to be
secure or error-free. Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such. All information is
subject to change without notice.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help