Errors on JavaScript for IE5 page

by Keith Purtell <kpurtell(at)vantagemed.net>

 Date:  Thu, 2 Nov 2000 12:02:09 -0600
 To:  <hwg-languages-digest(at)mail.hwg.org>
  todo: View Thread, Original
I'm trying to combine two functions on a page that will be viewed in IE5 by
people using Windows. One changes the background color of a table cell on
mouseover; it works fine. The other causes the cursor to change to a hand,
and makes the entire cell a hyperlink; it also works fine. When I combine
the two, I keep getting "unterminated string constant" and a loss of the
cell hyperlink functionality. I've tried pulling out chunks of the code but
no change. Can someone diagnose this? Thanks in advance.

Keith Purtell, Web Designer
VantageMed Corporation

<HTML><HEAD><TITLE>test</TITLE>
<SCRIPT language="Javascript" type="text/javascript">
function hoverTD(color)
{document.all['tobehovered'].style.background = '#' + color;}
</SCRIPT>
<STYLE type="text/css">
A.NAV:link {color: blue; font-size: 18px}
A.NAV:visited {color: magenta; font-size: 18px}
A.NAV:active {color: red; font-size: 18px}
A.NAV:hover {color: red; font-size: 18px; text-decoration: underline}
TD.Normal {font-size: 18px}
TD.Mouseover {font-size: 18px; cursor: hand}
TD.Click {font-size: 18px; cursor: hand}
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<TABLE border="0" CELLSPACING="0" CELLPADDING="5" WIDTH="200">
<TR><TD ID="tobehovered" BGCOLOR="#EEEEEE" ALIGN="center" nowrap
class="Normal"
onMouseOver="this.className='Mouseover'; hoverTD('FFDDDD'); return true"
onMouseOut="this.className='Normal'; hoverTD('EEEEEE'); return true"
onMouseDown="this.className='Click'"
onClick="document.location.href=intnav5.html';">
<A CLASS=NAV href="test.html">Company</A></TD>
</TR></TABLE>
</BODY>
</HTML>

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA