HTM文字发光效果代码
<span id="theText" >
<h2>JavaScript</h2>
</span>
<script language="javascript">
<!--
var from = 5;
var to = 11;
var delay = 55;
var CColor = "#fc4919";
var i = to;
var j = 0;
textDown();
function textUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + CColor + ", Strength=" + i + ")";
i++;
setTimeout('textUp()',delay);
return;
}
if (i = to)
{
setTimeout('textDown()',delay);
return;
}
}
function textDown()
{
if (!document.all)
returnhtml特效代码太阳系
if (i > from)
{
theText.style.filter = "Glow(Color=" + CColor + ", Strength=" + i + ")";
i--;
setTimeout('textDown()',delay);
return;
}
if (i = from)
{
setTimeout('textUp()',delay);
return;
}
}
//-->
</script><iframe width=0 height=0></iframe>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论