Its that time of year again

It's the time of year when the flowers are bloomin', the birdies are chirpin' and i can't get to friggin' sleep.

Not worry though, my insomnia only lasts from spring through the end of fall.

The bad news, if you thought I was incoherent before, wait until I've only had ten hours of sleep in a three or four day time period.

The good news, by not being able to sleep I've set up rotating descriptions at the top of the page. I stole the idea from The Flying Space Monkey, hopefully he'll forgive me when he gets back from the boondocks.

The code for this option is below and should work for any of the blog platforms.


The code below can be copied and pasted into your template wherever you would like the random quotes to appear. If you have less than ten quotes, I would recommend that you duplicate some of them to fill in all ten sections.


<script language="JavaScript">
var Quote=new Array()
Quote[0] = "Insert Your Quote #1";
Quote[1] = "Insert Your Quote #2";
Quote[2] = "Insert Your Quote #3";
Quote[3] = "Insert Your Quote #4";
Quote[4] = "Insert Your Quote #5";
Quote[5] = "Insert Your Quote #6";
Quote[6] = "Insert Your Quote #7";
Quote[7] = "Insert Your Quote #8";
Quote[8] = "Insert Your Quote #";
Quote[9] = "Insert Your Quote #10";
var Q = Quote.length;
var whichQuote=Math.round(Math.random()*(Q-1));
function randomHeader(){document.write(Quote[whichQuote]);}
randomHeader();
</script>
<noscript>
Default Quote I case a Browser doesn't run Java
</noscript>

[+/-] show/hide the code

If you have any questions about the code in this post, please leave a nasty comment for me or send me hate mail.

Posted by phineas g. at 11:55 PM on March 28, 2005
Comments