网页特效:荧光文字(动态效果)

网页特效:荧光文字(动态效果),第1张

网页特效:荧光文字(动态效果),第2张

要完成此效果把如下代码加入到区域中

  


  <script language="Javascript1.2">
  //下面设置显示效果的属性
  var message="Welcome to Javascript Fairyland!"
  var neonbasecolor="gray"
  var neontextcolor="33ff33"
  var flashspeed=100 //in milliseconds
  ///No need to edit below this line/////
  var n=0
  if (document.all){
   document.write('')
   for (m=0;m   document.write(''+message.charAt(m)+'')
  document.write('
')
  //cache reference to neonlight array
   var tempref=document.all.neonlight
  }
  else
  document.write(message)
  function neon(){
   //Change all letters to base color
   if (n==0){
   for (m=0;m   tempref[m].style.color=neonbasecolor
  }
   //cycle through and change individual letters to neon color
   tempref[n].style.color=neontextcolor
   if (n   n++
   else{
   n=0
   clearInterval(flashing)
   setTimeout("beginneon()",1500)
  return
   }
  }
  function beginneon(){
   if (document.all)
   flashing=setInterval("neon()",flashspeed)
  }
  beginneon()
  </script>
  

位律师回复
DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
白度搜_经验知识百科全书 » 网页特效:荧光文字(动态效果)

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情