Results 1 to 3 of 3

Thread: Any link DD menu - colors

  1. #1
    Join Date
    Sep 2005
    Location
    Sarajevo, Bosnia & Herzegovina
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Any link DD menu - colors

    Hi everyone

    I was playing around with Any link DD menu script and I have question for you guys.

    Is there any way that drop menus can be in different color for every link? For example, Demo script. When submenue is visible for Web design link, on mouse over there is yellow color. Is there any way to have red color for Technology submenue? Blue for New Sites...?

    Thank you

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Assign an ID to each link that you want a certain different hover color for, ex:
    Code:
    //Contents for menu 2, and so on
    var menu2=new Array()
    menu2[0]='<a id="news" href="http://cnn.com">CNN</a>'
    menu2[1]='<a id="news" href="http://msnbc.com">MSNBC</a>'
    menu2[2]='<a id="news" href="http://news.bbc.co.uk">BBC News</a>'
    Then in the style section add a declaration for it like:
    Code:
    a:hover#news {
    background-color: lightblue;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2005
    Location
    Sarajevo, Bosnia & Herzegovina
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you jscheuer1

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
  •