How to rotate quotes?

Not inherently, but you could always whip up some slick Javascript to pull a random line of text out of a file and display it...

Random CS textbook said:
Implementation is left as an exercise to the student
 
Ok, I've got a solution for you.

  1. Open up Notepad (or TextEdit, or your editor of choice) and create a file with the following:

    HTML:
    var myQuotes = new Array;
    myQuotes[0]="Quote One";
    myQuotes[1]="Quote Two";
    myQuotes[2]="Quote Three";
    rdmQuote = Math.floor(Math.random()*(myQuotes.length));
    document.write(myQuotes[rdmQuote]);
  2. Next, upload the file to your account (User CP -> Upload Files). You can put the file in any folder you want. After the file is uploaded, copy the URL of the file (Right-click on the file name and choose 'Copy Link Location' or 'Copy Shortcut'). You will need this for the next step.

  3. Then, in your signature, put this:
    HTML:
    [QUOTE]<script language="JavaScript" src="http://www.msprotege.com/members/--YOURNAME--/--YOURFILE--.js"></script>[/QUOTE]
    Just replace the URL with the URL you copied from the last step.
This will write out random quotes in your sig. You can see an example in MY sig.

Please note that in order to use double quotation marks in your quotes, you need to add a backslash (\) in front of them, for example:
HTML:
myQuotes[3]="So he says, \"Whatchu talkin 'bout, Willis?\"";

I am working on version 1.1 which will include citations for your quotes (see my post below for more info)
 
Last edited:
as soon as i get a damn second of spare time im gonna try this. t hanks in advance.
 
No problem. Also, I should point out that you can have as many quotes as you want in there, just keep adding lines. Don't forget to increment the index numbers: myQuotes[4], myQuotes[5], etc.

I'm working on an updated version that will cite the quotations, so instead of:
I love you.
You will get:
laracroft said:
I love you.

Will post when done.
 
I have updated my original post with some clarifications and fixed some typos.

Matthew, would you mind terribly if I started a new thread with instructions on how to do this? If not, I'll post a link in this thread to the new one.
 

New Threads and Articles

Back