Return to Snippet

Revision: 35348
at November 5, 2010 21:42 by beso


Initial Code
var file = $("#a_audio").attr("href");
    $('#a_audio').bind("click", function(){
        if ($(this).attr("class") == "off") {
            $(this).attr("class", "on");
            $("#a_audio").attr("href", file);  
        }
        else {
            $(this).attr("class", "off");
            $("#a_audio").attr("href", "javascript:deletePlayer('musicwrapper', 'jw52', 'player1');");  
        }
    });

Initial URL


Initial Description
useful for switching a play/stop button

Initial Title
make a switcher

Initial Tags
css, jquery

Initial Language
jQuery