Skip to content

Instantly share code, notes, and snippets.

@ajpiano
Created Jul 14, 2010
Embed
What would you like to do?
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