Random Text
Demo:
*Refresh for a new quote
Here's how to make random quotes appear on your site using javascript. First, download Quote.zip and open Quote.JS up in notepad.
Here's what it should look like:
wherever it says "Text Here", replace with your own text. If you have any uses for a quote with an apostrophe (') then you are to write it like this:
I\'m hungry.
Just be careful about that.
After replacing the text you can upload it and display it with this code:
Adding more:
You can tell there's a pattern in the script. To add more you just use
Replace # with the next number in your series.
|