Grow your CSS skills. Land your dream job.

One JS plug in working but another is not?

  • # December 23, 2008 at 2:22 am

    I’m trying to add a lightbox image gallery to a website, and each time I click on the thumb nail image, the larger image that should open in the lightbox opens in a new window. I know my jquery lib is working because I have a image cycle plug in working, just each time the page loads I get a error saying lightbox line of javascript code is not a function. Here is my scripts code:

    Code:
    $(document).ready(function(){
    $(“#featured-slider”).cycle(‘fade’);
    $(‘#gallery a’).lightBox();
    });

    Here is my head.php code:

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">








    and here is my html:

    Code:

    I have been looking at this code all day and I think it is something simple, and I just need a fresh set of eyes to check it out.

    Thanks in advance.

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".