background slideshow autoplay

Hello Experts,

I am trying to figure out how to make this slideshow auto play. Please if you can help. the entire code including the JS file is provided in codrops.

I really like this slideshow yet i have no idea what to change in order to make autoplay. Thank you.
RefaelAsked:
Who is Participating?
 
RobOwner (Aidellio)Commented:
in your page:

$(function() {
    setInterval(function() {$(".next").click();}, 10000);
});

Open in new window


This will click the next button automatically every 10 sec
0
 
Dejan VasiljevicSys Admin and ProgrammerCommented:
Hi Rafael,

Just add interval like this

var auto = setInterval(1000); // 1000 ms = 1 sec

Open in new window


Thanks,
D.
0
 
RefaelAuthor Commented:
Hi Dejan Vasiljevic

First, thank you. As I am not a JS pro can you tell me where in the script should i add it?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Dejan VasiljevicSys Admin and ProgrammerCommented:
Well when You download source, there should be CSS/HTML/JS folders with file. Open .js file and at the beginning of the script you will find where the creator defined var(s) variables, and you should just add this code after them, where are variables defined. Probably creator defined toggle class so You can add it after toggle, or instead of it.
0
 
RefaelAuthor Commented:
I have the JS file opened yet I do not see any defined var(s) variables at the beginning not toggle?
0
 
RefaelAuthor Commented:
Hi Rob Jurd .... Thank you.

It took me some time to understand what you meant.... a wise quick solution I would say :-))

I am guessing there is no other "elegant" solution yet if this works I am happy.

Thank you again.
0
 
RefaelAuthor Commented:
A quick, yet wise solution :-) Thank you Rob Jurd
0
 
RobOwner (Aidellio)Commented:
No problem... The reasons it's not "elegant" is this isn't a plugin that you has configurable options.  More like code someone has posted.  You could modify the object as there is an internal  _navigate() function but currently that isn't accessible from the outside ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.