I have a problem with a mouseover popup box (div element not new window). It displays and hides properly and if I don't attempt to modify where it apears it appears to the bottom right of the mouse, however in some cases this puts it off the bottom of the screen. Because of the layout of the page it would be nice to 'simply' place the bottom right corner on the mouse instead of the top left. However if I attempt to set the top, left, bottom, or right of the style object (I hope that made sense) it puts the box far away in odd places and sometimes off the screen. I think part of the problem is that the section that has the mouseover is in a frame that scrolls. Scrolling also seems to have an effect as to where the box pops up.
This is the js function that creats the popup. As it is, with the commented sections left out, the box appears to the bottom right of the mouse curser.
Does anybody have any idea how to make the box popup where I want it?