#fcleft">




This is a very popular script on the personal and newbie section of the web. It shows a random quote on screen. Pretty much that's all it does. If you have a couple company slogans, this script would be nice.
The source...


<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var core = 0
var currentdate = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

quote = new StringArray(5)
quote[0] = "I have not yet begun to fight"
quote[1] = "The God who gave us life gave us liberty at the same time"
quote[2] = "I have no fears for the future of our country.  It is bright with hope"
quote[3] = "Tis time to fear when tyrants seem to kiss"
quote[4] = "The past is pregnant with the present"

author = new StringArray(5)
author[0] = "John Paul Jones"
author[1] = "Thomas Jefferson"
author[2] = "Herbert Hoover"
author[3] = "William Shakespeare"
author[4] = "Gottfried Leibniz"

var ran = 60/quote.length

currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore

var thequote = quote[core]
var theauthor = author[core]
var thebreak = ' - '
var theq = '"'
var theend = '.'

document.write(theq + thequote + theq + thebreak + theauthor + theend)

//-->
</script>