Honestly, this is gonna be a pain. You'll have to
- determine the size and position of every element that should get a mouseover handler.
- add a scroll listener to the window.
- In the handler, get the mouse cursor position and pageOffset.
- Find out which element(s) the cursor is in.
- manually call the actual mouseover handler
- (Find out which elements the cursor has left, if you want some mouseout behaviour too)
You may need to re-calculate the elements' positions and sizes if they are dynamic. (move 1. beneath 3.)
While this should work fine with block-level elements, I have absolutely no idea on a solution for inline elements.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…