Roll Over Drop-Down Text ?
Hi everyone,
I am hoping that someone could help me?
I am trying to create a drop-down text box. I am working on a Questions and Answers Page for my site. The idea is that the visitor can roll over a question, then a text box drops down with the answer.
Does anyone know how I can achieve this or know where I can obtain the code for it?
Thanks for your help
Jason
decibel.places posted this at 14:07 — 2nd December 2008.
He has: 1,494 posts
Joined: Jun 2008
if the question is plain text, and you want a form select box to display the answer... or even a dropped-down text answer -
You need some DHTML to switch out the innerHTML of the text element (div, span) onmouseover and replace it onmouseoff - or expand and collapse the field...
This could be a possible solution for you, invovling a clickable button (should be modifiable for onmouseover instead of onclick)
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
Anyway, there are hundreds of great snippets on Dynamic Drive!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.