|
LinkExchange Member | Free Home Pages at GeoCities |
Theoretically
you might have sound bites, images,
movie clips
or text,
or any combination thereof
as either question or answer.
The default quiz format is this:
(which by the way looks completely ridiculous;
especially since the sample questions
do not make much sense).
To create a quiz with
e.g.
image questions + text answers
(or
text questions + text answers)
you will need to make some minor modifications
of the code -- delete the unwanted parts.
Follow the directions found in the html-code.
To create a quiz with movie clips as the question
and sound bites as the answer
-- or any other odd combination
-- you are on your own.
A good systems developer
will be able to modify the code
without too much difficulty.
The following directions
were made upon a trial installation
using Windows NT
and Netscape Navigator version something.
Tell me about any problems.
I suggest that you
first create a number of directories
to hold the quiz data.
One "mother" directory,
and three offsprings:
gmtlib is to hold my javascript library files.
Open each of the following files
and choose Save As..." in your browser.
You save these library files in the mentioned directory.
BUT WAIT!
I have named them ".html" so that you can view them
in your browser,
but you cannot use them as such
-- they must be renamed ".js" instead.
You can rename the files while downloading them.
IN WINDOWS:
choose "All files (*.*)"
instead of "HTML files"
as file type when you download.
Then add the suffix ".js" to the file name.
Also, a link to my logo
which you save in the same directory.
That was the first step, the library files.
Now to the quiz itself.
Below, a general link to my directory
with sample gif-files, used in the demonstration quiz.
They are not strictly necessary,
you can skip them,
your demo-quiz will not look very impressive
-- but it shouldn't crash.
Finally save the quiz itself into the myquizdemo directory.
BUT WAIT!
The files ...lib.html are also javascript library files,
they must be renamed "(something).js"!
(Windows: file type "All files (*.*)",
add ".js" to the file name)
And now...the last step.
Yes, you are almost there.
Clicking the link below will open
a running sample quiz.
Choose 'Save As...' from your browser,
save as e.g. 'myquiz.html',
open the file in a text editor,
and follow the instructions.
Actually, you needn't make three different libraries.
But it's usually best to keep things like
images, sounds, movies,
and any other kind of data,
in dedicated places.
And I feel that it is quite important that
you keep your quiz and your quiz data files,
which you can modify as you please,
away from the gmt-library files,
so that they are not confused with each other.
This will make it much easier for you
to upgrade,
for instance,
when I release a new version of the system.
Because you are downloading the files
the way you are
(with "Save as..")
some code is added to all text files by Geocities,
something that didn't come from me.
It must be deleted,
because it corrupts the files.
It's not a big deal,
but it means you must edit every
single text file.
The very last two lines of each text file
will look like this:
Finally you will need to make
some modifications of
myquiz.html,
of mydatalib.js.
and probably of myinterlibUK.js.
Just open myquiz.html,
and follow the instructions.
myquiz.html is the source of the quiz itself,
which defines the way it looks
and executes.
myinterlibUK.js
is a sample definition of the text which appear
on screen, etc.
mydatalib.js
is the data file,
which is a bit tricky.
The result of all this should be one brand new
running demo quiz in the myquizdemo directory,
named myquiz.html.
- and porting to another server.
You can use the newly created quiz on your
own personal computer.
You can also upload
an entire quiz to some other server,
e.g. your public homepage
on Geocities.
If your demo quiz is running when modified
as described above,
then you can simply upload
all three directories (gmtlib, myquizimg, quizdemo)
to the ISP.
The new quiz should run unmodified,
if you are using relative references to
images and library files
(e.g. "../myquizimg" instead of
absolute referencing: "C:\myquizimg").
In fact, if you want to create a new quiz,
you can simply copy the entire myquizdemo
directory to, say, C:\quizzes\serious1\
with all its content.
The new quiz will run unmodified,
and you can edit the local .js files
(data and interface)
to alter the quiz format.
Similarly,
you may upload the entire library serious1
with all its content
in the appropriate place on the ISP's machine,
and it will run unmodified.
It might be an idea to have one very simple
quiz on your site
for novice users,
with just a few questions so that they can
get the hang of the way the quizzes work.
I hope this suffices...
Mike L. Griebel,
mgriebel@hotmail.com
![]() |
|