krambal

Untitled

Sep 6th, 2015
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         var book = soundManager.createSound({
  2.               id: 'book', // optional: provide your own unique id
  3.               url: 'audio/book.wav'
  4.               // onload: function() { console.log('sound loaded!', this); }
  5.               // other options here..
  6.             });
  7.  
  8.         $.fn.slideShow = function(fadeIn, delay, fadeOut, playWord){
  9.             function recursiveFade(jq){
  10.               if(jq.length !== 0)
  11.                 jq.fadeIn(fadeIn).delay(delay).fadeOut(fadeOut).play(function ()                   {soundManager.play()}).queue(function(){
  12.                 recursiveFade(jq.next());
  13.              $(this).dequeue();
  14.              });
  15.           }
  16.             recursiveFade(this.children().first());
  17.         }
  18.         $(function(){$('.herocontent1')slideShow(3000, 1000, 3000, 'book');
RAW Paste Data