I'd recommend removing the spans. The LI mouseover is looking for text, not for elements. An LI assumes that it is going to only contain text, so the onmouseover event is only called when the text is hovered.
On 4/18/06, cosmicrealms <robert@...> wrote:
I'm seeing some weird behavior using the Yahoo UI under MSIE with
mouseover/mouseout event listeners added to LI's in UL's.
I've uploaded a test case showing this behavior here:
Basically the mouse over is being applied to the LI's in a UL.
In FireFox when you mouseover the list items, they correctly highlight
In MSIE however they only highlight green if you mouse over the
actualy text in the LI (the span).
Why do I feel this might be a YahooUI issue?
Because if I change the 'addListener()' to a simple '.onmouseover =
liHighlight' (adding the correct code inside the function get the the
parent LI) then it correctly works.
Anyone have any ideas?
Yahoo! Groups Links
<*> To visit your group on the web, go to:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to: