Results 1 to 5 of 5

Thread: Expand selectbox

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,319
    Thanks
    30
    Thanked 136 Times in 131 Posts
    Blog Entries
    29

    Default Expand selectbox

    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.

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    As far as I know, that is impossible But, 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"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #3
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, it'll be simple to make your own...
    Code:
    function show(id){
    document.getElementById(id).style.display="inline";
    }
    function close(id){
    document.getElementById(id).style.display="none";
    }
    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.
    Last edited by Nile; 03-25-2008 at 03:11 AM. Reason: Why does it matter?
    Jeremy | jfein.net

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,319
    Thanks
    30
    Thanked 136 Times in 131 Posts
    Blog Entries
    29

    Default

    Jas, thanks, I'll try that one.
    Arie.

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,319
    Thanks
    30
    Thanked 136 Times in 131 Posts
    Blog Entries
    29

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •