How can I stop the music player, when prettyphoto opens and start playing again when I close it?
Go to js folder and open script.js. Scroll down to line 149, looks like this:
$("a[rel^='prettyPhoto']").prettyPhoto({deeplinking: false}).find('img').hover(
Just add 2 new options to it, so it looks like this:
$("a[rel^='prettyPhoto']").prettyPhoto({deeplinking: false, changepicturecallback: $.fancyMusicPlayer.pause, callback: $.fancyMusicPlayer.play}).find('img').hover(
Save the file. Thats it!


283 Purchases
137 Comments