Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var book = soundManager.createSound({
- id: 'book', // optional: provide your own unique id
- url: 'audio/book.wav'
- // onload: function() { console.log('sound loaded!', this); }
- // other options here..
- });
- $.fn.slideShow = function(fadeIn, delay, fadeOut, playWord){
- function recursiveFade(jq){
- if(jq.length !== 0)
- jq.fadeIn(fadeIn).delay(delay).fadeOut(fadeOut).play(function () {soundManager.play()}).queue(function(){
- recursiveFade(jq.next());
- $(this).dequeue();
- });
- }
- recursiveFade(this.children().first());
- }
- $(function(){$('.herocontent1')slideShow(3000, 1000, 3000, 'book');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement