
28/08/2009, 04:35
|
| | Fecha de Ingreso: agosto-2009
Mensajes: 4
Antigüedad: 15 años, 6 meses Puntos: 0 | |
Respuesta: ayuda con boton de buscador Aqui tienes lo que querias espero ayudarte:
lo que hace es que cuando estas en el campo de texto busqueda2 al pulsar intro te ejecuta el submit del formulario. Confirmame si te ha servido un saludo.
ThE MaGiStEr
<html>
<head>
<script language="javascript">
function iSubmitEnter(oEvento, oFormulario){
var iAscii;
if (oEvento.keyCode)
iAscii = oEvento.keyCode;
else if (oEvento.which)
iAscii = oEvento.which;
else
return false;
if (iAscii == 13) oFormulario.submit();
return true;
}
</script>
</head>
<body>
<div class="buscador">
<form id="form1" name="form1" method="get" action="">
<label>Propietarios:
<input name="busqueda" type="text" id="busqueda" size="25" />
<input name="busqueda2" type="text" id="busqueda" size="25" onkeypress="iSubmitEnter(event, document.form1)"/>
</label>
<a href="" onClick="form1.submit();return false;" OnMouseOver="document.form1.boton1.src='../images/search_iconb.jpg'" OnMouseOut="document.form1.boton1.src='../images/search_icon.gif'" border=0><img src="../images/search_icon.gif" title="Buscador N.N (Historia)" name="boton1" width="22" height="22" border="0" align="middle" id="boton1"></a>
<label> </label>
</form>
</div>
</body>
</html>
Última edición por The_Magister; 28/08/2009 a las 04:42 |