rhys
09-03-2003, 01:57 PM
I have popup windows that have no titlebar. I want to have a link called 'Move' that when clicked on and held, the user can drag the window around the screen.
|
Click to See Complete Forum and Search --> : moving windows with no titlebar? rhys 09-03-2003, 01:57 PM I have popup windows that have no titlebar. I want to have a link called 'Move' that when clicked on and held, the user can drag the window around the screen. Khalid Ali 09-03-2003, 02:04 PM Presuming this link is in the popup window itself. capture mousedown event, capture mousemove event capture mouseup event when mousedown is triggered, get the location of the window and that of the mouse,then at mouse drag substract or add apropriately values and reposition window using window.moveTo(x,y) and at mouse up release...I am sure this will work. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |