READ ME!

This code was written by me, phuckauthority. You can e-mail me at phuckauthority@crimethinc.tk if you have any questions. If you want to see a working version of the script, just go to http://crimethinc.tk .. I wrote it specifically for that purpose.



INSTALLATION

To install this script, its really really easy, just put quote.js in whatever folder you want and you're done! On the page that you want the quote to popup put this code in:

<script type="javascript" src="http://*yoursite*.ext/*directory*/quote.js">
</script>

It's probably best to put that in the head of the page you want this to popup on, but its up to you, really. Also, you can rename the script and it will still work just fine.


ADDING QUOTES

So you got the script, but now you're wondering, "How the hell can I add my own quotes to this thing??"

Well the answer to this is easy:

1. Open up quote.js in your favorite text editor.

2. Directly after the string quotes=new Array() insert:

quotes[quotes.length]='*your quote here*';

Here is a working example:

quotes[quotes.length]'Random quote of the day: "You Are Awesome!" --Me';

The number of quotes you can add is unlimited, its really only limited by your stamina, the number of quotes and amount of space your host gives you.

Here are some guidelines for putting in quotes, though:

Whenever you need to use the ' character, for instance in a sentance that says "he's" you will need to insert a \ right before it. Otherwise the script will see that as the end of the string's content.

You also want to be sure that you have a ; at the end of every line.

Multiline quotes are invalid. The entirety of the text to be displayed MUST be on one line and one line only.

Lets say you wanted to display a conversation for instance, you would want the whole conversation on one line, but you could make the display have line breaks like this:

quotes[quotes.length]='Random quote of the day:\n "Where will we go from here, I wonder?"\n"Away from the things of man, away from the things of man.."\n--Joe Vs. The Volcano';

As you might have noticed, it is the \n part that creates a line break.


LICENSE

See the file "license.htm" for the license. I call it anti-(C) but sourceforge wants me to have a license anyways. I hope the script works well for you and you like it!


SUPPORT

If you need help with this, then e-mail me at phuckauthority@crimethinc.tk and I'll see what I can do to help! Be sure to attach your quote.js so I can look at it and see whats going on..


ABOUT

This was a script I learned JS to write. I wanted to be able to make a quote popup everytime someone hit my site (http://crimethinc.tk). It works now, and Im working on making a web application that will allow users to easily submit quotes and I wont have to do the formatting or anything.

The help pages were made with Mozilla Composer..I know HTML like the back of my hand but didnt feel like doing a whole new HTML project just for this..




Back