Advertisement
XxUnkn0wnxX

Colour changing names

Aug 12th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copy Code below (Inside Footer)
  2.  
  3. <script>
  4. var speed= 50
  5. var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
  6. var r=1
  7. var g=1
  8. var b=1
  9. var seq=1
  10. var col=1
  11. function changetext(){
  12. for(i=0;i<document.getElementsByClassName("style5").length;i++){
  13. var storetext=document.getElementById? document.getElementsByClassName("style5")[i] : document.all.highlight
  14. rdcolor="#"+hex[r]+hex[g]+hex[b]
  15. storetext.style.color=rdcolor
  16. }
  17. }
  18. function change(){
  19. if (seq==6){
  20. b--
  21. if (b==0)
  22. seq=1
  23. }
  24. if (seq==5){
  25. r++
  26. if (r==12)
  27. seq=6
  28. }
  29. if (seq==4){
  30. g--
  31. if (g==0)
  32. seq=5
  33. }
  34. if (seq==3){
  35. b++
  36. if (b==12)
  37. seq=4
  38. }
  39. if (seq==2){
  40. r--
  41. if (r==0)
  42. seq=3
  43. }
  44. if (seq==1){
  45. g++
  46. if (g==12)
  47. seq=2
  48. }
  49. changetext()
  50. }
  51. function starteffect(){
  52. if (document.all||document.getElementById)
  53. flash=setInterval("change()",speed)
  54. }
  55. starteffect()
  56.  
  57.  
  58. function reddotcity(){
  59. if (col==1){
  60. $( ".style5" ).animate({
  61.     opacity: 0
  62.   }, 2000 );
  63.   col=2
  64.   }
  65.   if (col==2){
  66.   $( ".style5" ).animate({
  67.     opacity: 1
  68.   }, 2000 );
  69.   col=1
  70.   }
  71.  }
  72.  var mrreddot=500
  73. function startadameffect(){
  74. if (document.all||document.getElementById)
  75. flash=setInterval("reddotcity()",mrreddot)
  76. }
  77. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement