当前位置: 首页 > 图文教程 > 脚本技术 > Htc > 鼠标放上去超链接的文字逐个加色效果

Htc
无间断滚动效果 htc
*.HTC 文件的简单介绍
HTC教程
HTC基础知识
Web上功能强大的DbGrid表格HTC组件[只需在Table中指定样式就可以完成多种功能可扩展]
锁定行头和列头的表格组件
用htc实现CHECKBOX控件
用htc实现验证模块
用htc实现进度条控件
HTML Component(HTC) 小应用
鼠标放上去超链接的文字逐个加色效果

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-10   浏览: 175 ::
收藏到网摘: n/a

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
}