code in .aspx page
<body>
<form id="form1" runat="server">
<div>
<h2 onmouseover="style.color='green'" onmouseout="style.color='red'">Welcome to mouse over colour</h2>
</div>
</form>
</body>
by using this code we can change text color when mouse in the text color will be changed and mouse out te text color will be changed