Menu
Hey!
I’ve got a script for my blog which shows a random quote. I’d like to have it refreshed every 15 seconds and have fade out and fade in with a new quote, but I’m not really sure how to do it. Does any of you know it? Thanks in advance.
This is the script.
[code=html]<script language=”JavaScript”>
<!–
var r_text = new Array ();
r_text[0] = “random text 0”;
r_text[1] = “random text 1”;
r_text[2] = “random text 2”;
r_text[3] = “random text 3”;
r_text[4] = “random text 4”;
r_text[5] = “random text 5”;
var i = Math.floor(6*Math.random())
document.write(r_text[i]);
//–>
</script>