Contact us for info optimibility Two Brothers Software Web Design
Web Hosting Provided by: Good Evening,

Welcome to Two Brothers Software Web Design.
Welcome to the script center.

Please contact Two Brothers Software Web Design for information regarding specific projects and server and web browsers needs

Javascript Random Saying: Create a random saying each time the page is loaded!

Cut and paste the following code to the top of your html page:

<script language="Javascript">
// Create the array - random changing text, (c) 2005 Two Brothers Software.
var tbstagline = new Array();
tbstagline[0] = "Place stament one here";
tbstagline[1] = "Place stament two here";
tbstagline[2] = "Place stament three here";
tbstagline[3] = "Place stament four here";
function randomNumber(n) {
number = Math.floor(Math.random() * (n + 1));
return number;
}
</script>


If you want to add more lines be sure to number them accordingly starting with [0]

Place this portion at the point in the HTML where you want the script to read.

<script language="JavaScript">
// Display random changing text, (c) 2005 Two Brothers Software.
document.write(tbstagline[randomNumber(tbstagline.length - 1)]);
</script>

Feel free to use this script in it's any way you would like as long as you like. Make sure that all quotes inside the random tagline ARE single quotes.

This is what this code looks like RANDOM TEXT PAGE

To create a tagline with a <a href> tag use the following modifications:

tbstagline[0] = "<a href='http://www.websitename1.com'>Place statement one here</a>";
tbstagline[1] = "<a href='http://www.websitename2.com'>Place statement two here</a>";
tbstagline[2] = "<a href='http://www.websitename3.com'>Place statement three here</a>";
tbstagline[3] = "<a href='http://www.websitename4.com'>Place statement four here</a>";



Having trouble with cut and paste? Download a .zip file of the Random Sayings Java Script.

You may donate to Two Brothers Software to help support Random Sayings and other new scripts from the script center!
Donations accepted here!




© Saturday, May 17, 2008 Two Brothers Software
All Images created with the GIMP
For more information please contact us!
Web hosting by: ABUCKAMEGAYEAR

SE Computers
SE COMPUTERS



video doctors, tape coversion, video conversion, beloit, wisconsin

We use Google Sitemaps to inform Google's crawler about all your pages and to help people discover more of your web pages.