| | |
Generate Random index.htm website hopepage each time
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2006
Posts: 30
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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).
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 :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Fading on Mouseover
- Next Thread: Need Iframe to stop scrolling.
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






