|
It's hard to tell by your post: you do recognize that PHP is server side and JS is client side and there's not 'normal' interaction, right? The http transaction is one of request/response/drop communication. Interaction of the server with the mouse would certainly not be what you expect. Certainly, as you describe it, JS would be the way to go. You have to accept the fact, however, that unless you have control of the client, JS might be disabled.
|