Uncle Jim's JavaScript Examples: Opacity

This example shows you how to manipulate objects within your document.

What makes this stand out is the ability to continually move layered objects during the session.

This file shows the basics of moveable objects. The key points are:
1. The two moveable objects are an image (IMG) and a DIV containing some text.
2. Both objects have names, so that they can be referred to elsewhere (in this case by the onClick event handling code in pushbuttons)
3. Both objects have in-line style sheets, which declare "position:relative".