Since this type of functionality is on the client side (inside the web browser), I don't think that there is a way other than a scripting language. JSPs and
Servlets are built on the Server side, and so there is no way to know where the user's mouse is.
You could probably do something similar with an
applet, but I don't think that would be the right solution. Perhaps Flash would suit your needs if you didn't want to use JavaScript? The problem with these is that the user has to wait for them to load.
I would probably use the JavaScript solution myself.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.