Re: random image Rotation



Brian wrote on 10 mrt 2007 in comp.lang.javascript:

I have been looking for a script that can randomly rotate 8
different images on 1 page. I used to have a script that
did this but can't find it now.
I have found loads of script that will load a differnet image
each time the page loads, or will rotate 1 image at a time,
but not one that can do 8 images from a list of images

Does anybody know of one?

Perhaps it wold be better, in this case of specialized taste,
if you build it from scratch.

Better in the sense that the code acts exactly as you wish,
and better n the sense that you learn from it,
and beter in the sense that you get pleasure and satisfaction from it.

You can use your "loads of script" to guide you.

If you really get stuck, this NG is a place for help.

===========

A good way to start is first to generate a random sequence
in an array that has the right length of your total number of pics.
Then take the top 8 for showing, then the next, etc.

However, there are many ways to Rome, and it wasn't build in one day.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.



Relevant Pages

  • Re: Creating server based image catalogs with Filemaker?
    ... I send incoming pics through a batchrename (also a filemaker ... I did not send you a script, but some calculation examples. ... Currently it holds over 15,000 images, and more are added ...
    (comp.databases.filemaker)
  • Re: yet another question on file names with spaces?
    ... > I agree, the echo is redudant. ... > know what they are before the script runs - see below. ... > finding whether they are also on the remote machine. ... > images and pdfs which I only want to transfer once. ...
    (comp.unix.shell)
  • Re: change images
    ... Some UA's can't update the display style with script, in which case, ... Style in FF) and you will see that all of the images are there from ... display styles to "none" and then show the container. ... var oldMenuItem; ...
    (comp.lang.javascript)
  • Re: How resource-intensive are these?
    ... > stringing together 8 smaller images. ... > month, because another little script of mine, BattleFishies ... > everything will come crashing down, with smoke coming out of the server ... requests in 1 second for example. ...
    (alt.php)
  • Re: image gallery
    ... Does this mean i dont have to modify the second part of the script - telling ... If your pictures are stored in your images folder, ... pictures like the FP Banner web component but will be visible to users ... Being in Java doesn't usually / neccessarily mean insecure. ...
    (microsoft.public.frontpage.addins)

Loading