Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to do mouse-over and shows a panel ?

 
Steve Mutanson
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic