Changing Text <a> element text when mouse-over a link - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Changing Text <a> element text when mouse-over a link

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
a:hover .replace-me {
   display:none;
}

a:hover:after {<!--from   ww w .  ja va  2  s.co m-->
   content:'Switcheroo!';
}
</style> 
 </head> 
 <body translate="no"> 
  <a href="#"> <span class="replace-me">Hover on me!</span> </a>  
 </body>
</html>

Related Tutorials