
<!-- Paste this code into an external JavaScript file named: linkArray.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

function linkDisplay() {
  /* Enter the link name below. Each entry must have
     a unique number in the "[]" brackets. */
  var links = new Array();
    links[0]="Google";
    links[1]="Yahoo";
    links[2]="Web Reference";
    links[3]="JavaScript Forum";

  /* Enter the link URL below. Each entry must have
     a unique number in the "[]" brackets which matches
     the entry above. */
  var linkURL = new Array();
    linkURL[0]="http://www.google.com";
    linkURL[1]="http://www.yahoo.com";
    linkURL[2]="http://www.webreference.com";
    linkURL[3]="http://www.webdeveloper.com/forum/forumdisplay.php?f=3";

  for (i=0; i<links.length; i++) {
    document.write("<li>"+links[i].link(linkURL[i])+"</li>");
  }
}






