Hello, im very new to javascript (hours new) and found this code at Javascript Source. It indeed does what it’s supposed to do, wich is displaying different text every time the site is loaded. That’s fine, but I want to change the random text font to Arial and the font size too. I’ve tried to do it with font tags as in a write.document but it doesnt work and as Im a complete noob in the scripting stuff, I have absolutely no idea why, tough I assume it’s because this oje displays random stuff. Could anyone PLEASE help? Im lost here and I really want to know why.
this is the code:
<CENTER>
<SCRIPT LANGUAGE=”Javascript”><!–
function text() {
};
text = new text();
number = 0;
// textArray
text[number++] = “Random text string 1.”
text[number++] = “Random text string 2.”
text[number++] = “Random text string 3.”
text[number++] = “Random text string 4.”
text[number++] = “Random text string 5.”
// keep adding items here…
increment = Math.floor(Math.random() * number);
document.write(text[increment]);
//–></CENTER></SCRIPT>
thanks in advance (: