wood burning stoves*
The moose likes JSP and the fly likes how to do mouse-over and shows a panel ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to do mouse-over and shows a panel ?" Watch "how to do mouse-over and shows a panel ?" New topic
Author

how to do mouse-over and shows a panel ?

Steve Mutanson
Ranch Hand

Joined: Apr 15, 2003
Posts: 67
I want to create some tab image at the top of the page, like "Account", "Invest", "Loan", etc. And when user mouse-over "Account" I want it pops a panel underneath Account, the panel may include "My Account", "Balance", etc.
How to do create this panel that is invisible in the first place but appear when mouse over. I know Javascript or VB script can do it. If I don't use them, is there any other way to do it ?
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

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.
 
Don't get me started about those stupid light bulbs.
 
subject: how to do mouse-over and shows a panel ?
 
Similar Threads
i want some ideas
How to reset jpanel...
EventHandling on pi-chart
CSS Scrollbar of ScrollPanel
My panel object won't repaint(). Please help.