A small reminder to some, my version is heavily modified and I do not
use
the standard PHPTest scripts. I have added to or removed certain files
but I
may at some point integrate the timer into the generic script if
Brandon
doesn't do it first. I have plans to use this timer with the one
question/one page format but haven't gotten that far yet.
I do not currently use 'question at a time' pages, all my tests are on
one
page. I have not tried this timer for one question/one page type
setups.
With some modification I suppose you could get it to work but I don't
use it
that way. Something I may try at a future date.
At any rate here is roughly what I have done to incorporate the timer
into
PHPTest :
In the header.inc.php file in the 'include' folder I have changed the
following lines --
just below the 'style' tags are the following:
----
<script src="include/functions.js" type="text/javascript"
language="javascript"></script>
</head>
<body <?php if (isset($onload)) echo $onload; ?>>
----
I have renamed the header.inc.php file to testheader.inc.php and
changed the
line to read:
----
<script src="include/functions.js" type="text/javascript"
language="javascript"></script>
</head>
<body onLoad="settimes()">
----
I have also changed the test.php file to include the new header file:
----
require_once('./include/testheader.inc.php');
----
This line is about half way down, where the form begins to be written
just
after
the }else{ statement.
Hope that helps you Kathy.....
Cheers!
TW
----- Original Message -----
From: "Kathleen A. Ferraro" <address@hidden>
To: "general phptest discussion" <address@hidden>
Sent: Friday, January 17, 2003 2:44 PM
Subject: Re: [Phptest-users] Help with java and PHP timer for PHPTest
Thanks, TW-2. I have just been working on a timer for a phptest
project
myself. I was looking into using flash/actionscript but will now try
yours since you've already done the phptest integration.
I need to be able to set a timer for each question so that if the
alloted time is exceeded, the
I haven't traced all the modifications you specify yet but am
wondering
about customizations timing each question rather than the entire test.
I suppose I would modify question.php rather than test.php, but if
anyone has any guidance, I'd appreciate it.
Also, can you give me an example of adding the onload() function to my
header.inc.php file. It's been a very long time since I used
javascript.
Best,
Kathie
_______________________________________________
Phptest-users mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/phptest-users
_______________________________________________
Phptest-users mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/phptest-users