Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: auto position of DIV...


Message #1 by "Walter Torres" <walter@t...> on Fri, 14 Feb 2003 20:17:42 -0600
walter,

Your best bet is to position the div dynamically using absolute 
positioning.

We had a need to create a drop down type effect using two separate windows 
to cater for performance weaknesses in Domino/Notes. 

By clicking on a button a new window appears to the left of the button as 
if it was a drop down list.

This was achieved by using the various screen measurements available from 
the window.event object, the window.screen object, and the 
window.document.body object and some simple mathematics.

Search for Measuring Element Dimension and Location on MSDN for more info.

By using these measurements, you can cater for scrolling of the page and 
browser resizing yet still keep your object relative to the bottom of the 
screen.


Cheers


Scott Thomas
Developer Gala Leisure

_____________________________________________________________________
This message and any attachments are confidential and should only be 
read by the intended recipient. If you are not the intended recipient,
please inform us by replying to this message, delete the message from
your computer and destroy any copies. Any distribution or copying 
without prior permission is prohibited.

This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service.

Registered Office: Gala Group Limited, New Castle House, Castle Boulevard, Nottingham, NG7 1FT. Registered in England no. 3927901

  Return to Index