当cursor 在上的样式改变

<script type="text/javascript">
   function change_a_style(o){
    o.style.textDecoration="underline";
   }
   function change_a_out(o){
    o.style.textDecoration="none";
   }
  </script>

 

<a href="javascript:history.back();" style="text-decoration: none;color:#000000;" onmouseover="change_a_style(this);" onmouseout="change_a_out(this);">返回</a>

 

-------------

 

a:link {
 color: #000000;
 text-decoration: none;
 font-size: 14px;
}

a:visited {
 color:  #000000;
 text-decoration: none;
}

 .change-a a:hover {
 color: #0054c3;
 text-decoration: underline;
 position: relative;
}

你可能感兴趣的:(JavaScript)