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>

posted @ 2012-03-05 14:12  寒意  阅读(1144)  评论(0编辑  收藏  举报
HTML,DIV+CSS,js,JQ,UI等WEB前端设计经验 友情链接:中厦海运,火烧板,塑料袋,干挂石材, 日照网站建设, 日照老中医