Re: random image Rotation
- From: "Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx>
- Date: 10 Mar 2007 08:22:14 GMT
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)
.
- Follow-Ups:
- Re: random image Rotation
- From: Brian
- Re: random image Rotation
- References:
- random image Rotation
- From: Brian
- random image Rotation
- Prev by Date: Re: navigator.mimeTypes
- Next by Date: function handleStateChange() problem?
- Previous by thread: random image Rotation
- Next by thread: Re: random image Rotation
- Index(es):
Relevant Pages
|
Loading