0

I've set up the navigation on my site with links within the children of a list. The links have text that is tabbed off so that only the image shows. For 2 of the links I want to show specific sub navigation via jquery hover. Unfortunately, this doesn't work as easily as planned. You can see here http://serratedfoundation.com/test/

At the top left of the page is a link without the tabbed off text that shows the functionality I'm looking to attain when hovering over the "services" image. I understand this is fairly elementary and is probably caused by the way I've set up the CSS of the nav. That said, I'm not experienced enough to pinpoint the problem even though I've troubleshot it with the aforementioned link. Additionally, if anyone could provide a link for how to use firebug to troubleshoot Javascript, that'd be great.

1 Answer 1

1

You need to call the function inside jQuery(document).ready()

var j = jQuery.noConflict();

j(document).ready( function(){

    j(".navServices").hover(function () {
        j("#subNavWrap").show();
    }, function() { //on hover out...
        j("#subNavWrap").hide();
    });
});
Sign up to request clarification or add additional context in comments.

1 Comment

Awesome. Thank you kindly for the prompt help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.