I am sure this could be answered easily if I was good (or
even Current) with scripting- alas I am not… this question is
a from a video film guy- sorry.
I am looking to change a home page and splash page image (jpg
& or gif) and also some swf animations.
Simply put, i have 5 main 'images' that appear on my main
splash or home page...i would like to have them automatically
switch daily or every other day, or for that matter every
hour… just something that was longer than an
‘animated’ gif, and didn’t require me to change
I would also like the same to occur with a series of flash
Set up your image and/or swf files with similar names except
for the last part of the file name before the file extension. For
example if you are switching images you could name them
img_set_1.png, img_set_2.png, etc. Name as many images as you want
Then you need a function to generate random, or precise,
sequences that reference the images in your collection. Something
This will generate a whole integer (number) between the
lowest img number and the highest img number in your collection.
Add the function in the <head> of your document or
external js file and call it onLoad or something like
document.write ('<img src="img_set_' + randomGenerator(1, 9) +
Put this second code snippet in the body of the page or
within the div etc where you house the images. The values 1 and 9
are the numbers of the first and last images in your collection. If
have more than 9 just add the correct value range to pass to the
You can hook this type of function up to a timer for day,
hour, minute, delivery or use as is for a random img load on each
if you add 'DOM' to your search you can also avoid embedding
compliant way of using scripting.