Welcome. This code will simply put a button of your forum, and when clicked, displays a random message.
Put this in your Footers:
<center><form action="#" onsubmit="return get_quote();">
<input type="submit" value="
BUTTON TEXT" />
</form></center>
<script type="text/javascript">
<!-- Random Message -->
<!-- This script is made by Qub1. Find more scripts like this at
http://qub1.smfforfree.com/ -->
function get_quote()
{
var quote=new Array()
quote[0]="
MESSAGE1";
quote[1]="
MESSAGE2";
quote[2]="
MESSAGE3";
var ran_num= Math.floor(Math.random()*(quote.length));
window.alert(quote[ran_num]);
return false;
}</script>
Replace BUTTON TEXT with the text you want to be on the button, and replace MESSAGE1,2 or 3 with a random message. To add more messages, add more lines like this:
quote[X]="MESSAGE";
Replace the X with the message number, like if the above one was 0, this one would be 1 and so on...
Thanks for reading!
~ Qub1