Not sure what I'm doing wrong but this just won't work, I've tried a bunch of different methods but I just haven't been able to hit the nail on the head.
The html page code looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body text="#FF0000" link="#FF0000 vlink="#FF0000">
<script type="text/javascript" src="menu.js"/></script>
</body>
</html>
The Javascript File looks like this:
function LmOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";
elem.style.cursor = 'hand'}
function LmOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FF0000";}
function LmDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";}
function LmUp(path)
{location.href = path;}
document.write("
<table border=\"0\" width=\"120\" bgcolor=\"#FF0000\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\">
<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"1\"><tr>
<td width=\"100%\" onMouseover=\"LmOver("+this, '#CCCCCC'+")\" onMouseout=\"LmOut("+this, '#000000'+")\" onMouseDown=\"LmDown("+this, '#CCCCCC'+")\" onMouseUp=\"LmUp("+'news.htm'+")\" bgcolor=\"#000000\"><A HREF=\"news.htm\">News</a></td></tr></table>
</td></tr>
</table>
");
can someone please tell me what I'm doing wrong?