Grow your CSS skills. Land your dream job.

Help ASAP!!ERRoR?

  • # January 23, 2012 at 2:21 pm

    Hello,
    i am using java script for my drop down menu and image light box but these two seem to have issues with each other because the lightbox is fine but the drop down menu moves to a side of a side of a page in the pages that have images,
    i have checked the firefox error console and i am getting the below error, you can also see the code below, let me know, thanks.
    Error: $(“ul.dropdown li”) is null
    Source File: http://labandastgah.com/js/jquery.dropdown.js
    Line: 21

    $(function(){

    var config = {
    sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)
    interval: 200, // number = milliseconds for onMouseOver polling interval
    over: doOpen, // function = onMouseOver callback (REQUIRED)
    timeout: 200, // number = milliseconds delay before onMouseOut
    out: doClose // function = onMouseOut callback (REQUIRED)
    };

    function doOpen() {
    $(this).addClass(“hover”);
    $(‘ul:first’,this).css(‘visibility’, ‘visible’);
    }

    function doClose() {
    $(this).removeClass(“hover”);
    $(‘ul:first’,this).css(‘visibility’, ‘hidden’);
    }

    $(“ul.dropdown li”).hoverIntent(config);

    $(“ul.dropdown li ul li:has(ul)”).find(“a:first”).append(” » “);

    });






Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".