We would like to know how to change a portion of text on hover.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
li a:before {<!--from w ww .jav a 2 s .c o m-->
content: "(855) TRY HOVER"
}
li a:hover:before {
content: "(855) 111 1111"
}
</style>
</head>
<body>
<li><a href="#"></a></li>
</body>
</html>
The code above is rendered as follows: