|
|
|
|
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
06-20-2008, 11:31 AM
|
#1
|
Status: Member
Join date: Oct 2007
Location: UK
Expertise:
Software:
Posts: 491
|
Header
Hey, does anyone know the script where if you refresh the page the image in the header changes to another image? I need a script that allows me to use about 6 images.
|
|
06-20-2008, 12:48 PM
|
#2
|
Status: Junior Member
Join date: Jun 2008
Location:
Expertise:
Software:
Posts: 56
|
|
|
06-20-2008, 01:07 PM
|
#3
|
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
Posts: 287
|
this is a really simple way of doing it.
<img src="/images/random/<? $randrange = rand(1,6); echo $randrange; ?>.png" alt=""/>
put 6 images (png in this case) somewhere, named 1-6.
this will randomly select a number from 1-6 and print it as the file name, if you had twenty image you just change rand(1,6); to rand(1,20);
This is the simplest way I've thought of doing it.
|
|
06-20-2008, 03:45 PM
|
#4
|
Status: I'm new around here
Join date: Feb 2008
Location: NC
Expertise:
Software:
Posts: 13
|
^That script is probably the simplest way to accomplish this. Realize, though, that this is done with PHP and not HTML.
|
|
06-25-2008, 05:58 PM
|
#5
|
Status: I'm new around here
Join date: Jun 2008
Location:
Expertise:
Software:
Posts: 11
|
I have used something similar in the past, unfortunately its not the best for SEO. I like have all my images named accordingly.
Originally Posted by Liam
this is a really simple way of doing it.
<img src="/images/random/<? $randrange = rand(1,6); echo $randrange; ?>.png" alt=""/>
put 6 images (png in this case) somewhere, named 1-6.
this will randomly select a number from 1-6 and print it as the file name, if you had twenty image you just change rand(1,6); to rand(1,20);
This is the simplest way I've thought of doing it.
|
|
|
06-25-2008, 07:19 PM
|
#6
|
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
Posts: 5,200
|
If you are just changing one image, how is that not good for SEO? Images don't get picked up by SE's.
|
|
06-25-2008, 07:27 PM
|
#7
|
Status: Member
Join date: Oct 2007
Location: UK
Expertise:
Software:
Posts: 491
|
I've sorted this, thank you.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|