You have to options: copy it straight from the page itself, or copy it from a textarea.




The above script is needed, as with the script in the head, for the above script to work. Look below for the script.





This needs to go in the head. example: <html> <head> This is the head </head> <body></body> <html>

<script>
<!-- begin script

// made by cordius. e-mail: aruren@yahoo.com //
// feel free to use/distribute/modify this //
// as long as you keep this message here //

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;

  for (i=0;i<texte.length;i++)   {
    ton=facteur*i;
    if (RGB == 0) {
      c1 = 'FF'
      c2 = conversion(ton);
      c3 = c2;
    }
    else if (RGB == 1) {
      c1 = conversion(ton);
      c2 = 'FF'
      c3 = c1;
    }
    else {
      c1 = conversion(ton);
      c2 = c1;
      c3 = 'FF'
    }
   document.write ('<FONT SIZE=' + taille + ' FACE="' + police + '" COLOR="#' + c1 + c2 + c3 + '">' + texte.substring (i,i+1) + '</FONT>');
  } 
}
//  end script -->
</SCRIPT>





This needs to go in your body element. example: <html> <head> </head> <body> The body </body> <html>


<SCRIPT LANGUAGE="JavaScript">
<!-- begin script
degrade('Fade text script',7,'Trebuchet MS',2)
//  End script -->
</SCRIPT>






Oh yayy!! A textarea!















Email me at aruren@yahoo.com