T
TJJay3rd
hello, all
i'm new to javascript and am attempting to write my first array for a
menu / links.
----source-----
<body>
<script type="text/javascript">
var HorizontalLinks=new Array()
/* <a title="screen tip" href="#1">displayed title</a> */
HorizontalLinks[0]="Yahoo", "www.yahoo.com", "Yahoo";
HorizontalLinks[1]="AOL", "www.aol.com", "AOL";
HorizontalLinks[2]="T. J. jay", "www.geocities.com", "My Site";
for (i=0; i<HorizontalLinks.length; i++)
{
document.write('<a href="http://' + HorizontalLinks[1])+ '">'+
HorizontalLinks[0] + '</a>');
}
</script>
----end----
can someone with patience help me? TIA
i'm new to javascript and am attempting to write my first array for a
menu / links.
----source-----
<body>
<script type="text/javascript">
var HorizontalLinks=new Array()
/* <a title="screen tip" href="#1">displayed title</a> */
HorizontalLinks[0]="Yahoo", "www.yahoo.com", "Yahoo";
HorizontalLinks[1]="AOL", "www.aol.com", "AOL";
HorizontalLinks[2]="T. J. jay", "www.geocities.com", "My Site";
for (i=0; i<HorizontalLinks.length; i++)
{
document.write('<a href="http://' + HorizontalLinks[1])+ '">'+
HorizontalLinks[0] + '</a>');
}
</script>
----end----
can someone with patience help me? TIA