Forum Moderators: open
Sample:
<div id="layer" style="background-image: url(images/bg.gif);">
<div onMouseOver="layer.style.background-position='100px 100px';">Move 100 pixels over</div>
Nothing happens when you mouse over, no errors either.
document.getElementById('layer').style.backgroundPosition (Added: Also, you might not want to rely on the DOM to know what you mean by "layer" - better to tell it explicitly to find the object with that ID, as above.)