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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:52:37+00:00 2026-06-16T09:52:37+00:00

We are using a special system that allows our users to set a delay

  • 0

We are using a special system that allows our users to set a delay between slides and whether or not the image contains a link. We were using mootools for the slideshow but wish to update to nivoSlider.

A php script exports the following as per our old system requirements

var data = {
'0225201274127_1.jpg': {delay:4000},
'0225201274417_4.jpg': {delay:3000},
'0225201274624_9.jpg': {delay:5000},
'0225201274607_8.jpg': {delay:3000},
'0225201274456_6.jpg': {delay:6000},
'0225201274521_7.jpg': {delay:7000},
'0225201274435_5.jpg': {delay:3000},
'0225201274338_2.jpg': {delay:2000},
'0225201274647_10.jpg': {delay:1000},
'0225201274359_3.jpg': {delay:6000},
'0225201274707_11.jpg': {delay:4000}
};

I am simply looking for a way to set the delays above to the individual images in the slideshow.

If needed I can reconfigure the output. We have been trying different methods all day without success.

  • 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-16T09:52:38+00:00Added an answer on June 16, 2026 at 9:52 am

    I’m using an array with ‘afterLoad’ and it works good.

      var delays = [4000,3000,5000,3000]; //your delay array
    
        function pageLoad() {
            $(function () {
                $('#slider').nivoSlider({
                    pauseTime: 50000,
                    directionNav: true,
                    afterChange: function () { setDelay() },
                    afterLoad: function () { setDelay() },
                    controlNav: true,
                    pauseOnHover: false
                });
            });
        }
    
        function setDelay() {
            var currentSlide = $('#slider').data("nivo:vars").currentSlide;
            setTimeout(function () {
                $('#slider').find('a.nivo-nextNav').click()
            }, delays[currentSlide]);
    
        }
    

    hope this helps. The rest of your html is standar nivo layout

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some csv-files that I need to import to our system using php.
I cannot download file using java if the url contains special characters. eg:-http://something.com/something/this+this+this.html http://something.com/something/this%20this%20this.html
So I have a classloader (MyClassLoader) that maintains a set of special classes in
I'm trying to create a special button that colors an image based on Foreground
I'm currently working on a system that is using handlebars.js template's. It's working for
I'm developing a basic web form that allows users to search certain columns in
I'm using the system() function in PHP to call a CLI program that I
I'm trying to set up a system that displays calendar items from a resource
Replacing the Special Character using Perl while i am doing this . I got
How to replace special characters using regular expressions? By special, what I mean is

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.