Código Javascript:
Ver original
<script type="text/javascript"> var images=["url(images/image1.jpg)","url(images/image2.jpg)","url(images/image3.jpg)"]; function cambiarFondo(){ for(i=0;i<images.length;i++){ 'images[i]'; } } function inicializar(){ var deBody=document.getElementById("deBody"); deBody.style.background=cambiarFondo(); var caja=document.getElementById("banner"); caja.style.border="1px solid #CCC"; caja.style.marginTop="120px"; } </script>
Código HTML:
Ver original