Css|javascript| style Sheet
Use JavaScript in CSS styles (onmouseover/onmouseout)
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<HTML>
<HEAD>
<TITLE> CSS styles using JavaScript (onmouseover/onmouseout) 2</title>
<meta name= "generator" content= "EditPlus" >
<meta name= "Author" content= "" >
<meta name= "Keywords" content= "" >
<meta name= "Description" content= "" >
<style type= "Text/css" >
Table
{
Background-color: #000000;
Cursor:hand;
}
Td
{
/* Set onmouseover Event * *
Onmouseover:expression (Onmouseover=function () {this.style.borderColor = ' blue '; this.style.color= ' red '; This.style.backgroundColor = ' Yellow '});
/* Set onmouseout Event * *
Onmouseout:expression (Onmouseout=function () {this.style.bordercolor= '; this.style.color= '; This.style.backgroundColor = '} ');
Background-color: #ffffff;
}
</style>
</HEAD>
<BODY>
<table cellspacing= ' 1px ' border= ' 1 ' >
<tr >
<TD >1 ... </TD>
<td>2 ... </TD>
<td>3 ... </TD>
</TR>
<tr >
<TD >4 ... </TD>
<td>5 ... </TD>
<td>6 ... </TD>
</TR>
</TABLE>
</BODY>
</HTML>