首页 > 编程 > HTML > 正文

鼠标放上去超链接的文字逐个加色效果

2020-01-25 18:09:04
字体:
来源:转载
供稿:网友
link.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>

css文件中的调用方法
复制代码代码如下:

A { 
    FILTER: progid:dximagetransform.microsoft.gradientwipe(duration=1); BEHAVIOR: url(jcss/link.htc); HEIGHT: 1px; TEXT-DECORATION: none 
}
 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选