*********
Quiz Show
*********
by John Morris

- To install using the provided
web page

1. Place all the files with
the extension ".class" (i.e.
"QuizShow.class") into the same
folder as the file "quizshow.htm".

2. Place the file "questions.dat"
into the same folder as the file
"quizshow.htm".

3. Place all the files with the
extension ".au" (i.e. "player1.au")
in a folder names "sounds" and place
the folder "sounds" in the same
folder as the file "quizshow.htm".

4. Place all the files with the
extension ".gif" (i.e. "lights.gif")
in a folder names "images" and place
the folder "images" in the same
folder as the file "quizshow.htm".

5. Finally, open "quizshow.htm with your
web browser.

- To install on your web page

1. Place the following html into
the html of the page on which you
want Concentration to appear:




2. Place all the files with
the extension ".class" (i.e.
"QuizShow.class") into the same
folder as the file "quizshow.htm".

3. Place the file "questions.dat"
into the same folder as the file
"quizshow.htm".

4. Place all the files with the
extension ".au" (i.e. "player1.au")
in a folder names "sounds" and place
the folder "sounds" in the same
folder as the file "quizshow.htm".

5. Place all the files with the
extension ".gif" (i.e. "lights.gif")
in a folder names "images" and place
the folder "images" in the same
folder as the file "quizshow.htm".

6. Finally, open "quizshow.htm with your
web browser.

- To customize Quiz Show:

To add your own questions to the
game simply add your question to
the "questions.dat" file in this
form:

Question #
line 1
line 2
line 3
line 4
Choices
choice 1
.
.
.
choice 8
Answers
answer1,answer2...answer8

Replace the '#' with the index of
the question (i.e. Question 1,
Question 2, etc).

Replace line 1 through line 4 with
the question.  The game will display up
to 4 lines for the question but you
don't need to add all 4 lines if the
question is not 4 lines long.

Replace choice 1 through choice 8 with
the 8 possible answers to the question.
The choices can only be 1 line long each.
Again, you don't need to provide
8 choices but there is room for up to 8.

Finally, replace answer1 through answer 8
with the letter index of answers as they appear
in choice list (i.e. 'a'=choice 1,'b'=choice 2,
etc.).  Once again, you don't need to specify
8 answers but there is room for up to 8.

Customize the applet by adding param tags
between the  and  tags in
the folling form:


The following is a list of attributes
with their possible values:

name			value
----			-----
questions		Any integer > 0
			This is the total number of questions
			that the game will ask.
random			"on" or "off"
			If random is on, the questions will
			be chosen at random for the question
			list in the question data file
file			The name of the data file with the
			question data in it... the default
			is "questions.dat" but if you'd
			like to name your question file
			something else you can specify
			it with this tag.
url			The ABSOLUTE URL of the cgi
			script (ie.
			"http://www.your_domain.com/path_to_the_script")
			that will keep track of the
			names and high scores.  You don't
			need to specify this unless you
			are using a script to keep track
			of high scores.  

*The easiest way to configure your
menu is to look at the tags in
the "quizshow.htm" file included.

This applet is free if you add a
link to:
www.javaplayground.com
on the page which uses it.

Visit Java Playground again for
more applets.

John Morris

    Source: geocities.com/stefanoritella/APPLET

               ( geocities.com/stefanoritella)