Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/02/2008, 01:37
Avatar de chalchis
chalchis
 
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 20 años, 10 meses
Puntos: 21
Pregunta Re: insertar imagenes dentro de una celda al seleccionar checkbox

tengo oi otra propuesta usando dom
asi:
<script>
var iconosum=0;
function pruebaDOM()
{
var img1=document.createElement("img"); img1.src="http://localhost/pia/Interfaz/Imagen/Adimages/adm.gif";
img1.border="0";
img1.width="16";
img1.height="16";
img1.id="icono"+iconosum;
var t = document.getElementById('otorgados');
t.appendChild(img1);
iconosum=iconosum+1;
alert(iconosum);
}
</script>

<table>
<tr>
<td><div id="otorgados"></div</td>
</tr>
</table>
el problema es como borro la imagen con el id que le otorgue

saludios
espero tus comentarios

gracias
__________________
gerardo