Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/load_globes.php on line 22

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/thescrip/public_html/jclass/load_globes.php:22) in /home/thescrip/public_html/jincludes/globals.php on line 43

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/thescrip/public_html/jclass/load_globes.php:22) in /home/thescrip/public_html/jincludes/globals.php on line 43

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/load_globes.php on line 22

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/db_func.php on line 61

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/db_func.php on line 61

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/db_func.php on line 61
Javascript Customizable Random Quote Of The Day Script
TheScriptCenter.com


print page

Random Quote Script

Random Quote Of The Day Script

Description: Displays a Random Quote where ever you insert the code into your webpage. 
Features: 100 different customizable quotes or advertisements. Can be used for quotes or even Random Advertisments! Completely customizable. 

Example:

Edit all the variables you find in the code.
var quotnum = "20";

//In between the " "; enter in your message. Remember not to use double quote (") in your message. You may use a single quote ('). var sds = new Array(1000);
//Enter
sds[0]="I can only help 1 person a day. And today's not your day. Tommorow don't look good either.";

Code:

<script language=javascript>

<!--//

//Enter the amount of quotes you are using.
var quotnum = "29";
 
//In between the " "; enter in your message. Remember not to use double
//quote (") in your message. You may use a single quote (').
 
var sds = new Array(1000);
sds[0]="I can only help 1 person a day. And today's not your day. Tommorow don't look good either.";
sds[1]="I borrowed cd's and copied them from friend's before napster.";
sds[2]="It's not my fault.";
sds[3]="OXY MORON:<br>Microsoft Works";
sds[4]="I'm not poor. I'm financially challenged.";
sds[5]="If you can read this, you don't need glasses.";
sds[6]="After all is said and done, usually more is said than done.";
sds[7]="After all is said and done, usually more is said than done.";
sds[8]="I am a nobody, nobody is perfect, therefore I am perfect. ";
sds[9]="No one ever says 'It's only a game', when their team is winning.";
sds[10]="How come we choose from just two people for president and 50 for Miss America?";
sds[11]="Ever notice that people who spend money on beer, cigarettes, and lottery tickets are always complaining about being broke and not feeling well?";
sds[12]="On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes.";
sds[13]="I earn a seven-figure salary. Unfortunately, there's a decimal point involved.";
sds[14]="The next time you feel like complaining, remember: Your garbage disposal probably eats better than thirty percent of the people in this world.";
sds[15]="The closest I ever got to a 4.0 in high school was my blood alcohol content. ";
sds[16]="Home is where you can say anything you like 'cause nobody listens to you anyway. ";
sds[17]="I live in my own little world, but it's ok, they know me here.";
sds[18]="I don't do drugs anymore 'cause I find I get the same effect just by standing up really fast.";
sds[19]="Money can't buy happiness, but it sure makes misery easier to live with. ";
sds[20]="I don't have a big ego, I'm way too cool for that.";
sds[21]="If flying is so safe, why do they call the airport the 'terminal'?";
sds[22]="Regular naps prevent old age..... especially if you take them while driving.";
sds[23]="When I was born, I was so surprised I couldn't talk for a year and a half.";
sds[24]="I don't approve of political jokes...I've seen too many of them get elected. ";
sds[25]="How much can I get away with and still go to heaven? ";
sds[26]="Travel is very educational.  I can now say 'Kaopectate' in seven different languages.";
sds[27]="If life deals you lemons, make lemonade; if it deals you tomatoes, make Bloody Marys.";
sds[28]="If it was only a 3 hour tour, then why did they bring all their luggage?";
sds[29]="";
sds[30]="";
sds[31]="";
sds[32]="";
sds[33]="";
sds[34]="";
sds[35]="";
sds[36]="";
sds[37]="";
sds[38]="";
sds[39]="";
sds[40]="";
sds[41]="";
sds[42]="";
sds[43]="";
sds[44]="";
sds[45]="";
sds[46]="";
sds[47]="";
sds[48]="";
sds[49]="";
sds[50]="";
sds[51]="";
sds[52]="";
sds[53]="";
sds[54]="";
sds[55]="";
sds[56]="";
sds[57]="";
sds[58]="";
sds[59]="";
sds[60]="";
sds[61]="";
sds[62]="";
sds[63]="";
sds[64]="";
sds[65]="";
sds[66]="";
sds[67]="";
sds[68]="";
sds[69]="";
sds[70]="";
sds[71]="";
sds[72]="";
sds[73]="";
sds[74]="";
sds[75]="";
sds[76]="";
sds[77]="";
sds[78]="";
sds[79]="";
sds[80]="";
sds[81]="";
sds[82]="";
sds[83]="";
sds[84]="";
sds[85]="";
sds[86]="";
sds[87]="";
sds[88]="";
sds[89]="";
sds[90]="";
sds[91]="";
sds[92]="";
sds[93]="";
sds[94]="";
sds[95]="";
sds[96]="";
sds[97]="";
sds[98]="";
sds[99]="";
sds[100]="";
 
var arandomn=Math.random() * quotnum;
arandomn=Math.round(arandomn);
var daquote =sds[arandomn];
 
 document.write("<table border=0 align=center><tr><td align=center><b>"+daquote+"</font></b></td></tr></table>");
 
//-->
</script>