[SOLVED] JavaScript document/screen properties (I think)
Posted: Thu Dec 08, 2005 9:41 am
I've created a nifty little "Start Menu" kind of thing that works just like you'd see in windows. It contains many submenus that open when hovered.
There's a bug with it though
If you hover over a sub menu that's close to the bottom of the screen, the contents of the <div> spill off the edge of the screen and they are inaccessible. I need to somehow detect if my div is in full view or if some off it is overflowing the screen.... that way I can adjust the position/size etc accordingly.
Anyone know if it can be done? At present, since the content of the menus is dynamic I don't know the actual height of the <div> which makes this tricker (I could code this in if I need to though).
Unfortunately I can't post the code I've got so far for licensing reasons
although it shouldn't really be an issue in knowing the answer.
Many thanks,
d11
There's a bug with it though
If you hover over a sub menu that's close to the bottom of the screen, the contents of the <div> spill off the edge of the screen and they are inaccessible. I need to somehow detect if my div is in full view or if some off it is overflowing the screen.... that way I can adjust the position/size etc accordingly.
Anyone know if it can be done? At present, since the content of the menus is dynamic I don't know the actual height of the <div> which makes this tricker (I could code this in if I need to though).
Unfortunately I can't post the code I've got so far for licensing reasons
Many thanks,
d11