Help needed with styling Javascript navigation list please - happy to pay!

Discussion in 'Programming' started by typingmums, Apr 2, 2009.

  1. #1
    OK I've posted this in another section on here but still havent been able to resolve the issue so I'm now happy to put my hand in my pocket and get someone who knows what they're doing to fix it. I'm pretty sure its a Javascript issue rather than a CSS issue but if I'm wrong then please correct me :)

    "This is what I put in the other thread which is located here: http://forums.digitalpoint.com/showthread.php?t=1290725

    This is probably something very simple but its driving me nuts so I'm hoping someone here can help me out... pretty please!!

    I've put together a mock page for my client and at the moment we're just playing about with the navigation. They've given me the style of nav they'd like which I've pretty much been able to replicate, bar one problem!

    The style they'd like is at the top of this page, but vertical rather than horizontal:

    http://www.iinet.net.au/index.html

    This is what I've come up with so far... the problem being that when you scroll the flyout menu, the main menu item no longer shows the background image... how oh how oh how do I fix this??!!

    http://fontmedia.com.au/penair/index.html

    Please save me from myself!! haha

    Thanks in advance

    Rahelle"

    All that I want is for someone to give me the code for me to insert it - but to also include notes within that code so that I know how to edit in the future if need be.

    Thanks all :)
     
    typingmums, Apr 2, 2009 IP
  2. typingmums

    typingmums Well-Known Member

    Messages:
    1,446
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Just a couple of images to clarify further what the problem is:

    Here 'about' is still hi-lighted while hovering the sub menus:

    [​IMG]

    On my site as soon as I move across to the submenu 'products' is no longer hi-lighted:
    [​IMG]
     
    typingmums, Apr 2, 2009 IP
  3. beesystem

    beesystem Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Hi i'm ready to takeup this task. will PM the details and the solution.
     
    beesystem, Apr 3, 2009 IP
  4. typingmums

    typingmums Well-Known Member

    Messages:
    1,446
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Thanks so much to beesystem for a great job! For those interested the problem was a simple CSS problem rather than javascript (but something I certainly wouldnt have picked up on myself!)

    replacing "ul li a:hover" with "ul li hover:a" was all it too :)

    Great job beesystem! iTrader coming your way :)
     
    typingmums, Apr 5, 2009 IP
  5. cyber boy

    cyber boy Member

    Messages:
    218
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    hover:a ?!?!?!
    LOL ... There is no such thing in CSS.
    I think you changed hover:a to a:hover .
     
    cyber boy, Apr 5, 2009 IP
  6. typingmums

    typingmums Well-Known Member

    Messages:
    1,446
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    You obviously replied without checking the code! This is the new code and it works perfectly (I did add a ":" in my statement earlier so maybe thats where I confused you) :)

    ul li:hover a {
    display: block;
    text-decoration: none;
    font-family:Arial, Helvetica, sans-serif;
    color:#FFFFFF;
    letter-spacing: normal;
    padding-left: 20px;
    padding-top: 10px;
    background-image: url(images/buttons/background/up.gif);
    background-repeat: no-repeat;
    }
     
    typingmums, Apr 5, 2009 IP
  7. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Just fair warning, that ul li:hover won't work in IE6 without help.
     
    shallowink, Apr 5, 2009 IP