rizome escribió:
Fíjate en cómo hacen en este sitio (y en tantos otros), para llamar a los .js:
Código :
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
pon la ruta de tu .js, en el atributo "src"
PD: pon especial cuidado en las rutas, si las pones "relativas"...
mira el codigo lo estoy utilizando asi y es como tu dices pero no funciona
Código :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Formulario de inscripcion de eventos</title>
<link href="../css/style_list.css" rel="stylesheet" type="text/css" />
<script src="../javascript/java.js" type="text/javascript"> </script>
</head>
<body>
<div align="center" id="titulo">
<p>INSCRIPCION DE EVENTOS</p>
</div>
<p> </p>
<form name="fvalida" action="../php/inscrip_eventos.php"method="POST">
<p>DATOS DEL SUSCRIPTOR </p>
<table width="350" height="152" border="1">
<tr>
<td width="74" height="39">Nombre:</td>
<td width="254"><label>
<div align="left">
<input type="text" name="nombre" hspace="50" />
</div>
</label></td>
</tr>
<tr>
<td height="34">Apellidos:</td>
<td>
<div align="left">
<input type="text" name="apellidos" hspace="50" />
</div></td>
</tr>
<tr>
<td height="30">cedula:</td>
<td>
<div align="left">
<input type="text" name="cedula" hspace="50"/>
</div></td>
</tr>
<tr>
<td height="37">correo:</td>
<td>
<div align="left">
<input type="text" name="correo" hspace="50"/>
</div></td>
</tr>
</table>
<p> </p>
<p>DATOS DEL EVENTO
</p>
<table width="348" height="203" border="1">
<tr>
<td width="91" height="39">Tipo:</td>
<td width="235"><label>
<div align="left">
<input type="text" name="tipo" hspace="50" />
</div>
</label></td>
</tr>
<tr>
<td width="91" height="39">Titulo:</td>
<td width="235"><label>
<div align="left">
<input type="text" name="titulo" hspace="50" />
</div>
</label></td>
</tr>
<tr>
<td height="38">Fecha:</td>
<td><p align="left">
<input type="text" hspace="50" name="fec" onBlur="valFecha(this)" />
dd/mm/aaaa</p>
</td>
</tr>
<tr>
<td height="30">Lugar:</td>
<td>
<div align="left">
<input type="text" name="lugar" hspace="50"/>
</div></td>
</tr>
<tr>
<td height="37">Responsable:</td>
<td>
<div align="left">
<input type="text" name="responsable" hspace="50"/>
</div></td>
</tr>
</table>
<p> </p>
<p align="center"><input type="button" onClick="valida_envia()" name="Enviar" value="Enviar" /></p>
</form>
</body>
</html>
y la busqueda del javascript para colocarla es con examinar
gracias...