Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/09/2009, 07:52
JonYeste
 
Fecha de Ingreso: enero-2009
Mensajes: 81
Antigüedad: 16 años, 2 meses
Puntos: 1
Respuesta: JavaScript | OOP

Hola de nuevo

Bueno, ya lo he completado con las ultimas indicaciones que me has dado.

Cita:
function getting_img(url, anchura, alternativa, altura) {
this.element = document.createElement("img");
this.element.src = url;
this.element.width = anchura;
this.element.alt = '';
this.element.height = altura;

img = new getting_img('../imag/shadowimg.png', 5, '', document.getElementById('lftfirstdiv').offsetHeigh t);
document.getElementById('cellgeriza').appendChild( img);

}
Pero al visualizarlo por el navegador, me dice : Out of memory at line 5, que corresponde a la sentencia : this.element = document.createElement("img");

La cuestion es que no tira. Como lo podriamos arreglar?

Alguna idea?