doomdragon6
Staff member
So I got this script for my site; it's just a simple random quote per page load. The script has a default of 10 quotes as you can see here:
I want to add more, and the instructions make it pretty clear that all you have to do is add more and increase the number each time. I did that, but it breaks the code and it doesn't work at all. Only when I reduce it back to the 10 originals can it function.
Am I missing anything? This seems fairly simple, but maybe I'm just not getting something.
Code:
<script language="JavaScript">
// ==============================================
// Copyright 2004 by CodeLifter.com
// Free for all; but please leave in this header.
// ==============================================
var Quotation=new Array() // do not change this!
// Set up the quotations to be shown, below.
// To add more quotations, continue with the
// pattern, adding to the array. Remember
// to increment the Quotation[x] index!
Quotation[0] = "Like an anime, only you're in it!";
Quotation[1] = "Shio Says: Never let anyone put you in a dryer!";
Quotation[2] = "Shio means \"salt\" in Japanese, and Kosho means \"pepper\".";
Quotation[3] = "Kosho's motorcycle has a name. It's \"Grinder\".";
Quotation[4] = "You only just now realized this line is randomly generated.";
Quotation[5] = "How many times have you refreshed?";
Quotation[6] = "Seriously, stop refreshing.";
Quotation[7] = "Voted \"Most Likely to be an Anime Con\" in high school!";
Quotation[8] = "The turtle's name is Shoyu. :3";
Quotation[9] = "Kosho was originally going to be a shadowy demon creature called Nega-Shio.";
// ======================================
// Do not change anything below this line
// ======================================
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}
showQuotation();
</script>
</font>
</center>
Am I missing anything? This seems fairly simple, but maybe I'm just not getting something.