Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2011, 16:22
Avatar de livemusic
livemusic
 
Fecha de Ingreso: abril-2011
Ubicación: Lima - Chorrillos
Mensajes: 150
Antigüedad: 13 años
Puntos: 18
Respuesta: eliminar una accion javascript con otra

Veamos si este codigo te ayuda, espero y te funcione suerte saludos ...

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin título</title>
  5. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  6. <script type="text/javascript">
  7. $(function(){  
  8.    
  9. //  $("#enlace").bind({
  10. //      mouseenter : function(){
  11. //          alert('Pasaste encima mio');
  12. //      },
  13. //      mouseleave : function(){
  14. //          alert('Me sacaste de tu camino O.o');
  15. //      },
  16. //      click : function(){
  17. //          alert('Me pinchaste salvaje <.<');
  18. //          $(this).unbind('mouseleave');
  19. //          return false;
  20. //      }
  21. //  })
  22.    
  23.     $("#enlace").mouseenter(function(){
  24.             alert('Pasaste encima mio =P.');
  25.     }).mouseleave(function(){
  26.             alert('Me sacaste de tu camino O.o');
  27.     })
  28.    
  29.     $("#enlace").live('click', function(){
  30.         alert('afff me pinchaste.. =D ... lol ');
  31.         $(this).unbind('mouseleave');
  32.         return false;
  33.     })
  34.    
  35. })
  36. </script>
  37. </head>
  38.  
  39. <a href="#" id="enlace">LiveMusic</a>
  40. </body>
  41. </html>