The ancient lands.


2 posters

    Random quote generator

    Anonymous
    Guest
    Guest


    Random quote generator Empty Random quote generator

    Post by Guest January 16th 2010, 5:45 pm

    Who wants one? I've got one at TM. TM is ZetaBoards, but I'm pretty sure it still reads java and HTML the same, so I'll just paste the code I used here:

    Code:
    <script type="text/javascript">
    var Random_M = ["quote #1","quote #2","etc."];
    document.write(Random_M[Math.floor(Math.random()*Random_M.length)]);
    </script>

    Basically, what it does is pull one of the quotes between the innermost square brackets at random and shows it on the webpage.

    Minor notes:

    It doesn't slow TM down noticeably even though it takes days to scroll from top to bottom with all the quotes I've put in it. Obviously, since it's java, it won't run if the end user doesn't have java, but who doesn't have java these days? The quotes must be surrounded by quotation marks ("text here") and separated with commas (,) in order for it to work. If not, it won't display quotes, but doesn't cause any loading issues with the rest of the page if syntax isn't followed, so no worries if you make a slight mistake like I've done a billion times. To make it look like the text quoted is surrounded by quotation marks, just put double apostrophes at the beginning and end of the quote. ("''text here''")

    In case you couldn't figure it out, it's FOSS, so use it for whatever purpose you want.

    Want it? Don't want it? Thoughts on it?
    sykog
    sykog

    Random quote generator Imagee10


    Random quote generator Blackr10Random quote generator Medalw11Random quote generator Medalg10Random quote generator Zigzag10Random quote generator Medal13

      : Male
     Rep29

    Age: : 30
     Posts: : 8839

    Random quote generator Empty Re: Random quote generator

    Post by sykog January 18th 2010, 1:19 pm

    No thanks.
    Zez
    Zez

    Random quote generator VOZLn


    Random quote generator Blackr10Random quote generator Medalw11Random quote generator Zigzag10Random quote generator Medal13

      : Male
     Rep24

     Posts: : 8707

    Random quote generator Empty Re: Random quote generator

    Post by Zez January 18th 2010, 6:03 pm

    Give an example of how it would apply to this forum, and how it would work.
    Anonymous
    Guest
    Guest


    Random quote generator Empty Re: Random quote generator

    Post by Guest January 18th 2010, 6:19 pm

    Put interesting quotes in it and it'll display a randomly picked one on every page load. You could put funny things from the chatbox and/or forum in it. Example:

    "...Which means she's a dirty communist spy from China. And my porno mags inform me that all dirty communist spies are female. Err...I mean...my political documents taken from a credible source in China. Yes. Yes those. Yes indeed."

    "I find the shooter guilty not only of murder, but of being a total noob."

    "I really would have liked to see what would have happened to them if they signed up. Damn them and their common sense."
    Zez
    Zez

    Random quote generator VOZLn


    Random quote generator Blackr10Random quote generator Medalw11Random quote generator Zigzag10Random quote generator Medal13

      : Male
     Rep24

     Posts: : 8707

    Random quote generator Empty Re: Random quote generator

    Post by Zez January 18th 2010, 6:19 pm

    No. Demonstrate.
    Anonymous
    Guest
    Guest


    Random quote generator Empty Re: Random quote generator

    Post by Guest January 18th 2010, 6:27 pm

    http://s10.zetaboards.com/The_Mlytorium/index/

    Look at the text after the words "The Quotinator sayeth:". It's a different one almost every time you refresh the page.
    Zez
    Zez

    Random quote generator VOZLn


    Random quote generator Blackr10Random quote generator Medalw11Random quote generator Zigzag10Random quote generator Medal13

      : Male
     Rep24

     Posts: : 8707

    Random quote generator Empty Re: Random quote generator

    Post by Zez January 18th 2010, 6:31 pm

    No. Demonstrate on here.
    Anonymous
    Guest
    Guest


    Random quote generator Empty Re: Random quote generator

    Post by Guest January 18th 2010, 6:36 pm

    Wha? How? It screws up HTML and completely ignores all other languages in the forum posts. You're the admin.
    sykog
    sykog

    Random quote generator Imagee10


    Random quote generator Blackr10Random quote generator Medalw11Random quote generator Medalg10Random quote generator Zigzag10Random quote generator Medal13

      : Male
     Rep29

    Age: : 30
     Posts: : 8839

    Random quote generator Empty Re: Random quote generator

    Post by sykog January 18th 2010, 11:07 pm

    Oh, I see. You know how we have the quote field in the profile? He means you can enter a a bunch of different ones and it will display one of them at a time. That would be fine.

    Sponsored content


    Random quote generator Empty Re: Random quote generator

    Post by Sponsored content