Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9093765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:11:09+00:00 2026-06-16T23:11:09+00:00

I have an image gallery. jQuery(a.thumb).fancybox({ loop : true, autoPlay : true, playSpeed :

  • 0

I have an image gallery.

jQuery("a.thumb").fancybox({
  "loop"        : true,
  "autoPlay"    : true,
  "playSpeed"   : 4000,
  "nextSpeed"   : 500,
  "prevSpeed"   : 500,
  "openSpeed"   : 500,
  "speedOut"    : 500,
  "openEffect"  : "fade", 
  "closeEffect" : "fade",
  "nextEffect"  : "fade",
  "prevEffect"  : "fade"
});

I want to add a new button to set the autoplay to false/true is it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:11:11+00:00Added an answer on June 16, 2026 at 11:11 pm

    jsFiddle DEMO Title Bar with Autoplay Show Button (Alternate images for visual confirmation)

    jsFiddle DEMO Title Overlay with Autoplay Show Button

    You can place a button inside the Fancybox Title area that when clicked will stop or play the Fancybox show. It will also do a image swap to visually indicate the current playback mode.

    The jsFiddle DEMO above contains complete tutorial comments.

    CSS:

    .fancyControl {
      float: right;
      margin-left: 20px;
    }
    

    jQuery:

    var fancyControlMode = "play";
    
    function fancyPlay(){
      $.fancybox.play();
      $('.fancybox-title .child img').attr('src', 'http://placehold.it/40x24/00ff00/000000&text=PLAY');
      fancyControlMode = "play";
    }
    
    function fancyStop(){
      $.fancybox.play();
      $('.fancybox-title .child img').attr('src', 'http://placehold.it/40x24/ff0000/000000&text=STOP');
      fancyControlMode = "stop";
    }
    
    function fancyButton() {
      if (fancyControlMode === "play") {
        $('.fancybox-title .child').prepend('<img class="fancyControl" src="http://placehold.it/40x24/00ff00/000000&text=PLAY" />');
        $('.fancyControl').toggle(fancyStop, fancyPlay);
      } else {
        $('.fancybox-title .child').prepend('<img class="fancyControl" src="http://placehold.it/40x24/ff0000/000000&text=STOP" />');
        $('.fancyControl').toggle(fancyPlay, fancyStop);
      }
    }
    
    $(".fancybox").fancybox({
      autoPlay: true,
      afterShow: fancyButton
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a image gallery with jQuery found here: http://sarfraznawaz2005.kodingen.com/demos/jquery/image_gallery/ I just wanted
I have been creating an image gallery with jQuery, all is done. The images
Jquery, AJAX and URL changes... I have a gallery, and when the image change
I have been attempting to create a dynamic jQuery image gallery that does not
I have an image gallery that I created by reading the contents inside a
I have an image gallery app that has a slider to control the width
I have a image gallery like Google+ or Facebook and i want to avoid
I'm trying to have an image gallery where a caption is vertically centered inside
I have a simple image gallery here . All I want to do is
what i want to do is that i have a nice image Gallery which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.