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.

Answers


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

Search




Leave an answer