This example uses inline event handlers to dynamically set an object's backgroundPosition style property.
The background image on the BODY is initially set at center.
Move the mouse over this text to set the image position to top right.
Click to move bottom left. Move the mouse out to reset.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.