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)
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)
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
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
Bookmarks