Evento jQuery Mobile vmouseout

El evento vmouseout de jQuery Mobile se activa cuando pasamos el mouse por encima y sacamos el mouse del área del elemento. Podemos usar este evento para diferentes propósitos.

Sintaxis:

jQuery( ".selector" ).on( "vmouseout", function( event ) {  } )

Enfoque: Primero, agregue los scripts jQuery Mobile necesarios para su proyecto.

<enlace rel=”hoja de estilo”
href=”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css” />
<script src=”http://code .jquery.com/jquery-1.11.1.min.js”></script>
<script src=”http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min .js”></secuencia de comandos>

Ejemplo 1:

HTML

<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
  
    <script src=
        "http://code.jquery.com/jquery-1.11.1.min.js">
    </script>
  
    <script src=
"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js">
    </script>
  
    <script type="text/javascript">
        $(document).on('vmouseout', 'a', function(event) {
            console.log(event)
        })
    </script>
</head>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h4>Mouseout Event using jQuery Mobile</h4>
    </center>
  
    <a data-role="button" id="gfg">click</a>
</body>
  
</html>

Producción:

Ejemplo 2:

HTML

<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
  
    <script src=
        "http://code.jquery.com/jquery-1.11.1.min.js">
    </script>
  
    <script src=
"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js">
    </script>
  
    <script type="text/javascript">
        $(document).on('vmouseout', 'a', function() {
            console.log('Mouseout event fired');
        })
    </script>
</head>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h4>Mouseout Event using jQuery Mobile</h4>
    </center>
  
    <a data-role="button" id="gfg">click</a>
</body>
  
</html>

Producción:

Publicación traducida automáticamente

Artículo escrito por taran910 y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *