Hi, I'm just learning this new scripting language.
I have created a little script (see below). The HTML builds a table and one
of the cells has a OnMouseOver parameter which I have set to my "Hello"
function. How do I reference the cell used to trigger "Hello". For
example, can I change the background color of the cells as the mouse passes
over them?
<TD onMouseOver="hello()">test</TD>
Within hello, how do I reference the TD cell that triggered hello?
I hope this makes sense.
Thanks in Advance!
Paul
Minneapolis
<html>
<head>
<title>CSS - Example 1</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- // Activate cloak
function hello()
/************************************************** ***************
`description`
11/9/2003 12:37PM
************************************************** ***************/
{
alert("test");
/* how do I reference the cell that invoked this script" */
} // hello()
// Deactivate cloak -->
</SCRIPT>
<link rel=stylesheet type="text/css"
href="css1.css"
title="Example 1">
</head>
<body>
<h1>Test H1</h1>
<table align="center" class=test>
<TR>
<TD onMouseOver="hello()">test</TD>
<TD>test</TD>
</TR>
<TR>
<TD>test</TD>
<TD>test</TD>
</TR>
</table>
<h1>Test H1</h1>
</body>
</html>