Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/12/2008, 15:02
Avatar de the_web_saint
the_web_saint
 
Fecha de Ingreso: mayo-2008
Ubicación: localhost/tierra/america/panama
Mensajes: 1.229
Antigüedad: 16 años
Puntos: 43
Respuesta: Problema con función Javascript

Prueba de esta forma:

Cita:
<html>
<head>
<title>Galeria de Fotos</title>

<script language="Javascript">
function sacarfoto() {
document.getElementById('DivFoto').innerHTML='';
}
</script>

</head>
<body>

<div align="center">
<table>
<tbody>
<tr>
<td onclick="sacarfoto();"><img src="fotos/left.gif"></td>
<td onclick="sacarfoto();"><img src="fotos/right.gif"></td>
</tr>
<tr>
<td><div id="DivFoto"><img id="foto" src="fotos/foto06.jpg"></div></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
__________________
..::The Saint::..
El pesimista se queja del viento; el optimista espera que cambie; el realista ajusta las velas.

Última edición por the_web_saint; 18/12/2008 a las 15:09