mercredi 18 décembre 2019

Script random text generator


Script random text generator

<div style = "background: none; color: white; font-size: 36px; font-weight: bold; padding: 3px 6px; text-align: center; width: 750x;">

<script language = "JavaScript">



<! -



var r_text = new Array ();

r_text [0] = "your text";

r_text [1] = "your text";

r_text [2] = "your text";

r_text [3] = "your text";

r_text [4] = "your text";

r_text [5] = "your text";

r_text [6] = "your text";

r_text [7] = "your text";



var i = Math.floor (8 * Math.random ())



document.write (r_text [i]);



// ->



</ Script>

</ Div>





Notes:




  • Backgroud or color: none = transparent or enter the color of your choice.
  • Font size: Change the size of your characters by changing the pixel value.
  • Wildh: Change the pixel value to get the width of your choice.
  • r_text [7] = "your text"; Add as many as necessary.
  • var i = Math.floor (? * Math.random ()) The value of? is +1 the last value of your entry.