Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2109 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Header

Thread title: Header
Closed Thread    
    Thread tools Search this thread Display Modes  
06-20-2008, 11:31 AM
#1
Lustre91 is offline Lustre91
Status: Member
Join date: Oct 2007
Location: UK
Expertise:
Software:
 
Posts: 491
iTrader: 0 / 0%
 

Lustre91 is on a distinguished road

Send a message via MSN to Lustre91

  Old  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
sammie88 is offline sammie88
Status: Junior Member
Join date: Jun 2008
Location:
Expertise:
Software:
 
Posts: 56
iTrader: 1 / 100%
 

sammie88 is on a distinguished road

Send a message via MSN to sammie88

  Old

This is what you are looking for a think, the script only has 5 however that can be adjusted.
http://www.hypergurl.com/randomimage.html

06-20-2008, 01:07 PM
#3
Liam is offline Liam
Liam's Avatar
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
 
Posts: 287
iTrader: 0 / 0%
 

Liam is on a distinguished road

Send a message via MSN to Liam

  Old

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
mtr is offline mtr
Status: I'm new around here
Join date: Feb 2008
Location: NC
Expertise:
Software:
 
Posts: 13
iTrader: 0 / 0%
 

mtr is on a distinguished road

  Old

^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
Filliate is offline Filliate
Filliate's Avatar
Status: I'm new around here
Join date: Jun 2008
Location:
Expertise:
Software:
 
Posts: 11
iTrader: 0 / 0%
 

Filliate is on a distinguished road

  Old

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 View Post
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
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

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
Lustre91 is offline Lustre91
Status: Member
Join date: Oct 2007
Location: UK
Expertise:
Software:
 
Posts: 491
iTrader: 0 / 0%
 

Lustre91 is on a distinguished road

Send a message via MSN to Lustre91

  Old

I've sorted this, thank you.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed