H1 mouse in and mouse out
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
function colorchange()
{
head1.style.color = "red";
}
function colorchangeback()
{
head1.style.color = "black";
}
</script>
</head>
<body>
<h1 id="head1" onMouseover="colorchange()" onMouseout="colorchangeback()">
Mouse mouse in!</h1>
</body>
</html>
Related examples in the same category