0

Why hover function in css but not is java

hover look like javascript

3rd Jan 2017, 12:53 AM
IZZERAN_SHAH
IZZERAN_SHAH - avatar
3 odpowiedzi
+ 5
In javascript it's onmouseover. Like, <img onmouseover="myFunction()">
3rd Jan 2017, 2:16 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
Hover exist as event in JS aswell as pseudo class in css
3rd Jan 2017, 1:07 AM
Andreas K
Andreas K - avatar
+ 2
example in Jquery: $('selector').hover(function(){ //your code });
3rd Jan 2017, 1:26 AM
Luis Aguilar Ortiz
Luis Aguilar Ortiz - avatar