Results 1 to 3 of 3

Thread: How to: javascript needed

  1. #1
    Join Date
    Jan 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to: javascript needed

    How to: javascript needed
    in brief:
    script displays a random text from a list,
    end of random text displayed the button answer,
    Click on the button shown in response to the random text below the corresponding text (answer)

  2. #2
    Join Date
    May 2014
    Posts
    10
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    I don't know if you have seen it, but two months ago an idea about javascript random Q&A was discussed elsewhere:
    stackoverflow.com/questions/22993204/show-random-questions-and-answers-from-xml-file

  3. #3
    Join Date
    Jan 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    was something in the mind like:
    <html>
    <body bgcolor="black" text="#CCCCCC" link="blue" vlink="purple" alink="red">
    </body><table border="1" width="284" align="center">
    <tr>
    <td width="274" height="68">

    <p>

    <script language="JavaScript">
    <!--
    function random_text()
    {};
    var random_text = new random_text();
    // Set the number of text strings to zero to start
    var number = 0;
    // Incremental list of all possible Text
    random_text[number++] = "<font color='#CCCCCC'> Random Txt #1</font>"
    random_text[number++] = "<font color='#CCCCCC'> Random Txt #2</font>"
    random_text[number++] = "<font color='#CCCCCC'> Random Txt #3</font>"

    var random_number = Math.floor(Math.random() * number);
    document.write(random_text[random_number]);
    -->


    </script>
    </p>
    </td>
    </tr>
    </table>
    </html>

    plus:
    http://www.dynamicdrive.com/dynamici...edcollapse.htm

    ...a combination of the two scripts

Similar Threads

  1. JavaScript validation needed
    By neroman in forum JavaScript
    Replies: 5
    Last Post: 03-27-2012, 10:13 PM
  2. A Javascript needed
    By andysam in forum Looking for such a script or service
    Replies: 4
    Last Post: 05-19-2010, 05:10 PM
  3. a little help needed in javascript pagination
    By alanwsl in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-23-2007, 02:03 AM
  4. Javascript help needed!!
    By benski in forum JavaScript
    Replies: 2
    Last Post: 02-14-2007, 08:07 PM
  5. Help with Javascript needed
    By Burunduk in forum JavaScript
    Replies: 5
    Last Post: 07-21-2005, 11:33 AM

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
  •