I have seen many Javascripts that rotate images with each load or
refresh of the page but so far all I've found require hard coding the
image filename into the script. Does anyone know of a script that
pulls images randomly from a directory? Thus I would need only add
(or delete) images from that directory and they would display on the
web page respectively. All the images are the same size (90x90) but
there are hundreds so hard coding a script is not an interesting
solution. :)
Would caching be an issue for something like this and the same picture
would keep appearing rather than a new random selection?
By "rotating" I'm referring to with each loading or refresh of the
page, not the animated-like rotating whereby the picture changes every
nn number of seconds or such. I'm just looking to display a different
picture each time the page is loaded, no more than that.
TIA
refresh of the page but so far all I've found require hard coding the
image filename into the script. Does anyone know of a script that
pulls images randomly from a directory? Thus I would need only add
(or delete) images from that directory and they would display on the
web page respectively. All the images are the same size (90x90) but
there are hundreds so hard coding a script is not an interesting
solution. :)
Would caching be an issue for something like this and the same picture
would keep appearing rather than a new random selection?
By "rotating" I'm referring to with each loading or refresh of the
page, not the animated-like rotating whereby the picture changes every
nn number of seconds or such. I'm just looking to display a different
picture each time the page is loaded, no more than that.
TIA
Comment