»
EnglishFrenchVietnamese

Print - Text Colour Fader script - JavaScriptBank.com

Full version: jsB@nk » Text » Fade-Glow » Text Colour Fader script
URL: https://www.javascriptbank.com/text-colour-fader-script.html

Text Colour Fader script © JavaScriptBank.comUse this JavaScript to apply the text colour fader effect into any message.

Full version: jsB@nk » Text » Fade-Glow » Text Colour Fader script
URL: https://www.javascriptbank.com/text-colour-fader-script.html



JavaScript
<script language="JavaScript"> <!-- function tableau (n) { var nb; this.length = n; for (var i = 1; i <=n; i++)    if (i<10) {      nb = i+"";      nb = nb.substring(0,1);      this[i] = nb;    }    return this; } function conversion(couleur) {   var reste=1;   var indice;   var hexa1;   var hexa2;   var couleurHexa;   tabHex = new tableau(16);   tabHex[10]="A"; tabHex[11]="B"; tabHex[12]="C"; tabHex[13]="D"; tabHex[14]="E"; tabHex[15]="F";   indice = 1;   hexa2 = (couleur%16);   hexa1 = parseInt(couleur/16);   hexa2 = tabHex[hexa2];   if (hexa2 == null)     hexa2 = "0";   hexa1 = tabHex[hexa1];   if (hexa1 == null)     hexa1 = "0";   couleurHexa = hexa1 + hexa2;   return couleurHexa; } function degrade(texte, taille, police, RGB) {   var nbCouleurMax = 256;   var facteur = nbCouleurMax/texte.length;   var couleur;   var i;   var c1,c2,c3;} function degrade(texte, taille, police, RGB) {   var nbCouleurMax = 256;   var facteur = nbCouleurMax/texte.length;   var couleur;   var i;   var c1,c2,c3;    for (i=0;i<texte.length;i++)   {     ton=facteur*i;     if (RGB == 0) {       c1 = conversion(ton);       c2 = 'ff'       c3 = conversion(ton);     }     else if (RGB == 1) {       c1 = conversion(ton);       c2 = 'cc'       c3 = conversion(ton);     }     else {       c1 = conversion(ton);       c2 = 00       c3 = conversion(ton);     }    document.write ('<font size=' + taille + ' face="' + police + '" color="#' + c1 + c1 + c2 + '">' + texte.substring (i,i+1) + '</font>');   } }//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<script language="JavaScript">degrade('Erick Gomes Anastácio',5,'arial',1)  </script>  <br>  <script language="JavaScript">degrade('Jesus Cristo é a salvaç&atilde;o!',4,'arial',2)  </script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->