:: Hot Society ::
Rainbow effects on your Shoutout box 259weuo

Hey Guest ! Welcome to Hot Society ! Login or Register if your not yet a member :)


Join the forum, it's quick and easy

:: Hot Society ::
Rainbow effects on your Shoutout box 259weuo

Hey Guest ! Welcome to Hot Society ! Login or Register if your not yet a member :)
:: Hot Society ::
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rainbow effects on your Shoutout box

Go down

Rainbow effects on your Shoutout box Empty Rainbow effects on your Shoutout box

Post by CeeJay.zehrowh Mon Jun 01, 2009 9:38 pm

Credits:Myfriends

Here's the code

Code:
Code:
/* AUTO FONT COLOR CHANGER */
var vhinM;
var newColor = new Array(5);
var curColor = 0;
  newColor[0] = 'yellow';
  newColor[1] = 'cyan';
  newColor[2] = 'red';
  newColor[3] = 'pink';
  newColor[4] = 'violet';
  newColor[5] = 'green';
  newColor[6] = 'blue';
  newColor[7] = 'orange';
  newColor[8] = 'indigo';

function rotateColor() {
  if (curColor == 8)
      curColor = 0;
  else
      ++curColor;
  document.getElementById('cpShoutoutBox').style.color= newColor[curColor];
}

function startRotate() {
  if (vhinM != null)
      clearInterval(vhinM);
  vhinM = setInterval("rotateColor()", 300);
}
window.onload = startRotate();

just paste it in ur js extension file

Sorry I don't have a preview right now.
CeeJay.zehrowh
CeeJay.zehrowh
HS Member

Posts : 47
Reputation : 0
Join date : 2009-06-01
Age : 28
Place : Sa Computer

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum