<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Homepage Randomizer</title>
	<link>http://ask.metafilter.com/32333/Homepage-Randomizer/</link>
	<description>Comments on Ask MetaFilter post Homepage Randomizer</description>
	<pubDate>Wed, 08 Feb 2006 13:53:40 -0800</pubDate>
	<lastBuildDate>Wed, 08 Feb 2006 13:53:40 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Homepage Randomizer</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer</link>	
		<description>Im looking for a program/extension that will allow me to set 4 or 5 different homepages. I would like to rotate them randomly so my homepage is always a surpirse. Any ideas? </description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.32333</guid>
		<pubDate>Wed, 08 Feb 2006 13:47:49 -0800</pubDate>
		<dc:creator>Cookie Monster</dc:creator>
		
			<category>internet</category>
		
	</item> <item>
		<title>By: BSummers</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505597</link>	
		<description>i would set the homepage to a local HTML page and use some Javascript to randomly redirect to a list of pages</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505597</guid>
		<pubDate>Wed, 08 Feb 2006 13:53:40 -0800</pubDate>
		<dc:creator>BSummers</dc:creator>
	</item><item>
		<title>By: scottj</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505619</link>	
		<description>I like BSummers&apos; idea, but I&apos;d put it on a web server instead of on my local HD.  That way I could have the same settings on multiple computers without having to copy a file each time.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505619</guid>
		<pubDate>Wed, 08 Feb 2006 14:08:33 -0800</pubDate>
		<dc:creator>scottj</dc:creator>
	</item><item>
		<title>By: BSummers</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505624</link>	
		<description>i was going for simplicity and ease of use but if you use multiple computers and have a webserver definately go that route</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505624</guid>
		<pubDate>Wed, 08 Feb 2006 14:10:32 -0800</pubDate>
		<dc:creator>BSummers</dc:creator>
	</item><item>
		<title>By: twiggy</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505626</link>	
		<description>I could code up a quick tool and serve it on my server, allowing individual users to have a list of pages to randomly choose between, if you really want.  You&apos;d set your homepage to the tool on my server, and it would pick a page for you randomly out of your list, which you could edit at will.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505626</guid>
		<pubDate>Wed, 08 Feb 2006 14:11:47 -0800</pubDate>
		<dc:creator>twiggy</dc:creator>
	</item><item>
		<title>By: charmston</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505627</link>	
		<description>That&apos;s an excellent idea, I will probably use this myself:&lt;br&gt;
&lt;hr&gt;&lt;br&gt;
&lt;code&gt;&amp;lt;html&amp;gt;&lt;br&gt;
&amp;lt;head&amp;gt;&lt;br&gt;
&amp;lt;title&amp;gt;Redirecting to random homepage...&amp;lt;/title&amp;gt;&lt;br&gt;
&amp;lt;/head&amp;gt;&lt;br&gt;
&amp;lt;body&amp;gt;&lt;br&gt;
&amp;lt;script&amp;gt;&lt;br&gt;
var randomHomepage=new Array()&lt;br&gt;
&lt;br&gt;
randomHomepage[0]=&quot;http://www.google.com&quot;;&lt;br&gt;
randomHomepage[1]=&quot;http://ask.metafilter.com&quot;;&lt;br&gt;
randomHomepage[2]=&quot;http://www.metafilter.com&quot;;&lt;br&gt;
randomHomepage[3]=&quot;http://projects.metafilter.com&quot;;&lt;br&gt;
randomHomepage[4]=&quot;http://metatalk.metafilter.com&quot;;&lt;br&gt;
&lt;br&gt;
window.location=randomHomepage[Math.floor(Math.random()*randomHomepage.length)]&lt;br&gt;
&amp;lt;/script&amp;gt;&lt;br&gt;
&amp;lt;/body&amp;gt;&lt;br&gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;hr&gt;&lt;br&gt;
Extend as you see fit. On a related note, if you have firefox, you can &lt;a href=&quot;http://ubuntuforums.org/archive/index.php/t-79358.html&quot;&gt;have multiple homepages&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505627</guid>
		<pubDate>Wed, 08 Feb 2006 14:12:32 -0800</pubDate>
		<dc:creator>charmston</dc:creator>
	</item><item>
		<title>By: mr_silver</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505644</link>	
		<description>Downside to the redirect solution is that people will link directly to one of the designs. A simple Perl or PHP script would pick a random html file, load it in and then display it.&lt;br&gt;
&lt;br&gt;
No redirects, no chance of bookmarking one of your alternative pages.&lt;br&gt;
&lt;br&gt;
If you want me to knock it up for you (takes 10 minutes) let me know on here.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505644</guid>
		<pubDate>Wed, 08 Feb 2006 14:25:10 -0800</pubDate>
		<dc:creator>mr_silver</dc:creator>
	</item><item>
		<title>By: boo_radley</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505646</link>	
		<description>IIRC, this is one of the things covered in ORA&apos;s HTML book in the server side includes section, but I don&apos;t have my copy here.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505646</guid>
		<pubDate>Wed, 08 Feb 2006 14:27:01 -0800</pubDate>
		<dc:creator>boo_radley</dc:creator>
	</item><item>
		<title>By: reklaw</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505653</link>	
		<description>Couldn&apos;t you make one of those bookmarklet things (ie. URL starting with &apos;javascript:&apos;) to pick a random page from 4/5, and then set that as the homepage?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505653</guid>
		<pubDate>Wed, 08 Feb 2006 14:32:48 -0800</pubDate>
		<dc:creator>reklaw</dc:creator>
	</item><item>
		<title>By: ducksauce</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505701</link>	
		<description>Yep, reklaw and charmston have a couple of great ideas.  Set your homepage to this:&lt;br&gt;
&lt;br&gt;
javascript:var randomHomepage=new Array(); randomHomepage[0]=&quot;http://www.google.com&quot;; randomHomepage[1]=&quot;http://ask.metafilter.com&quot;; randomHomepage[2]=&quot;http://www.metafilter.com&quot;; randomHomepage[3]=&quot;http://projects.metafilter.com&quot;; randomHomepage[4]=&quot;http://metatalk.metafilter.com&quot;; window.location=randomHomepage[Math.floor(Math.random()*randomHomepage.length)]&lt;br&gt;
&lt;br&gt;
Changing the URLs as you see fit.  Make sure all of that is on one line, and you should be happy.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505701</guid>
		<pubDate>Wed, 08 Feb 2006 15:00:37 -0800</pubDate>
		<dc:creator>ducksauce</dc:creator>
	</item><item>
		<title>By: SpookyFish</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505707</link>	
		<description>Here is charmston&apos;s script as a bookmarklet; it works great for me as the home page in Firefox.&lt;br&gt;
&lt;br&gt;
javascript:var r=new Array();r[0]=&quot;http://www.google.com&quot;; r[1]=&quot;http://ask.metafilter.com&quot;; r[2]=&quot;http://www.metafilter.com&quot;; r[3]=&quot;http://projects.metafilter.com&quot;; r[4]=&quot;http://metatalk.metafilter.com&quot;; window.location=r[Math.floor(Math.random()*r.length)];</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505707</guid>
		<pubDate>Wed, 08 Feb 2006 15:03:13 -0800</pubDate>
		<dc:creator>SpookyFish</dc:creator>
	</item><item>
		<title>By: SpookyFish</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505708</link>	
		<description>&lt;small&gt;&lt;small&gt;Doh! Bad self, use preview! &lt;/small&gt;&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505708</guid>
		<pubDate>Wed, 08 Feb 2006 15:04:26 -0800</pubDate>
		<dc:creator>SpookyFish</dc:creator>
	</item><item>
		<title>By: staggernation</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505727</link>	
		<description>Using a server-side script is preferable to using JavaScript for the reason mr_silver pointed out, plus the JS redirect is awkward from the user perspective since they go to two different URLs, and it tends to break the Back button.&lt;br&gt;
&lt;br&gt;
If you can use PHP on your server, just put this in your index.php page:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;&amp;lt;?php&lt;br&gt;
$i = mt_rand(1, 5);&lt;br&gt;
include(&quot;/path/to/homepages/homepage_$i.html&quot;);&lt;br&gt;
?&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Then make your pages homepage_1.html through homepage_5.html, put them in the right directory, and you&apos;re set.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505727</guid>
		<pubDate>Wed, 08 Feb 2006 15:23:20 -0800</pubDate>
		<dc:creator>staggernation</dc:creator>
	</item><item>
		<title>By: staggernation</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505728</link>	
		<description>Oh, wait. Totally missed what you wanted to do, there. Sorry.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505728</guid>
		<pubDate>Wed, 08 Feb 2006 15:23:58 -0800</pubDate>
		<dc:creator>staggernation</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505895</link>	
		<description>Just to clarify, there are obviously two sense of the word &quot;homepage&quot; being used here.&lt;br&gt;
&lt;br&gt;
1 -- &quot;the page I see when I start up my browser&quot;&lt;br&gt;
&lt;br&gt;
2 -- &quot;the front page of my website&quot;.&lt;br&gt;
&lt;br&gt;
It&apos;s not immediately clear which one you want.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505895</guid>
		<pubDate>Wed, 08 Feb 2006 19:05:47 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#505897</link>	
		<description>Also, what&apos;s all this &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&lt;em&gt;new Array(), array[0]=&apos;foo&apos;, array[1]=&apos;bar&apos;&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
for?&lt;br&gt;
&lt;br&gt;
&lt;code&gt;javascript:r=new Array(&lt;br&gt;
&quot;http://www.google.com&quot;,&lt;br&gt;
&quot;http://ask.metafilter.com&quot;,&lt;br&gt;
&quot;http://www.metafilter.com&quot;,&lt;br&gt;
&quot;http://projects.metafilter.com&quot;,&lt;br&gt;
&quot;http://metatalk.metafilter.com&quot;);&lt;br&gt;
window.location=r[parseInt(Math.random()*r.length)];&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
does the same thing.&lt;br&gt;
&lt;br&gt;
What are they teaching in JavaScript school these days...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-505897</guid>
		<pubDate>Wed, 08 Feb 2006 19:07:55 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: dhartung</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#506000</link>	
		<description>Not what you&apos;re looking for, but just as an FYI, the venerable &lt;a href=&quot;http://random.yahoo.com/bin/ryl&quot;&gt;Yahoo Randomizer&lt;/a&gt; still works. Perhaps best not used at work, though these days it&apos;s pretty heavy on obscure small businesses and domain squatters.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-506000</guid>
		<pubDate>Wed, 08 Feb 2006 21:51:09 -0800</pubDate>
		<dc:creator>dhartung</dc:creator>
	</item><item>
		<title>By: boo_radley</title>
		<link>http://ask.metafilter.com/32333/Homepage-Randomizer#506248</link>	
		<description>Missed your intent; I thought you were talking about setting up a randomizer for a web site you owned. Mea culpa.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.32333-506248</guid>
		<pubDate>Thu, 09 Feb 2006 07:10:41 -0800</pubDate>
		<dc:creator>boo_radley</dc:creator>
	</item>
	</channel>
</rss>
