Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/11/2011, 17:57
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: lupa para un buscador con un form

Es que para eso está específicamente un input image, para pasar las coordenadas x e y de una imagen, lo que te aconsejo, y siguiendo la linea de carlangueitor es que estilices un imput submit con una imagen de fondo.
Algo así

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <style type="text/css">
  7. /*<![CDATA[*/
  8. input.lupa{
  9. width: 17px;
  10. height: 17px;
  11. background-image: url('http://foros.emprear.com/img/fdw/loupe.png');
  12. background-color: transparent;
  13. color: transparent;
  14. border: none;
  15. outline: none;
  16. cursor: pointer;
  17. }
  18. /*]]>*/
  19. </head>
  20. <form action="#">
  21. <p>
  22. <input type="text" name="buscar" />
  23. <input type="submit" class="lupa" value="." title="buscar" />
  24. </p>
  25. </form>
  26. </body>
  27. </html>

saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.