faqts : Computers : Programming : Languages : JavaScript : Tables

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 9 people (89%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

how to use on mouseover in a cell to chage it's bgcolor for both netscape and IE

Dec 19th, 2005 20:21
Trung Ha Pham, manicam balva,


<html>
<body>
<table border="1" width="100%" id="table1">
	<tr>
		<td onmouseover="javascript:this.style.background='#c0c0c0';" 
onmouseout="javascript:this.style.background='blue';">a</td>
		<td>b</td>
	</tr>
	<tr>
		<td>c</td>
		<td>d</td>
	</tr>
</table>
</body>
</html>

Tested : IE6, NE7.1, Opera7.5, FireFox 1.5