Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/07/2008, 14:21
Avatar de destor77
destor77
 
Fecha de Ingreso: noviembre-2004
Ubicación: Gálvez, Santa Fe, Argentina
Mensajes: 2.654
Antigüedad: 20 años, 4 meses
Puntos: 43
error en llamada a funcion

buenas:
tengo este codigo:
Código:
<script>

function mostrar(id) {

div = document.getElementById(id);

div.style.display = "";

}

function cerrar(id) {

div = document.getElementById(id);

div.style.display="none";

}

</script>
porque cuando la llamo as anda i:
Código PHP:
<div id="mostrarDiv\"><a href=\"#\"><img src=\"../images/info.png\" alt=\"Help\" 
                               title=\"help\" onclick=\"mostrar('help')\"/></a></div>
                               <div id=\"help\" style=\"display:none;\"> 
y cuando la llamo asi no anda:
Código PHP:
<div id="mostrarDiv\"><a href=\"javascript: mostrar('help');return false;\"><img src=\"../images/info.png\" alt=\"Help\" 
                               title=\"help\"/></a></div><div id=\"help\" style=\"display:none;\"> 
desde ya muchas gracias