PrettyPhoto not working...
  • Hi,

    I've just inserted the PrettyPhoto plugin to a site I'm working on and it won't work correctly. I already have another jQuery slideshow running at the top of the page and am wondering whether this is interferring with it.

    I'd appreciate it if someone could take a quick look and see if there's something I'm not doing right?

    http://www.healthkickuk.com/new/facility_test.html

    Thanks!
  • Anyone have any ideas?
  • Can you try disabling s3Slider to see if the issue comes from there?

    Thanks!
  • Does anyone know what it was that was causing this problem with these two being on the same page?

    Thanks.
  • Not sure if this is it, but you have two $(document).ready(function()
    calls in one document...

    try to make it one function, see if this works-


    $(document).ready(function() {
    $("a[rel^='prettyPhoto']").prettyPhoto();
    $('#slider').s3Slider({
    timeOut: 3000
    });
    $('#slider1').s3Slider({
    timeOut: 4000
    });
    });
    </script>
  • Not sure, here is my test site: http://www.mscgtestsite.com/index.php I put the two functions together but am not seeing any changes :(
  • You have a javascript error on line 207.

    <script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
    });
    $('#s3slider').s3Slider({
    timeOut: 7000
    });
    $('#s3slider1').s3Slider({
    timeOut: 7000
    });
    $('#s3slider2').s3Slider({
    timeOut: 7000
    });
    });
    </script>

    Should be

    <script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
    });
    $('#s3slider').s3Slider({
    timeOut: 7000
    });
    $('#s3slider1').s3Slider({
    timeOut: 7000
    });
    $('#s3slider2').s3Slider({
    timeOut: 7000
    });
    </script>

    Thanks
  • IDK the prettyphoto works but not the s3slider, I think it might have something to do with the js coding on one of the pages but I am just not good at this yet. I am just now beginning to teach myself js and it's coming along ok but I just can't find what is causing my problem on this one. Any more help would be great!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!