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 7852747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:29:47+00:00 2026-06-02T19:29:47+00:00

Scorliss here again. As a client has recently asked me to add multiple image

  • 0

Scorliss here again.
As a client has recently asked me to add multiple image slide shows to their website I have been looking online for a free slideshow/image gallery that I am able to call from a link…without having all the images in the slideshow as links on the page.
I have had some success with lightbox and I found fancybox. I have a sildshow working on the site. My issue is that I am trying to auto start the slideshow when a user clicks a link. Below is the code for the fancybox java script

    <script type="text/javascript">
    $(document).ready(function() {

        $("#fancybox-manual-c").click(function() {
            $.fancybox.open
            ([{ autoPlay:true,
                href : '../images/BDAY 2.jpg',
                title : 'My title'
                }, 
            {
                href : '../images/horse_pic_3.jpg',
                title : '2nd title'
                }, 
            {
                href : '../images/lori.jpg'
                }],
             {'callbackOnShow':myFunc,
                helpers : {
                    thumbs : {
                        width: 75,
                        height: 50
                    },
                    buttons : {}

                }
            });
        });


    });
</script>
<style type="text/css">
    .fancybox-custom .fancybox-skin {
        box-shadow: 0 0 50px #222;
    }
</style>
<script type="text/javascript">
function myFunc() {
alert("Opened!");
}

</script>

In the body of the HTML I have

<a id="fancybox-manual-c" href="javascript:;">Open gallery</a>

Can someone please show me if i should be using a callback…and if so where or if i should just use the “autoPlay:true”
.Thanks SCorliss

  • 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-02T19:29:48+00:00Added an answer on June 2, 2026 at 7:29 pm

    If all you want is for it to automatically play, I would say just use the built in options.

    But in this case you would probably want to move your autoplay:true setting into the options portion of the fancybox parameters.

    Fancybox Parameters (from: http://fancyapps.com/fancybox/#docs):

    $.fancybox.open( [group], [options] )
    

    Move the autoplay:true setting down into the options object parameter:

    $.fancybox.open(
        [
            { href : '../images/BDAY 2.jpg', title : 'My title' }, 
            { href : '../images/horse_pic_3.jpg', title : '2nd title' }, 
            { href : '../images/lori.jpg' }
        ],
        {
            autoplay: true,
            helpers : {
                thumbs : { width: 75, height: 50    },
                buttons : {}
            }
        }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.