Positioning Patch
A dynamic web menu based on PHP, Javascript and optionally a DB.
Brought to you by:
ank-99
This Patch the Positioning of the MenuLayers if the Menu itself is positioned with style="position:absolute"
Exactly its just in
function getOffsetLeft(layer)
and
function getOffsetTop(layer)
in the while loop
after
object = object.offsetParent;
to insert:
if ( object.style.position == 'absolute' )
break;
because if your parent would have this position absolute, your menu layers gets missplaced. This fixes the missplace.
I did place my Menu with absolute position as you can view on my website: http://www.donneker.de
And, also as you see, its working correct OVER frames :-)
(with a little trick) (but thats nothing to do with the patch :)
Patched file version.