/ Published in: jQuery
                    
                                        
useful for switching a play/stop button
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
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');");
}
});
Comments
 Subscribe to comments
                    Subscribe to comments
                
                