JQuery Mouse Over and Out

From CoderLearner
Jump to: navigation, search

jQuery Mouse Over and Out

Uses $.mouseover() and $.mouseout() function for mouse event actions.




Mouse over

When mouse moves over the .sp3 class, it will display the alert.

          alert('mouse over');

Mouse out

When mouse moves out the .sp3, it will display the alert.

                    alert('mouse out');

<seo metagenerator="jquery tutorial" title="Jquery/Ajax" metakeywords="jquery greater,jquery gt, jquery lt, less then, odd jquery,jquery find element, even jquery,jquery event, jquery mouse click, jquery double click, jquery hover, jquery string, jquery array, jquery button, jquery attriubtes" metadescription="jquery button, jquery attriubte, jquery example, jquery tutorial, jquery sample"/>


  $(this).animate({"marginTop": "0px"}, "fast");
  $(this).animate({"marginTop": "16px"}, "fast");