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> 

摘自 hnyei-WEB前端設計經驗
 

發佈留言