Add Sound to Flash-Like Button With jQuery
I have made a flashLike button w开发者_如何转开发ith jquery via this code:
$(document).ready(function() {
$('#navigation li a').append('<span class="hover"></span>').each(function () {
var $span = $('span.hover', this).css('opacity', 0);
$(this).hover(function () {
$span.stop().fadeTo(500, 1);
}, function () {
$span.stop().fadeTo(500, 0);
});
});
});
But can we add sound to button in hover like flash buttons? Thanks in advance
Have a look at the jQuery Sound Plugin here: http://dev.jquery.com/browser/trunk/plugins/sound/jquery.sound.js?rev=5750
精彩评论