## Random Link Generator

The will take you to any random link specified by the author. Note: you can also do random images and files.
CLICK HERE

To put this in your page, copy this line into your `<head></head>` tag.

<!--Put this part in the <head></head> part of your document.--> <script language="JavaScript"> <!-- the contents of this script need to be hidden from other browsers function picklink() { var linknumber = 4 ; var linktext = "nolink.html" ; var randomnumber = Math.random() ; var linkselect = Math.round( (linknumber-1) * randomnumber) + 1 ; if ( linkselect == 1) {linktext="monday.htm" } if ( linkselect == 2) {linktext="tuesday.htm" } if ( linkselect == 3) {linktext="saturday.htm" } if ( linkselect == 4) {linktext="sinday.htm" } return linktext; } // End of script --> </SCRIPT> <!--Now put this part in the body of your document. --> <A HREF="" onClick="this.href=picklink()">CLICK HERE</A> <!--To add more links, first change the number "4" in script that you put in the <head></head> part of your document to the number of links that you have. Then before the line "return linktext;" add if ( linkselect == 5) {linktext="YOUR LINK GOES HERE" } and change the numbers appropriately. For example, the next number would be "6" and so on.-->

## Random Quote

To put this in your page, copy this line into your `<head></head>` tag.

<!--Here is the script for random quotes. Put this part in the <head></head> part of your document.--> <script language="JavaScript"> <!-- Hide this script from old browsers -- var a = Math.random() + "" var rand1 = a.charAt(5) quotes = new Array quotes[1] = "MESSAGE #1" quotes[2] = "MESSAGE #2" quotes[3] = "MESSAGE #3" quotes[4] = "MESSAGE #4" quotes[5] = "MESSAGE #5" quotes[6] = "MESSAGE #6" quotes[7] = "MESSAGE #7" quotes[8] = "MESSAGE #8" quotes[9] = "MESSAGE #9" quotes[0] = "MESSAGE #10" var quote = quotes[rand1] // -- End Hiding Here --> </script> <!--Now put this part in the body of your document. --> <script language="JavaScript"> <!-- Hide this script from old browsers -- document.write("<i>" + quote + "</i>") // -- End Hiding Here --> </script> <!--You can add other font characteristics to the quote. In the line, document.write("<i>" + quote + "</i>") the quote is italisized. In the quotations you may add any other type of tag like <STRONG></STRONG> or <U></U>. -->

## Random Image

To put this in your page, copy this line into your `<head></head>` tag.

<script language="JavaScript"> <!-- Hide this script from old browsers -- var imagenumber = 5 ; var randomnumber = Math.random() ; var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ; images = new Array images[1] = "IMAGE #1" images[2] = "IMAGE #2" images[3] = "IMAGE #3" images[4] = "IMAGE #4" images[5] = "IMAGE #5" var image = images[rand1] // -- End Hiding Here --> </script>

`
Now put this part in the body of your document.`

<script language="JavaScript"> <!-- Hide this script from old browsers -- document.write('<IMG SRC="' + image + '">') // -- End Hiding Here --> </script>

To add more images, first change the number "5" in script that you put in the `<head></head>` part of your document to the number of images that you have. Then before the line "images = new Array" add

    images[6] = "IMAGE #6"

and change the numbers appropriately. For example, the next number would be "7" and so on.

## Random Image With Link

To put this in your page, copy this line into your <head>.``

<script language="JavaScript"> <!-- Hide this script from old browsers -- var imagenumber = 5 ; var randomnumber = Math.random() ; var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ; images2 = new Array images2[1] = "on.gif" images2[2] = "_view1.gif" images2[3] = "javaeditor.gif" images2[4] = "_view2.gif" images2[5] = "on.gif" var image2 = images2[rand1] links = new Array links[1] = "saturday.htm" links[2] = "sunday.htm" links[3] = "friday.htm" links[4] = "tuesday.htm" links[5] = "monday.htm" var link = links[rand1] // -- End Hiding Here --> </script>

Now put this part in the body of your document.

<script language="JavaScript"> <!-- Hide this script from old browsers -- document.write('<A HREF="' + link + '"><IMG SRC="' + image + '" border="0"></a>') // -- End Hiding Here --> </script>

To add more images, first change the number "5" in script that you put in the ``

part of your document to the number of images that you have. Then before the line "images = new Array" add

    images[6] = "IMAGE #6"

and change the numbers appropriately. For example, the next number would be "7" and so on. Same goes for the links!