鼠标放在超链接时文字逐个加色的效果怎么做?
link.htc
复制代码 代码如下:
<public:component>
<public:attachevent="onmouseover"onevent="domouseover()">
<public:attachevent="onmouseout"onevent="domouseout()">
<scriptlanguage="javascript">
functiondomouseover(){
with(element)
{filters.item(0).Apply();filters.item(0).Play();}}
functiondomouseout(){
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
}
本文地址:http://www.45fan.com/a/question/14446.html