hide flash plus disable social buttons
  • Hello there, Im loving the script but am a total js noob, This is the script I am trying to use to disable flash ( as it was going over the top of the lightbox) and to disable the social buttons (they are not needed) They work indivicually but if I use them together as below one stopos working.



    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({ hideflash: true });
    $("a[rel^='prettyPhoto']").prettyPhoto({social_tools:false});
    });


    can anyone explain what I have done wrong
  • Since you are defining values for different variables but on the same function you should write:


    $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({hideflash:true,social_tools:false});
    });

Howdy, Stranger!

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