JS help
Out of context: Reply #3
- Started
- Last post
- 5 Responses
- spot130
You can try something like this:
if (state =='play'){
// If image, swap to pause
//if ($(vars.play_button).attr('src... $(vars.play_button).attr("src", vars.image_path + "pause.png");
document.getElementById("txtBtn... = '<a id=\"play-button\">Play</a>';
if (api.options.progress_bar && !vars.is_paused) theme.progressBar();
}else if (state == 'pause'){
// If image, swap to play
//if ($(vars.play_button).attr('src... $(vars.play_button).attr("src", vars.image_path + "play.png");
document.getElementById("txtBtn... = '<a id=\"play-button\">Pause</a>';
if (api.options.progress_bar && vars.is_paused)$(vars.progress_b... : -$(window).width()}, 0 );
}but you'll need to replace the image with a div with the id="txtBtn" and add the link inside it.