QUB1
March 29, 2024, 08:34:45 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Gallery Staff List Login Register  

[CODE] Random Message

Pages: [1]
  Print  
Author Topic: [CODE] Random Message  (Read 329 times)
Qub1
Administrator
Newbie
*****

Rate: +0/-1
Posts: 13


View Profile
« on: March 23, 2009, 09:54:00 am »

This will display a random message on a webpage, here is a preview (refresh for new message):


Put this code where you want the random message, it is easy editable:
Code:
<script language="JavaScript">
<!-- Random Message -->
<!-- This script is made by Qub1. Find more scripts like this at http://qub1.smfforfree.com/ -->
<!--
var r_text = new Array ();
r_text[0] = "I like potatoes!";
r_text[1] = "Cabbage is yummy!";
r_text[2] = "Mmm, refresh again for a new random message.";
r_text[3] = "Err, hi...?";
r_text[4] = "How are you today?";
r_text[5] = "Some bold, red text";
r_text[6] = "Random message";
var i = Math.floor(7*Math.random())

document.write(r_text[i]);

//-->
</script>
« Last Edit: March 23, 2009, 10:04:16 am by Qub1 » Report Spam   Logged

Share on Facebook Share on Twitter


Pages: [1]
  Print  
 
Jump to: