站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题Javascript的荧光字效果

Javascript的荧光字效果

摘要: Javascript的荧光字效果
<textarea readonly style="border:none;font-family:Courier New;line-height:150%;width:760px;overflow-y:visible">


荧 光 效 果 例 子


<script>

function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}

if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}


}

function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}

if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}

//
</script>


</textarea>
↑返回目录
前一篇: javascript 交替变幻的文字
后一篇: JavaScript 实现日历式日期选择