Skip to content

Instantly share code, notes, and snippets.

@ajpiano
Created July 14, 2010 20:44
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 ajpiano/476041 to your computer and use it in GitHub Desktop.
Save ajpiano/476041 to your computer and use it in GitHub Desktop.
var vid = $('#product_video').toggle(
function() {
$(this).show();
}, function () {
$(this).hide();
}
);
$('#product_video_link').toggle(
function() {
vid.toggle();
$(this).css('background-image', 'url(img/video_button_pressed.png)')
}, function() {
vid.toggle();
$(this).css('background-image', 'url(img/video_button.png)');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment