![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/05/2008, 16:31
|
| | Fecha de Ingreso: abril-2008
Mensajes: 4
Antigüedad: 16 años, 9 meses Puntos: 0 | |
Re: Problema BackgroundImage Javascript Cita:
Iniciado por caricatos Hola:
Código:
document.getElementById('izquierda').style.backgroundImage = "url(" + portadasarray[actual] + ")";
Tanto el índice como el array son variables y deben estar fuera de la cadena (encadenada)
Saludos ![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png) Muchas grácias compañero
Ya funciona! ![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif) ![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
saludos |