qq空间等闪动的文字怎么做?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>前端开发笔记 寒意@hnyei ,让你感到心跳的文字</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="2">HTML DIV+CSS @ 寒意 hnyei </span>
</body>
</html>


原文链接: http://www.cnblogs.com/hnyei/archive/2012/03/05/2380383.html

你可能感兴趣的:(qq空间等闪动的文字怎么做?)