Home Ask Login Register

Developers Planet

Your answer is one click away!

L. de Boer February 2016

Hover function in PHP?

Is there a way to use code something among the lines of:

'If (Hover:true)'

in php? I've only found ways to do this in Jquery, but that's no use to me.


ThinkTank February 2016

No you can't, because "hover" is a client-side event.

PHP as a server language can't check client actions.

The only way is using CSS for style event (changing color) or JS (like jQuery) for dynamic event.

Post Status

Asked in February 2016
Viewed 2,107 times
Voted 6
Answered 1 times


Leave an answer

Quote of the day: live life