JavaScript Examples
DHTML (Magnetic Poetry)
These examples illustrate user defined positioning of elements on the page, slowly building an example that simulates the novelty of using word magnets used to build poems on a refrigerator.
- Monitoring screen events - onclick (IE)
- onmouseup (IE)
- onmousedown (IE)
- coordinates of click (IE)
- move an element to coordinates (IE)
- onmousemove (IE)
- event.srcElement.id property (IE)
- Display ID only when element is clicked on (IE)
- Drag an element - down only (IE)
- Drag an element - up and down (IE)
- Monitoring screen events - onclick (Netscape)
- coordinates of click (Netscape)
- move an element to coordinates (Netscape)
- onmousemove (Netscape)
- Detect selected layer (Netscape)
- Move any element (Netscape)
- Cross Browser Solution