Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/03/2010, 13:13
kriss8725
 
Fecha de Ingreso: mayo-2009
Mensajes: 242
Antigüedad: 14 años, 11 meses
Puntos: 2
Pregunta como ejecutar una accion java script con html

Que tal buena tarde, se me presento un problema espero y me puedan guiar, tengo un link en un documento html index.html y en una seccion tengo un link que hace referencia a una informacion que tengo en otro documento llamado soluciones.html:

Código:
<table align="center" id="tablaserv" width="235" cellpadding="0" cellspacing="0" border="0">
               <tr>
                  <td colspan="2"><h1 id="servtit">Diseño y Fabricación de PCB</h1></td>
               </tr>
               <tr>
                 <td id="tdinfoserv" width="130"><p id="infoserv"><a href="http://localhost/hasit/soluciones/index.html#averocultar7">Tarjetas de circuito impreso (PCB)</a></p></td>
                 <td width="114"><img style="margin:0;margin-left:1px;" src="images/Diseño PCB.jpg" border="0" width="114" height="74" align="right" /></td>
               </tr>
               <tr>
                  <td colspan="2"><p id="subinfoserv">Reduce ruido en las señales, mejor compatibilidad electromagnética</p></td>
               </tr>
             </table>
y se supone que al darle click a este link me muestra la informacion del documento soluciones.html, pero en dicho documento mustro esa informacion por medio de javascript de la siguiente manera:

Código:
function oculta1(){
 document.getElementById('divverocultar1').style.display = "none";
 document.getElementById('flechaarriba1').style.display = "none";
 document.getElementById('flechaabajo1').style.display = "block";
}

function muestra1(){
 document.getElementById('divverocultar1').style.display = "block";
 document.getElementById('flechaarriba1').style.display = "block";
 document.getElementById('flechaabajo1').style.display = "none";
}
y lo que no logro hacer es que cuando le de click a link del index.html y me redireccione a soluciones.html se ejecute la funcion muestra1 del javascript para que se despliegue la info a la que le di click. Espero y me halla dado a entender. De antemano gracias.