/    Sign up×
Community /Pin to ProfileBookmark

Delay between scripts

Hi,

I am very new to javascript so please bear with me. I have searched the forum for my problem and most likely I could have used some of the solutions, but me being green at this point I would struggle to implement the knowledge.

I am using dynamicdrive’s fading image script on my site:
[URL=”http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm”]http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm[/URL]

I have 4 no slideshows on this site and calling each of them with these div’s:
<div id=”fadeshow1″></div>
<div id=”fadeshow2″></div>
<div id=”fadeshow3″></div>
<div id=”fadeshow4″></div>

Everything works just great but what I am trying to achieve is that image would change every 2 seconds but on the following slideshow. So if I set slideshow delay for all shows to 8 seconds and delay each show by 2 seconds more than the previous one I would achieve this effect:
<div id=”fadeshow1″></div> runs at start
<div id=”fadeshow2″></div> start +2 seconds
<div id=”fadeshow3″></div> start +4 seconds
<div id=”fadeshow4″></div> start + 6 seconds

I hope I am making sense here.

Thanks
Bod

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @bodis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...