?? 3.24 熒光效果的文本.htm
字號:
<html>
<head>
<title>無標題文檔</title>
</head>
<body>
<span id="theText" style="width:100%">
<h1><font size="2">這是一段具有熒光效果的文本</font></h1>
</span>
<script language="JavaScript">
function SymError()
{
return true;
}
window.onerror = SymError;
var from = 1;
var to = 4;
var delay = 55; //閃的速度
var glowColor = "#FFCC00";//顏色
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>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -