js文字特效(鼠标放上去,颜色渐变,酷)

test.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type=text/css>
<!--
a {cursor:hand; height:1; behavior: url(itshu.htc);
 filter:progid:dximagetransform.microsoft.gradientwipe(duration=1);text-decoration : none ; }
a:link { color : #000; }
a:visited { color : #0099ff ; }
a:hover { color : #ff0000 ;text-decoration: underline;}
a:active { color : #0099ff ; }
-->
</style>

</head>
<body>
<center>
   <a href="http://blog.csdn.net/ITshu/">http://blog.csdn.net/ITshu/</a><br>
  <a href="http://blog.csdn.net/ITshu/">http://blog.csdn.net/ITshu/</a><br>
  <a href="http://blog.csdn.net/ITshu/">http://blog.csdn.net/ITshu/</a><br>
  <a href="http://blog.csdn.net/ITshu/">http://blog.csdn.net/ITshu/</a><br>
 </center>
</body>
</html>

itshu.htc

<public:component>
<public:attach event="onmouseover" onevent="domouseover()">
<public:attach event="onmouseout" onevent="domouseout()">
<script language="javascript">
function domouseover(){
with(element)
{filters.item(0).Apply();filters.item(0).Play();}}
function domouseout(){
with(element){
filters.item(0).Apply();
filters.item(0).Play();}}
</script>
</public:component>

酷极了 

你可能感兴趣的:(JavaScript,.net,css,Blog,HTC)