Hola otra vez:
Básicamente es:
<html>
<head>
<title>Capas</title>
</head>
<body>
<div id="capa1" style="WIDTH: 100; HEIGHT: 100;">Cambio de fondo</div>
<button onclick="document.getElementById('capa1').style.ba ckgroundImage = 'url(
http://www.mipagina.com/img/img.gif
)'" >fondo </button>
</body>
</html>
Saludos