In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the parameters of the hover function in jquery what the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you will have something to gain after reading the parameters of the hover function in this jquery, let's take a look.
The hover function in jquery has two parameters: 1, the required parameter "inFunction", which is used to specify the event handler function that runs when the mouseenter event occurs; and 2, the optional parameter "outFunction", which is used to specify the event handler function that runs when the mouseleave event occurs.
The operating environment of this tutorial: windows7 system, jquery1.10.2 version, Dell G3 computer.
In jquery, the hover () method specifies two functions to run when the mouse pointer hovers over the selected element.
This method triggers the mouseenter and mouseleave events.
Therefore, the hover function accepts two parameters: one is required and the other can be omitted.
Syntax:
The $(selector) .hover (inFunction,outFunction) parameter is required to describe inFunction. Specifies the function to run when the mouseenter event occurs. OutFunction is optional. Specifies the function to run when the mouseleave event occurs.
Note: if only one function is specified, it will run on the mouseenter and mouseleave events.
Example: when the mouse pointer hovers over it, change the
The background color of the element
$(document) .ready (function () {$("p") .hover (function () {$("p") .css ("background-color", "yellow") }, function () {$("p") .css ("background-color", "pink");})
Move the mouse to the paragraph.
This is the end of the article on "what are the parameters of the hover function in jquery?" Thank you for reading! I believe you all have a certain understanding of the knowledge of "what are the parameters of the hover function in jquery". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.