Javascripts > Misc Javascripts > Random Quote
Script Title: Random Quote
Description: This simple but useful script displays a random quote out of three.
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<SCRIPT> /* Script obtained from Wsabstract.com For this script and more Visit Java-Scripts.net or Wsabstract.com */ quote0= "Life is like a box of chocolates."; quote1= "Java-Scripts.net is like a box of coco pops. "; quote2= "I have no idea what I am saying. "; var ran_unrounded=Math.random()*2; var ran_number=Math.round(ran_unrounded); document.write(eval("quote"+ran_number)); </SCRIPT>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email