tags:

views:

57

answers:

1

I have made a flashLike button with 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

+2  A: 

Have a look at the jQuery Sound Plugin here: http://dev.jquery.com/browser/trunk/plugins/sound/jquery.sound.js?rev=5750

Robert Harvey