JavaScript Tutorials
Change the CSS style
Change the CSS style
hover your cursor here to change the CSS style of this layer
change_style.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Change the CSS style</title>
<style type="text/css">
<!--
.demoInitialStyle {
font-family:Georgia, Arial, Helvetica;
font-size: 25px;
height: 50px;
margin: 20px;
padding: 20px;
border: 5px dotted #fff;
}
.demoOnMouseOverStyle {
font-family:Georgia, Arial, Helvetica;
font-size: 25px;
height: 50px;
margin: 20px;
padding: 20px;
border: 5px dotted #777;
background: #FFFFCC;
}
-->
</style>
</head>
<body>
<div id="demoLayer" class="demoInitialStyle"><a href="#" onMouseOver='document.getElementById("demoLayer").className="demoOnMouseOverStyle";' onMouseOut='document.getElementById("demoLayer").className="demoInitialStyle";'>hover your cursor here</a></div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Change the CSS style</title>
<style type="text/css">
<!--
.demoInitialStyle {
font-family:Georgia, Arial, Helvetica;
font-size: 25px;
height: 50px;
margin: 20px;
padding: 20px;
border: 5px dotted #fff;
}
.demoOnMouseOverStyle {
font-family:Georgia, Arial, Helvetica;
font-size: 25px;
height: 50px;
margin: 20px;
padding: 20px;
border: 5px dotted #777;
background: #FFFFCC;
}
-->
</style>
</head>
<body>
<div id="demoLayer" class="demoInitialStyle"><a href="#" onMouseOver='document.getElementById("demoLayer").className="demoOnMouseOverStyle";' onMouseOut='document.getElementById("demoLayer").className="demoInitialStyle";'>hover your cursor here</a></div>
</body>
</html>
JavaScript Tutorials
Other Tutorials
© Morina Internet Solutions - All Rights Reserved