JS help

Out of context: Reply #2

  • Started
  • Last post
  • 5 Responses
  • ESKEMA0

    I'm modifying the default supersized shutter theme.
    it also appears here:

    _init : function(){

    // Center Slide Links
    if (api.options.slide_links) $(vars.slide_list).css('margin-l... -$(vars.slide_list).width()/2);

    // Start progressbar if autoplay enabled
    if (api.options.autoplay){
    if (api.options.progress_bar) theme.progressBar();
    }else{
    if ($(vars.play_button).attr('src... $(vars.play_button).attr("src", vars.image_path + "play.png"); // If pause play button is image, swap src
    if (api.options.progress_bar) $(vars.progress_bar).stop().anim... : -$(window).width()}, 0 ); // Place progress bar
    }

    and then there's the <img> pause.png in the html that this code swaps.. I want it to swap text instead of images. can't figure out how.

View thread