I am creating a website with a "Login / Register" link on each page. Whenever someone clicks on this link, I want the JavaScript / div based registration form to float on top of the content with a link to “close” if they want.
I also want the div to appear next to their mouse position, i.e. if they click the link near the middle of the page, it should appear near the middle, and they don’t have to scroll all the way to the top to see this. (To clarify, maybe he should automatically determine the coordinates of the mouse or have a way to specify the coordinates (x, y).)
I am a good JavaScript developer, but not an expert, so I'm sure some libraries will do this better than I can. Any links / tutorials to publish?
help
source
share