Does anybody know how to use javascript in order to expand a selectbox on mouseover (not on click)? (No manipulation with 'selectbox size =').
With 'expand' I mean: make the options visible.
Thanks,
Arie Molendijk.
Does anybody know how to use javascript in order to expand a selectbox on mouseover (not on click)? (No manipulation with 'selectbox size =').
With 'expand' I mean: make the options visible.
Thanks,
Arie Molendijk.
As far as I know, that is impossibleBut, this website shows an interesting concept that you might look into if you really need to do that. It creates a fake textbox with css. You can work with that to create what you're looking for. Other then that, I don't think it's possible.
--Jas
function GreatMinds(){ return "Think Like Jas"; }
Well, it'll be simple to make your own...
Then you'd just use the links and have like a span under each set of links with the style="display:none;", this way it'll show when hover if you put: onMouseOver and on onMouseOut, to hide, and display. You could also go in the menu part of Dynamicdrive on the homepage and change it from onClick to onMouseOver. I hope this helps.Code:function show(id){ document.getElementById(id).style.display="inline"; } function close(id){ document.getElementById(id).style.display="none"; }![]()
Last edited by Nile; 03-25-2008 at 03:11 AM. Reason: Why does it matter?
Jeremy | jfein.net
Jas, thanks, I'll try that one.
Arie.
Nile, thanks, but that would only show and hide the top option of the selectbox. What I want is some javascript allowing me a box like this one to open on mouseover (mouse over 'this is a selectbox'), not on click.
Arie.
Last edited by molendijk; 03-25-2008 at 12:05 PM.
Bookmarks