Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/04/2006, 05:51
Avatar de forecast
forecast
 
Fecha de Ingreso: octubre-2004
Mensajes: 259
Antigüedad: 20 años, 5 meses
Puntos: 4
Inicializar variables en bucle.

Hola maestr@s;

Soy nuevo en javascript y me está costando mucho acostumbrarme...

Tengo 20 imágenes y para inicializarlas, y lo quiero hacer en un bucle...

for(var i=1; i<20; i++)
{
var 'simbolo'+i=new Image();
}

Pero esto no me funciona... ¿Por qué?¿Como se hacer correctamente?

Gracias.