Summary
Any HTML can be turned into a floating object by making it part of an
identifiable div and positioning it via scripting. All you need
to do is determine the size and scrolled offset of the window and dynamically
place the floater at a set interval. The scripting necessary for this technique differs from browser to browser, but you can use browser detection techniques to give each browser its appropriate
code.
Code that permits users of Internet Explorer 5.x to move the floater by checking their mouse clicks and creating a new offset to be used by the positioning routine can be added to the script.
This tutorial has offered techniques and code samples that demonstrate:
- Creating content to float
- Determining page size
- Positioning content
- Basic browser detection
- Attaching functions to page events
- Creating functions that are executed at regular time intervals

