In comp.lang.javascript message <0p*****************@newsfe2-win.ntli.ne
t>, Fri, 9 Feb 2007 14:18:36, Samuel Shulman
<sa************@ntlworld.composted:
>I was refering to the second option
Or even better that the page will change the images using a timer
>"David Gillen" <Be****@RedBrick.DCU.IEwrote in message
news:sl*******************@murphy.redbrick.dcu.ie ...
>2) each time the page loads select a different image in rotation?
Don't top-post. Don't over-quote. See FAQ.
Unless you have a near-infinite number of images available, I don't
think you can *change* the image at *every* load by using new Date().
For any one computer, ISTM that, using a cookie, you should be able at
each load to choose at random from the available images excluding that
last shown, thereby ensuring a *change*.
A page can easily change its own images at intervals while running; see
the graphics clocks in <URL:http://www.merlyn.demon.co.uk/js-anclk.htm>.
It's a good idea to read the newsgroup and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.