freeCodeCamp/guide/arabic/jquery/jquery-hover-method/index.md

16 lines
807 B
Markdown
Raw Normal View History

---
title: jQuery Hover Method
localeTitle: طريقة jQuery Hover
---
# طريقة jQuery Hover
طريقة `mouseenter` hover هي مزيج من أحداث `mouseleave` و `mouseleave` . بناء الجملة هو:
`$(selector).hover(inFunction, outFunction);
`
سيتم تشغيل الدالة الأولى ، inFunction ، عند حدوث حدث `mouseenter` . الوظيفة الثانية اختيارية ، ولكن سيتم تشغيلها عند `mouseleave` الحدث `mouseleave` . إذا تم تحديد وظيفة واحدة فقط، سيتم تشغيل وظيفة أخرى لكل من `mouseenter` و `mouseleave` الأحداث.
### معلومات اكثر
مزيد من المعلومات يمكن العثور عليها [هنا](https://www.w3schools.com/jquery/event_hover.asp) .