Simply copy and paste the following code inside your file and run it into a browser.
If you want to see the live result (we believe this is the best way to learn what is the script about), try it here (new window).
</div> </div> Some text down the box. <body> </html>
You can use this simple script wherever you wish; for instance I use it to display a form if a user wishes to login without the need of loading a new page (it's a way to avoid having a permanent login box on the current page).