The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

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:

    $(‘#gallery a’).lightBox();

    Here is my head.php code:

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">

    < ?php echo $pageTitle ?>

    and here is my html:


    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed