首页 | 代码中心 | 源码下载 | 用户管理 | 用户留言 | 导航 | 繁體
代码秀,专业程序代码提供商(源码下载,编程技术)
要完成此效果把如下代码加入到区域中 JavaScript Fairyland <Script> <-- //range of glowing var from = 5; var to = 11; //speed of pulsing var delay = 55; //color of glow, name or RGB value (example:'#00FF00') var glowColor = "lime"; //NO MORE EDITING!!! var i = to; var j = 0; //can be called here or whenever you want the text to start pulsing 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> 特别说明:如网页特效代码中有引用图片文件等,请自己下载到本地调试!