JS CSS制作饱含热情的镶边文字闪烁特效

  作者:bea

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>文字闪烁</title> </head> <body> <style> <!-- #glowtext{ filter:glow(color=ff0000,strength=2); width:10


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文字闪烁</title>
</head>
<body>
<style>
<!--
#glowtext{
filter:glow(color=ff0000,strength=2);
width:100%;
}
-->
</style>
<script language="JavaScript1.2">
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==2)
document.all.glowtext[which].filters[0].strength=1
else
document.all.glowtext[which].filters[0].strength=2
}
function glowit2(which){
if (document.all.glowtext.filters[0].strength==2)
document.all.glowtext.filters[0].strength=1
else
document.all.glowtext.filters[0].strength=2
}
function startglowing(){
if (document.all.glowtext && glowtext.length){
for (i=0;i<glowtext.length;i++)
eval('setInterval("glowit('+i+')",150)')
}
else if (glowtext)
setInterval("glowit2(0)",150)
}
if (document.all)
window.onload=startglowing
</script>
<span id="glowtext"><font color="F5D20A" face="宋体" size="3">看到本网页的都是高手,热烈欢迎您的到来!</span>
</body>
</html>




[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行]



有用  |  无用

猜你喜欢