Skip to content

Instantly share code, notes, and snippets.

@bsatrom
Created Apr 15, 2011
Embed
What would you like to do?
$.ie9ify.createThumbbarButtons({
buttons: [{
icon: 'images/play.ico',
name: 'Play Slideshow',
alternateStyle: {
icon: 'images/pause.ico',
name: 'Pause Slideshow'
},
click: function () {
var slideshow = $('#slideshow');
var text = 'Playing...';
if (slideshow.data('state') == 'paused') {
slideshow.data('state', 'playing');
} else {
text = 'Pausing...';
slideshow.data('state', 'paused');
}
slideshow.hide().text(text).fadeIn('slow');
}
}]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment