We would like to know how to hover effect for paragraph.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='/js/lib/mootools-core-1.4.5-nocompat.js'></script>
<style type='text/css'>
p:hover span {<!-- w w w.ja v a 2 s.c om-->
display: none
}
p:hover:before {
content: "Second text here!";
color: red;
}
</style>
</head>
<body>
<p>
<span>First text here!</span>
</p>
</body>
</html>
The code above is rendered as follows: