suendisra
04-02-2005, 11:30 PM
<html>
<head>
<script>
//declare menus
menu=new Array(1);
menu[0]={
name : "Cool Links",
links : ["Free Translator", "WinZip"],
href : ["www.freetranslation.com", "www.winzip.com"]
};
menu[1]={
name : "Informative Links",
links : ["Learn <i>About</i> Something", "Movies"],
href : ["www.about.com", "www.movies.com"]
};
//finish declaring menus
function display(menuno)
{
content=" | ";
for(n=0;n<=1;n++)
{
content += ('<a href="'+menu[menuno].href[n]+'">'+menu[menuno].links[n]+'</a> | ');
}
div1.innerHTML = content;
window.status = menu[menuno].name;
}
</script>
</head>
<body bgcolor="#000000" text="#c0c0c0">
<script>
document.write('<table><tr>');
for(n=0;n<=1;n++)
{
document.write('<td onMouseOver="display('+(n)+');"> | <font color="#cc0000"><b>'+menu[n].name+'</b></font>');
if(n == 1)
{
document.write(' |</td>');
}else{
document.write('</td>');
}
}
document.write('</tr></table>');
</script>
<div id="div1" style="height:3%"></div>
</body>
</html>
<head>
<script>
//declare menus
menu=new Array(1);
menu[0]={
name : "Cool Links",
links : ["Free Translator", "WinZip"],
href : ["www.freetranslation.com", "www.winzip.com"]
};
menu[1]={
name : "Informative Links",
links : ["Learn <i>About</i> Something", "Movies"],
href : ["www.about.com", "www.movies.com"]
};
//finish declaring menus
function display(menuno)
{
content=" | ";
for(n=0;n<=1;n++)
{
content += ('<a href="'+menu[menuno].href[n]+'">'+menu[menuno].links[n]+'</a> | ');
}
div1.innerHTML = content;
window.status = menu[menuno].name;
}
</script>
</head>
<body bgcolor="#000000" text="#c0c0c0">
<script>
document.write('<table><tr>');
for(n=0;n<=1;n++)
{
document.write('<td onMouseOver="display('+(n)+');"> | <font color="#cc0000"><b>'+menu[n].name+'</b></font>');
if(n == 1)
{
document.write(' |</td>');
}else{
document.write('</td>');
}
}
document.write('</tr></table>');
</script>
<div id="div1" style="height:3%"></div>
</body>
</html>