In this iFrame, floatbox is constrained to the iFrame window, not to the browser window. This is done by including framebox.js instead of floatbox.js in the document head. The main difference between floatbox.js and framebox.js is that references to "top" have been replaced with "self".

Stupid iFrame tricks:
Talkin' to an iFrame: Enter something here:
(See the demo page if you want to view the source code for these examples.)