How can I have my home page open up to a random page?
Twinfun asked:
I’d like when people come to my site to have a different home or landing page open every time. For example, when they type in www.mydomainname.com, they will see a different page every time. I have a lot of possible pages (over 100K) that I want to pop open. Is there a script I can use on my index.com file that would point to a file that has all my possible opening pages? Or is there some other way that would be easy and not involve manually typing in over 100K addresses in a Javascript?
I’d like when people come to my site to have a different home or landing page open every time. For example, when they type in www.mydomainname.com, they will see a different page every time. I have a lot of possible pages (over 100K) that I want to pop open. Is there a script I can use on my index.com file that would point to a file that has all my possible opening pages? Or is there some other way that would be easy and not involve manually typing in over 100K addresses in a Javascript?
Many thanks!
Blog Marketing
Related Posts
- Why can't the yahoo page builder link show up in that box?
- How to get rid of unwanted advertising on my home page?
- On facebook, how do you make only your friends posts show on your wall?
- On a good day, would a Cessna make it from Page, Arizona to Prescott, Arizona without refueling?
- If keywords are used that get a site a first page ranking, about what percent of surfers will become visitors?
- Has anyone had success landing a legit job through Craigslist?
- Creating a Twitter Feed with select users to post on a blog?
- landing pages?
- Anyone know of a good membership referral php script?
- where can i find some free email capturing html code I can put on my blog/website?





August 23rd, 2009 at 5:04 am
Web Search Engine Marketing
Where is this list of 100K addresses?
It is conceivable to write an AJAX web page, such that the javascript request for a XML page with the 100K addresses, and then randomly goes to one of them.
However, that said, you still need to have the 100K addresses somewhere.
August 24th, 2009 at 11:20 pm
DIY Solar Power
I’ve found this code for you
Page randomizer
If script doesn’t work, return to:
example.com
August 26th, 2009 at 8:58 am
Link Building Service
If you mass rename your landing page files to follow a numbered scheme, you can avoid typing them into JavaScript or even loading the filenames explicitly altogether.
~~~~~~~~~~~~~~~
// set the value of {pageCount} to be
// the total number of alternate pages
// to which to direct the visitor
var pageCount = 100000;
// generate a random value on the interval
// [0, pageCount-1]
var r = (pageCount-1)*Math.random();
// round the random variable to the nearest
// whole number (r may have a fractional
// part)
var i = Math.floor(.5 + r);
// all pages that serve as landing should
// be named like page###.html, where the
// ### is the number, e.g., 0-99999 (or
// whatever your actual page count is), of
// a particular page file, e.g., for 100K
// files, your files’ names would be:
// page0.html, page1.html, page2.html,…
// page99999.html
// construct a string for the name of
// the file that corresponds to the current
// random number
var p = ‘page’ + i + ‘.html’
// change the location to the selected
// page
window.location = p;
Don’t need any content here.