Results 1 to 3 of 3

Thread: quotes generator

  1. #1
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default quotes generator

    Okay i am building a web page for a group in school. One of the elements I want to add is a quote. I have a huge list of quotes and need a way to display one without a huge list in the source code. I an not great with java but i was wanting to know if i could have a *.class or *.js file that had the quotes and a java script pick a random one and display in the html ? Please help
    Last edited by FyshY25; 10-22-2008 at 01:08 AM.

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Easy. Put the quotes in a string in a seperate .js file. (you know, an array) After this, use excerpts of this code to choose the quote randomly. Here is the thread: Display Random...

    -magicyte

  3. #3
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    im a newbi... how can i put the array ? and how would i linke the *.js in the code?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •