jQuery event - mouseover() method
Example
Change the background color of the element when the mouse pointer is above it:
$("p").mouseover(function(){ $("p").css("background-color","yellow"); });
Definition and usage
mouseover event occurs when the mouse pointer is above the element.
This event most of the time will be used with mouseout events together.
mouseover() method triggers mouseover event, or specifies the function to be executed when mouseover event occurs.
Note:মাউস ইন্টার এবং mouseover-এর পার্থক্য হল, কোনও পছন্দিত ইলেকট্রনিক বা তার সাবগুণগুলির মাঝে মাউস পাইন্টার সরতে পড়লেও, mouseover ইভেন্ট ট্রিগার করা হয়।কেবল যখন মাউস পাইন্টার পছন্দিত ইলেকট্রনিকের মাঝে সরতে পড়লেই, mouseenter ইভেন্ট ট্রিগার করা হয়।নিচের উদাহরণ দেখুন。
Try it yourself:Difference between mouseenter and mouseover
ফাংশনটিকে mouseover ইভেন্টের সাথে যুক্ত করুন
Syntax
$(selector).mouseover(function)
Parameter | Description |
---|---|
function | অপশনাল।যখন mouseover ইভেন্ট ঘটে, চালু হওয়া ফাংশন নির্দিষ্ট করুন。 |