daily pastebin goal
50%
SHARE
TWEET

inijs

Berandal666 Mar 11th, 2018 497 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var neonbasecolor="transparent"
  2. var neontextcolor="#009900"
  3. var neontextcolor2="#003300"
  4. var neontexsize="8"
  5. var flashspeed=70
  6. var flashingletters=15
  7. var flashingletters2=15
  8. var flashpause=0  
  9. var n=0
  10. if (document.all||document.getElementById){
  11. document.write('<font color="'+neonbasecolor+neontexsize+'">')
  12. for (m=0;m<message.length;m++)
  13. document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'</span>')
  14. document.write('</font>')
  15. }
  16. else
  17. document.write(message)
  18. function crossref(number){
  19. var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
  20. return crossobj
  21. }
  22. function neon(){
  23. if (n==0){
  24. for (m=0;m<message.length;m++)
  25. crossref(m).style.color=neonbasecolor
  26. }
  27. crossref(n).style.color=neontextcolor
  28. if (n>flashingletters-1) crossref(n-flashingletters).style.color=neontextcolor2
  29. if (n>(flashingletters+flashingletters2)-1) crossref(n-flashingletters-flashingletters2).style.color=neonbasecolor
  30. if (n<message.length-1)
  31. n++
  32. else{
  33. n=0
  34. clearInterval(flashing)
  35. setTimeout("beginneon()",flashpause)
  36. return
  37. }
  38. }
  39. function beginneon(){
  40. if (document.all||document.getElementById)
  41. flashing=setInterval("neon()",flashspeed)
  42. }
  43. beginneon()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top