荧光效果如何实现?

2026-06-11 13:448阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计187个文字,预计阅读时间需要1分钟。

荧光效果如何实现?

网页特效工厂

荧光效果如何实现?

<!--将以下代码加入HTML的<Body></Body>之间-->
<span id="theText" style="width:100%">
<h1>网页特效梦工厂</h1>
</span><script>
<!--
var from = 1;
var to = 4;
var delay = 55;
var glowColor = "lime";
var i = to;
var j = 0;
textPulseDown();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>
标签:body

本文共计187个文字,预计阅读时间需要1分钟。

荧光效果如何实现?

网页特效工厂

荧光效果如何实现?

<!--将以下代码加入HTML的<Body></Body>之间-->
<span id="theText" style="width:100%">
<h1>网页特效梦工厂</h1>
</span><script>
<!--
var from = 1;
var to = 4;
var delay = 55;
var glowColor = "lime";
var i = to;
var j = 0;
textPulseDown();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>
标签:body