Hi,
this is my first post here. Hope I’ll get some help here.
I need someone to look at my code and tell me where I’m wrong. I just started learning JavaScript and I need someone to tell me how to do this (I did it, but it’s bugged).
I have the site code where I’ve used the given images for an automatic slideshow. I managed to make a script which generates a random number between 3000 and 8000, but generates only whole thousands (3000, 4000, 5000, 6000, 7000 and 8000). These numbers represent the miliseconds for the function I use, which is [I]setTimeout()[I]setTimeout()[I]rotate()
Now, my boss told me this is a nicely done thing, except that he couldn’t make this to work on his regular website (I think we concluded there was a problem with image names later: his images didn’t change at all). Nevertheless, he told me he’ll try to fix the implementation, because he saw my code worked on my laptop and didn’t on his PC, and to try to [I]make the images change not only by themselves with a random timer, but also when a user clicks on the current image
I tried doing this by inserting the [I]onclick[I]<a>[B]did[I]doesn’t work properly
My guess is that something must be wrong with the random time generator, a problem which occurs whenever I click on the image (call the [I]rotate()
What do you suggest?
Thanks.
You can download the whole demo from the link below (I couldn’t post the long code here).
[url]http://www.mediafire.com/?9wnb9gv97cgat79