Generate Random index.htm website hopepage each time

Reply

Join Date: Nov 2006
Posts: 30
Reputation: jameswoodhouse is an unknown quantity at this point 
Solved Threads: 0
jameswoodhouse jameswoodhouse is offline Offline
Light Poster

Generate Random index.htm website hopepage each time

 
0
  #1
Apr 10th, 2008
i was wondering how it would be possible to generate a different random homepage for my website each time someone clicks it. Basically so that when they type the domain:

eg www.example.com

it either loads

www.example.com/indexpage1
www.example.com/indexpage2
www.example.com/indexpage3


like here:
http://www.leedsunited.com/page/Welcome

everytime you type www.leedsunited.com into the browser it generates a different start page each time.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: Generate Random index.htm website hopepage each time

 
0
  #2
Apr 10th, 2008
Well, thats done with script.
Tehre are multipel ways to do it... I'd say the more "reliable and safe" methods depending on your server (php/asp etc.).

You could do it with JS... but please be careful, as that requires JS to be enabled on the visitors computer, and is ignored by bots.

Further, it could be somewhat damaging to your Search Engine results (not to mention annoying a percentage of visitors, possibly causing higher bounce/abondonment rates etc.).

But in short, you supply multiple "content files".
Then a piece of script that will randomly pick one.
Plenty of examples/scripts aroudn for that (in most languages).
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Generate Random index.htm website hopepage each time

 
0
  #3
Apr 12th, 2008
That would make me click my back button and never return. Websites should be predictable.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC