Does anybody know the code for making a pop up that is draggable. An example is the one on http://www.planetsms.c o.uk, when you go to the page it comes up with a small pop up with a form inside, does anyone know how to make a pop up like that. Please look at example before replying.
Making a floating javascript pop up that you can move around.
Collapse
X
-
You may find style.position, style.left, style.top, event.pageX, event.pageY, event.clientX, event.clientY and zIndex useful in this case.Originally posted by miraanDoes anybody know the code for making a pop up that is draggable. An example is the one on http://www.planetsms.c o.uk, when you go to the page it comes up with a small pop up with a form inside, does anyone know how to make a pop up like that. Please look at example before replying. -
Yes, but if you are expecting us to write the code from scratch for you I think you will be disapointed.Originally posted by miraandoes anyone know how to make a pop up like that.
That is a floating layer, not a pop-up. You just need to create a layer, and then create the logic to set the CSS style values mentioned above from onMove events. A strong understanding of CSS attributes will be needed for this.Comment
Comment