Results 1 to 6 of 6

Thread: Graphical Drop Down Menus

  1. #1
    Join Date
    Mar 2006
    Location
    Buffalo, NY
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Graphical Drop Down Menus

    I was wondering how I can make a drop down menu in CSS that has a cutom look to it like the one on http://www.verizonwireless.com. I like how those have a customer look to them rather then using a <select> list in HTML.

    I am pretty new to CSS, suggestions would be great.

  2. #2
    Join Date
    Feb 2007
    Posts
    46
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I don't have any advice for you, as I am new to CSS as well. I do like the look of that particular drop-down as well (especially the partially transparent black background of the drop-downs). I guess with most sites referencing an external CSS file, it's impossible to see source code. I would be most interested in learning how to do that. (I can do a basic drop down in CSS using lists -- it's just the hundreds of options and settings that have my head spinning).

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    this isn't actually that hard, I do not know if the images are hardcoded, but I imagine it is. If you can do the popout then you can certainly do this script, because on your first "popout" tag just insert an image tag and voila you have the image at the top.

    now if it is not done hardcoded then that isnt that hard either. You would however need a reference point in the script, and I would think that you use the id="" method of the link you would like to popout, then in your javascript navigation you would use


    getElementById("__INSERT__POPOUT__TAG__").jpg


    or whatever extension you chose to save it as, and have the picture be your server.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You would however need a reference point in the script, and I would think that you use the id="" method of the link you would like to popout, then in your javascript navigation you would use


    getElementById("__INSERT__POPOUT__TAG__").jpg


    or whatever extension you chose to save it as, and have the picture be your server.
    ... what? 1) Image elements have no "jpg" property, 2) script needn't be involved at all, it can (and should, if possible) all be done in CSS, 3) a picture can't be a server... I've no idea what you're talking about.
    I guess with most sites referencing an external CSS file, it's impossible to see source code.
    It's perfectly possible, just view the CSS file that's being referenced.

    If you want to do this, the easiest way would be to start with one of the CSS menu scripts here on DD, and just modify the colours and background images a bit.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    oops i meant on the server... and umm i was saying that in the javascript they put that script in... so the image tag would have that src

    Code:
    <img src="javascript:getElementById('__INSERT__POPOUT__TAG__')+.jpg" />
    but I do agree with you playing around with the padding-top and background picture would be the easiest way, I was just giving a couple different options

  6. #6
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    um....DD has some good CSS stuff I think you should look there first.

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
  •