Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/02/2012, 22:50
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: oprimir el boton

Algo de transición?
Jquery

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. Mostrar ocultar jquery
  5. <style type="text/css">
  6. /*<![CDATA[*/
  7.  
  8. body {
  9. font-size: 14pt;
  10. font-family: tahoma;
  11. }
  12. p#mostrar{
  13. cursor: pointer;
  14. }
  15. #gracias{
  16. color: #359AFF;
  17. }
  18.  
  19. /*]]>*/
  20. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
  21. <script type="text/javascript">
  22. //<![CDATA[
  23.        $(document).ready(function(){
  24.         $("#miForm").hide();
  25.         $("#gracias").hide();
  26.           $("#mostrar").click(function(){
  27.              $("#miForm").show(2000);
  28.           });
  29.           $("#validar").click(function(){
  30.             $("#miForm").hide(500);            
  31.             $("#mostrar").hide();
  32.             $("#gracias").show(1500);
  33.           });        
  34.        
  35.        });
  36. //]]>
  37. </head>
  38. <p id="mostrar">
  39. Complete ente formulario
  40. </p>
  41. <form id="miForm" action="#">
  42. <div>
  43. <input type="text" name="nombre" /> <input type="submit" id="validar" value="Validar" />
  44.  
  45. </div>
  46. </form>
  47. <div id="gracias">
  48. Gracias
  49. </div>
  50. </body>
  51. </html>
Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.