random image display

K

kevhatch

Hi,
I hope someone can help me here.
I am using Publisher 2003 to design my website. I have trawled through the
internet trying to find an easy solution to my problem without success.
What I would like is to have a random image displayed on my home page from
the current gallery uploaded to my server. I have found a lot of solutions
that require naming all the pictures to be displayed (a lot of work), or
using php whihch I have no idea about. Is there some code I can use that will
go to my current gallery and randomly display images?
I would like the random pictures displayed on my sites main page,
www.takingthelongwayhome.co.uk , (just below where our route is shown).
Please feel free to treat me like a 3 year old in any reply as I am really
not sure what I should be doing!!!
Many thanks in advance.
Kev
 
D

DavidF

I fear every solution will require a bit of work on your part, but that is
part of web building.

Renaming image files manually can be a bit tedious, but it really shouldn't
take that long to right click > rename files. However, if you really find
this too much, then look to your image editing program to rename your image
files in batches. Adobe Photo Shop Elements has a 'batches'
feature...rename, optimize, resize etc. If you want a freebie, then
http://www.irfanview.com/index.htm has this feature. Just File > Batch
conversion/rename. I would suggest that you make a copy of a folder of
images to practice on so you don't accidentally wipe out your original
images. In fact, I hope you have worked out a good backup plan for while you
are on the road. I would be uploading all image files and other important
files to a folder on your website for storage on a regular basis...but that
is another subject.

As per the script for random images in a slide show, there are zillions of
freebie scripts. I would suggest that you use a javascript slideshow and
insert the code into your Pub page using the insert html code fragment
feature. You can Google for 'javascript slide shows' or look through the
scripts here: http://www.dynamicdrive.com/dynamicindex14/index.html
Just test the different scripts until you find one that works the way you
want it to, and of course be sure to test in both IE and FireFox.

DavidF
 
D

DavidF

By the way, I didn't explain that I think you will have to rename your
images unless you can change the script to accept the default file names
produced by your camera. Most of the scripts I have used asks for
image001.jpg, image002.jpg etc or some sort of consistent file name that
only varies by a number. I don't think I have seen any slide shows that
accept mixed files names such as sunset.jpg and oceanview.jpg or some sort.
With that said you might look at Irfanview, JAlbum, Porta and/or some of the
other slide show producing software. If memory serves they might
automatically take images from a designated folder, copy, rename, and resize
and create the images used by the script for their slide shows. I just don't
remember one that produces a random slide show, but there probably is one...

DavidF
 
K

kevhatch

Thanks for the response David.
I'll take a look at your suggestions and see what I can find.
Looks like it may be a bit too much work, might be easier for me to just
insert a new picture occaisionally.
Kev
 
G

GeoffreyChaucer

You are right David, there are a number of slide shows that will display
images randomly and without sequential names. You will find some at
http://www.dynamicdrive.com/

However, unless I am mistaken, what Kevhatch seem to want is not a
slideshow, but a single picture displayed randomly from a set of images each
time the page is downloaded.

If that is the case, then another technique is required. You will find a
script for random image display (not show) also at dynamicdrive.

Cheers
 
D

DavidF

OK...I can see how that might be what he wanted. Thanks for jumping in
there. Sometimes I probably read through these questions too quickly and
make assumptions as to what people are asking.

Happy New Year to you and everyone else in the group!

DavidF
 
G

GeoffreyChaucer

Thanks David, and a Happy New Year to you.

DavidF said:
OK...I can see how that might be what he wanted. Thanks for jumping in
there. Sometimes I probably read through these questions too quickly and
make assumptions as to what people are asking.

Happy New Year to you and everyone else in the group!

DavidF




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top