943,771 Members | Top Members by Rank

Ad:
Apr 10th, 2008
0

Generate Random index.htm website hopepage each time

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Light Poster
jameswoodhouse is offline Offline
30 posts
since Nov 2006
Apr 10th, 2008
0

Re: Generate Random index.htm website hopepage each time

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).
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Apr 12th, 2008
0

Re: Generate Random index.htm website hopepage each time

That would make me click my back button and never return. Websites should be predictable.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Fading on Mouseover
Next Thread in HTML and CSS Forum Timeline: Need Iframe to stop scrolling.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC