View Single Post
Old 04-10-2001, 01:25 PM   #4
T Dot
Registered User
 
Join Date: Aug 2000
Location: Canada
Posts: 197
Arrow

<script language="JavaScript">
var nr_of_links = 2;
var lnk = new Array (nr_of_links)
var desc = new Array (nr_of_links)
var dsp = new Array (nr_of_links)
lnk[0] = "01.html";
lnk[1] = "http://www.link2.com";
lnk[2] = "http://www.link3.com";

desc[0] = "PIC";
desc[1] = "PIC";
desc[2] = "PIC";

dsp[0] = "";
dsp[1] = "";
dsp[2] = "";

var hits = 0;
while (hits < (nr_of_links + 1))
{
rnd = Math.round(Math.random() * nr_of_links)
if (dsp[rnd] == "")
{
dsp[rnd] = lnk[rnd]
hits += 1
document.write('<a href="' + lnk[rnd] + '" target="_blank">' + desc[rnd] + '</a> ')
**
**
//-->
</script>

This might help...
T Dot is offline   Reply With Quote