/    Sign up×
Community /Pin to ProfileBookmark

why is my slideshow not working?

Please see [url]http://samedayclean.com[/url] (a site under construction).

The image of the man in the white shirt is the first of 4 images that should display as a automatic slide show. But now it does not.

Would someone please tell me what’s wrong with this script?

Thank you

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@rproctor83Apr 19.2011 — Well, a couple things... One you added the image to a TD, which doesnt have a SRC attribute... You should add the image inside the div as an img element, not as a background to a TD.

Another thing, and I don't know if I am just missing something or what... But I don't see anything more than:

images = new Array(

"http://samedayclean.com/images/slides/slide01.jpg",

"http://samedayclean.com/images/slides/slide02.jpg",

"http://samedayclean.com/images/slides/slide03.jpg",

"http://samedayclean.com/images/slides/slide04.jpg",

);

var i = 1;

function rotatepic() {

if (document.rotate) {

document.rotate.src=images[i % images.length];

i++;

}

}


If thats all your doing, how do you i magine the images would even animate? There are no events to trigger the animation, and nothing transition the images. Here is some simple logic:

On document ready start slide show.

Wait 5 seconds

Transition first image out

Transition second image in

Wait 5 seconds

repeat.
Copy linkTweet thisAlerts:
@joeharkauthorApr 19.2011 — Thank you for the response. I truly appreciate that.

But I'm afraid it's way above my level of understanding.
×

Success!

Help @joehark 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,
)...