#fcleft">




This javascript is self-explanatory. It is a very popular javascript for pages, although I still can't think of a great use for this script. Webrings use a spin-off CGI script for visiting random pages in a webring. Anyway, if someone finds a great use for this script, e-mail me and tell me what it is.

The source...


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

var currentdate = 0
var theranlink = " "
var core = 0

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

  }
}

link = new StringArray(10)
link[0] = 'http://www.javascript-page.com'
link[1] = 'http://www.yahoo.com'
link[2] = 'http://www.geocities.com/SoHo/1449'
link[3] = 'http://www.geocities.com/SiliconValley/Park/1482'
link[4] = 'http://www.geocities.com'
link[5] = 'http://www.worldnet.att.net'
link[6] = 'http://www.geocities.com/CapeCanaveral/Hangar/5545'
link[7] = 'http://www.lycos.com'
link[8] = 'http://www.pit-bull.com'
link[9] = 'http://www.netforward.com'

var ran = 60/link.length

function ranlink() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  adcore = Math.floor(core/ran)
  core = adcore
    theranlink = link[core]
    self.location = theranlink
}

document.write("<a href='javascript:ranlink()'>Random Link</a>")

//-->
</script>

It's free. 20mb free space at fortune city
This banner was supplied by SAFE Audit