Skip to content

Instantly share code, notes, and snippets.

@bsatrom
Created April 15, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsatrom/922343 to your computer and use it in GitHub Desktop.
Save bsatrom/922343 to your computer and use it in GitHub Desktop.
$.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