Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript problem with photo gallery

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33330
    chanman
    Member

    I am trying to build a photo gallery on the light box theory like in chris’s videos cast #64 but i can’t get it working can somebody look at the code for me. photo gallery

    #82725

    You’re getting some JavaScript errors. Specifically, where you call the photo gallery:


    $(document).ready(function();
    $("a[rel^='prettyPhoto']").prettyPhoto();
    });

    It should probably be (notice the curly brace addition in place of the semicolon on the first line):


    $(document).ready(function() {
    $("a[rel^='prettyPhoto']").prettyPhoto();
    });
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.