Click to See Complete Forum and Search --> : "requiredfrom" script problem-URGENT


LampStone
09-10-2003, 10:14 AM
Hi - I initially used the following script to prevent nonpaying visitors from getting to a quiz. I was thinking it would only allow them to come from the PayPal site...however...since they were actually coming from the final page of their transaction...the "requiredfrom" script didn't work. I deleted the script and and now using a J-bot that works great - except for one thing. The old 'requiredfrom' script is still there somewhere???? and is overriding my good script. UGH. I know this is confusing...but I hope you can figure out how to help me. Here is the original script I used followed by my revised "paypal" script. Thanks for your help. - Pam :confused:

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var requiredfrom = "index.html"; // required prev. page
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("You must come to this page from " + requiredfrom);
window.location=requiredfrom;
}
// End -->
</script>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.62 KB -->



<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var requiredfrom = "https://www.paypal.com/"; // required prev. page
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("You must come to this page from " + requiredfrom);
window.location=requiredfrom;
}
// End -->
</script>

:confused:

96turnerri
09-10-2003, 01:20 PM
so what u trying to do PAM both of these scripts work fine from what i can see

LampStone
09-10-2003, 01:48 PM
Thank you. I know they work fine...but I don't want them on my page anymore. Here is the problem:
I am designing this page for someone else who wanted visitors to her site to not be able to bypass paying for a quiz via PayPal. SO - we tried using the scripts I shared with you. BUT - we didn't like they way they worked.
We found a script we liked better.
So we deleted the old one and put in the new one (which is a J-Bot component).
BUT - the old one is somehow "overriding" the new one.
It is as if the old script is still running somewhere - and maybe it attached itself to the "click here to continue" link on the PalPal end of transaction page.
Does that make sense?

Perhaps I need to contact PayPal.

Thanks for your time -
Regards,
Pam

96turnerri
09-10-2003, 03:33 PM
paypal may be able to help you but i dont think they will, you best bet in my opinion is to post the coding of this page onto this thread then me and others can look at it and hopefully tell you the problem

Rich

LampStone
09-10-2003, 04:31 PM
Here is the code in the pages that are acting strange. Even in my FrontPage program - when I close this page I get:

Runtime error has occurred. Do you wish to Debug?
Line:296 Error:Permission denied.

I am very confused by this.

Thanks for your help.

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Microbiology Quiz</title>
<meta name="description" content="Organizing and packaging the core material needed to pass State and National Chiropractic Boards the first time.">
<meta name="keywords" content="national, board, specialist, chiropractic, review, integration, tool, method, teach, enhance, education, cram, material, activity, lecture, technique, state, student, clinical, career, special, area, flash, card, note, NBCE, publish, percentage, guideline, study, condense, program, examination, SPEC, physiotherapy, case, management, supportive, care, Maryland, PT, geriatric, population, pain, packet, seminar, presentation, cycle, neuroanatomy, measurement, diagnosis, chronic, treatment, application, form, Spartanburg, SC, South, Carolina, online, Davenport, IA, Iowa, Kansas, City, MO, Missouri, Chesterfield, Bridgeport, CT, Connecticut, Florida, competency, guarantee, Dr, James, Laura, author, DC, DAAPM, NMD, certified, LCCW, BA, administrator, senior, forum, extremity, adjust, better, business, bureau, PayPal, NBS">
<meta name="vs_targetSchema" content="HTML 4.0">
<style>

.menuh {
CURSOR: hand; COLOR: white

}
.menu
{
}
DIV.menuClass

{
BACKGROUND:
#666699;

LEFT: 2px;
WIDTH:
150px;
POSITION:
absolute;
TOP:150px
}

</style>
<script src="menu.js"></script>
<style fprolloverstyle>A:hover {color: #FF0000}
</style>
<style type="text/css" name="J-BotStyle" ID="J-BotStyle">
<!--
.Popup {}
-->
</style>
<meta name="Microsoft Border" content="lb, default">
</head>

<body bgColor="#666699" leftmargin="0" topmargin="0" link="#000000" vlink="#9999FF" alink="#FFFF00">

<table bgcolor="#666699" cellspacing="0" cellpadding="0" width="100%" border="0" height="675" style="height: 675px">
<tr>
<td>
<table style="height: 672px" cellspacing="0" cellpadding="0" width="96%" bgcolor="white" border="0" align="left">
<tr>
<td style="height: 62px" bgcolor="white">
<img alt="National Board Specialists, Inc." src="http://www.nationalboardspecialists.com/images\NBSTitle4.jpg" width="432" height="72"></td>
</tr>
<tr>
<td vAlign="top">
<table cellSpacing="1" cellPadding="10" width="522" border="0" height="636">
<tr>
<td height="615" valign="top" width="500">
<p style="margin-top: 0; margin-bottom: 0" align="left"><b>
<font face="Times New Roman" size="4">
<img border="0" src="LightPacket.jpg" align="left" style="border: 5px inset #666699" width="144" height="96"></font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="center"><b>
<font color="#666699" size="2">Part I Review<i> &quot;Pass Packet&quot;
Online!</i></font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font color="#666699" face="Arial"><b>
<span style="background-color: #FFFF00">Microbiology Quiz</span></b></font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2">Full Version - $5/quiz</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font size="2"><font face="Arial">Each quiz is available for 10 days
prior to boards.</font></font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<hr noshade color="#666699" size="5">
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" color="#666699" size="2">This is the Full Version
110 Question Quiz. </font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" color="#666699" size="2">You will have a <b>
maximum of 90 minutes</b> to take this &quot;mock test.&quot;</font></p>
<p style="margin-top: 0px; margin-bottom: 0px" align="center">
<font face="Arial" size="2">(You can view your &quot;time left&quot; status in
the lower left hand corner of the status bar.)</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">After you take the quiz - an evaluation
page will load in a different window.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2" color="#666699">[It may take <b>several</b>
minutes, so please be patient while it is loading.]</font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">The evaluation will show the answers to
the questions you missed -</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">as well as &quot;Keys,&quot; &quot;Reference texts,&quot;
and &quot;Clinical Pearls&quot; (if available).</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2" color="#666699"><b>*Please Note:</b>
</font><font face="Arial" size="2"><b>All</b> available &quot;Keys,&quot;
&quot;Reference texts,&quot; and &quot;Clinical Pearls&quot; within the quiz will be
listed on your evaluation - even if the answer was correct! </font>
</i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2">This will provide additional support and
explanation as you study. </font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2">Not EVERY question has additional
comments - but those that do will be listed.</font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2" color="#666699">&nbsp;</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">Because our &quot;Pass Packet&quot; Online!
material is copyrighted - you will not be able to print the entire
quiz. But you will be able to print the Evaluation by using the
PRINT button at the bottom of the evaluation.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2">To take the quiz, click here&gt;&gt;&gt;
<a href="PassPacketOnline.htm">Microbiology</a></font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center"><!--webbot bot="FLOATWIN" WIP="yes" startspan Preview="[J-BOT Floating Window On Page Unload -- MicrobiologyQuiz]" s-wudll="popup.dll" i-bordersize="0" s-windowname="MicrobiologyQuiz" i-type="5" b-center="1" tag="p" i-rotate="0" s-class="floatwin" u-windowurl="microbiology.htm" clientside i-top="0" i-width="640" b-resizable="1" b-scroll="1" i-height="480" i-left="0" b-status="1" -->

<script language=javascript><!--
// Webs Unlimited's J-BOTS FrontPage 2002 JavaScript Generator version 4.0
// Copyright Webs Unlimited 1998, 1999, 2000, 2001 All rights reserved - http://WebsUnlimited.com
MicrobiologyQuiz_handle = new Object;
MicrobiologyQuiz_ID = 0;

function MicrobiologyQuiz(w,h,t,l) {
if(parseInt(navigator.appVersion) >= 4){
l = (screen.width - w) / 2;
t = (screen.height - h) / 2;
}
var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
MicrobiologyQuiz_handle = window.open("microbiology.htm","MicrobiologyQuiz",",,,status,,scrollbars,resizable," + loc);
if(parseInt(navigator.appVersion) >= 4){MicrobiologyQuiz_handle.window.focus();}
}
window.onunload = new Function("MicrobiologyQuiz(640,480,0,0);");
//--></script><!--webbot bot="FLOATWIN" endspan i-checksum="54129" --></p>
<p align="center"><b><font size="2">If you have any problems -
please contact our&nbsp;
<a href="mailto:LampStone@msn.com?subject=Online Quiz">NBS Website
Developer</a></font></b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>

96turnerri
09-10-2003, 04:34 PM
right ok i see so the quiz opens in a new window, is the user meant to have paid by now?

LampStone
09-10-2003, 04:42 PM
Yes - they come to this page from a paypal link. Then when they click on the Link that closes this window - the Quiz opens in a new window. Then they are returned to a different window to prevent viewing the URL of the quiz launch page.
Does that make sense?
Thanks for doing this.
Pam

96turnerri
09-10-2003, 04:46 PM
so when they click

To take the quiz, click here>>> Microbiology

you want this window to close and a new one to open up without the address status etc bars?

LampStone
09-10-2003, 05:29 PM
Yes - AND - the popup window with the quiz in it opens as the containing page unloads or closes...so I have them click on the link (name of the quiz) in order to close the containing window and open the popup. The link they click on is actually another page in the site so that they don't have time to write down the URL of the containing page and access it without paying.
Does that make sense?
I know it is confusing...but we think it works pretty slick. (Well - at least for the first two quizzes.) When it didn't work for the third one - I quickly removed the paypal button fromt the last four quizzes.)

Thanks again.

96turnerri
09-10-2003, 06:15 PM
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
function leave() {
window.open('http://www.yourserver.com/page-to-open.html','','toolbar=no,menubar=no,location=no,height=500,width=500');
}
</SCRIPT>

<BODY onUnload="leave()">

put the url od your quiz in window.open('xxxxx')

now make the link that you click a close link

<a href="javascript:window.close('this')">Microbiology</a>

hope this helps

LampStone
09-11-2003, 01:34 AM
Here is the page with your script...but I am getting an error:
"Unterminated string constant."

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>MicrobiologyQuiz</title>
<meta name="description" content="Organizing and packaging the core material needed to pass State and National Chiropractic Boards the first time.">
<meta name="keywords" content="national, board, specialist, chiropractic, review, integration, tool, method, teach, enhance, education, cram, material, activity, lecture, technique, state, student, clinical, career, special, area, flash, card, note, NBCE, publish, percentage, guideline, study, condense, program, examination, SPEC, physiotherapy, case, management, supportive, care, Maryland, PT, geriatric, population, pain, packet, seminar, presentation, cycle, neuroanatomy, measurement, diagnosis, chronic, treatment, application, form, Spartanburg, SC, South, Carolina, online, Davenport, IA, Iowa, Kansas, City, MO, Missouri, Chesterfield, Bridgeport, CT, Connecticut, Florida, competency, guarantee, Dr, James, Laura, author, DC, DAAPM, NMD, certified, LCCW, BA, administrator, senior, forum, extremity, adjust, better, business, bureau, PayPal, NBS">
<meta name="vs_targetSchema" content="HTML 4.0">
<style>

.menuh {
CURSOR: hand; COLOR: white

}
.menu
{
}
DIV.menuClass

{
BACKGROUND:
#666699;

LEFT: 2px;
WIDTH:
150px;
POSITION:
absolute;
TOP:150px
}

</style>
<script src="menu.js">
</script>
<style fprolloverstyle>A:hover {color: #FF0000}
</style>
<meta name="Microsoft Border" content="lb, default">
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
function leave() {
window.open('http://www.nationalboardspecialists.com/microbiology.htm','','toolbar=no,menubar=no,location=no,height
=500,width=500');
}
</SCRIPT>
</head>
<BODY onUnload="leave()">
<body bgColor="#666699" leftmargin="0" topmargin="0" link="#000000" vlink="#9999FF" alink="#FFFF00">

<table bgcolor="#666699" cellspacing="0" cellpadding="0" width="100%" border="0" height="675" style="height: 675px">
<tr>
<td>
<table style="height: 672px" cellspacing="0" cellpadding="0" width="96%" bgcolor="white" border="0" align="left">
<tr>
<td style="height: 62px" bgcolor="white">
<img alt="National Board Specialists, Inc." src="http://www.nationalboardspecialists.com/images\NBSTitle4.jpg" width="432" height="72"></td>
</tr>
<tr>
<td vAlign="top">
<table cellSpacing="1" cellPadding="10" width="522" border="0" height="636">
<tr>
<td height="615" valign="top" width="500">
<p style="margin-top: 0; margin-bottom: 0" align="left"><b>
<font face="Times New Roman" size="4">
<img border="0" src="LightPacket.jpg" align="left" style="border: 5px inset #666699" width="144" height="96"></font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="center"><b>
<font color="#666699" size="2">Part I Review<i> &quot;Pass Packet&quot;
Online!</i></font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font color="#666699" face="Arial"><b>
<span style="background-color: #FFFF00">Microbiology Quiz</span></b></font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2">Full Version - $5/quiz</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font size="2"><font face="Arial">Each quiz is available for 10 days
prior to boards.</font></font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<hr noshade color="#666699" size="5">
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" color="#666699" size="2">This is the Full Version
110 Question Quiz. </font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" color="#666699" size="2">You will have a <b>
maximum of 90 minutes</b> to take this &quot;mock test.&quot;</font></p>
<p style="margin-top: 0px; margin-bottom: 0px" align="center">
<font face="Arial" size="2">(You can view your &quot;time left&quot; status in
the lower left hand corner of the status bar.)</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">After you take the quiz - an evaluation
page will load in a different window.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2" color="#666699">[It may take <b>several</b>
minutes, so please be patient while it is loading.]</font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">The evaluation will show the answers to
the questions you missed -</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">as well as &quot;Keys,&quot; &quot;Reference texts,&quot;
and &quot;Clinical Pearls&quot; (if available).</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2" color="#666699"><b>*Please Note:</b>
</font><font face="Arial" size="2"><b>All</b> available &quot;Keys,&quot;
&quot;Reference texts,&quot; and &quot;Clinical Pearls&quot; within the quiz will be
listed on your evaluation - even if the answer was correct! </font>
</i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2">This will provide additional support and
explanation as you study. </font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2">Not EVERY question has additional
comments - but those that do will be listed.</font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2" color="#666699">&nbsp;</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">Because our &quot;Pass Packet&quot; Online!
material is copyrighted - you will not be able to print the entire
quiz. But you will be able to print the Evaluation by using the
PRINT button at the bottom of the evaluation.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2">To take the quiz, click here&gt;&gt;&gt;
<a href="javascript:window.close('this')>Microbiology</a></b></font></p> <p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p align="center"><b><font size="2">If you have any problems -
please contact our&nbsp;
<a href="mailto:LampStone@msn.com?subject=Online Quiz">NBS Website
Developer</a></font></b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>

96turnerri
09-11-2003, 04:47 AM
yeah could i have the rvs links as i no longer playing rs or gr

96turnerri
09-11-2003, 05:17 AM
here ive made a few tweaks check it out

Quiz (http://www.turnerskitchens.co.uk/micquiz.html)

the quiz opens when clicking the link it also works if accidently closes the browser, well the quiz doesnt actually open because the address is not setup

but try this

LampStone
09-11-2003, 09:37 AM
Looks like it will work. Do you think the student will still be getting the Script error message? It is causing problems with people's browsers. Here is the error:
A Script on this page is causing Internet Explorer to run slowly. If it continues to run your computer may become unresponsive. Do you want to abort this sript?

Looking forward to trying your script.
Thanks. Pam
PS I have already received a few complaints about the quiz shutting down due to the running script before the students could get their evaluation.:-(
Pam

LampStone
09-11-2003, 09:40 AM
Originally posted by 96turnerri
yeah could i have the rvs links as i no longer playing rs or gr

what is rvs and rs and gr ???

LampStone
09-11-2003, 10:49 AM
I looked at the source code...should I leave the J-bot script in the code? Did you tweak the J-bot source code? Can I just use YOUR code without the J-bot code?
Thanks.

LampStone
09-11-2003, 11:12 AM
The code below is a "clean" page - with NO J-bots. It gives no errors.

What I need to do )instead of just a link to the quiz) is open the quiz in a separate window with no URL and keep the Clock Countdown ability.
Then - when they close the quiz - return them to a specific page.

The students don't need the frustration of error messages and premature quiz shutdowns!

If you can suggest a way for me to do this - simple and clean - I would sure be most grateful.

Thanks for your time and effort.

Pam

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Microbiology Quiz</title>
<meta name="description" content="Organizing and packaging the core material needed to pass State and National Chiropractic Boards the first time.">
<meta name="keywords" content="national, board, specialist, chiropractic, review, integration, tool, method, teach, enhance, education, cram, material, activity, lecture, technique, state, student, clinical, career, special, area, flash, card, note, NBCE, publish, percentage, guideline, study, condense, program, examination, SPEC, physiotherapy, case, management, supportive, care, Maryland, PT, geriatric, population, pain, packet, seminar, presentation, cycle, neuroanatomy, measurement, diagnosis, chronic, treatment, application, form, Spartanburg, SC, South, Carolina, online, Davenport, IA, Iowa, Kansas, City, MO, Missouri, Chesterfield, Bridgeport, CT, Connecticut, Florida, competency, guarantee, Dr, James, Laura, author, DC, DAAPM, NMD, certified, LCCW, BA, administrator, senior, forum, extremity, adjust, better, business, bureau, PayPal, NBS">
<meta name="vs_targetSchema" content="HTML 4.0">
<style>

.menuh {
CURSOR: hand; COLOR: white

}
.menu
{
}
DIV.menuClass

{
BACKGROUND:
#666699;

LEFT: 2px;
WIDTH:
150px;
POSITION:
absolute;
TOP:150px
}

</style>
<script src="menu.js"></script>
<style fprolloverstyle>A:hover {color: #FF0000}
</style>
<meta name="Microsoft Border" content="lb, default">
</head>

<body bgColor="#666699" leftmargin="0" topmargin="0" link="#000000" vlink="#9999FF" alink="#FFFF00">

<table bgcolor="#666699" cellspacing="0" cellpadding="0" width="100%" border="0" height="675" style="height: 675px">
<tr>
<td>
<table style="height: 672px" cellspacing="0" cellpadding="0" width="96%" bgcolor="white" border="0" align="left">
<tr>
<td style="height: 62px" bgcolor="white">
<img alt="National Board Specialists, Inc." src="http://www.nationalboardspecialists.com/images\NBSTitle4.jpg" width="432" height="72"></td>
</tr>
<tr>
<td vAlign="top">
<table cellSpacing="1" cellPadding="10" width="522" border="0" height="636">
<tr>
<td height="615" valign="top" width="500">
<p style="margin-top: 0; margin-bottom: 0" align="left"><b>
<font face="Times New Roman" size="4">
<img border="0" src="LightPacket.jpg" align="left" style="border: 5px inset #666699" width="144" height="96"></font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="center"><b>
<font color="#666699">Part I Review<i> &quot;Pass Packet&quot; Online!</i></font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font color="#666699" face="Arial"><b>
<span style="background-color: #FFFF00">Microbiology Quiz</span></b></font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font size="2" face="Arial">Full Version - $5/quiz</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2">Each quiz is available for 10 days prior
to boards.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<hr noshade color="#666699" size="5">
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" color="#666699" size="2">This is the Full Version
110 Question Quiz. </font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" color="#666699" size="2">You will have a <b>
maximum of 90 minutes</b> to take this &quot;mock test.&quot;</font></p>
<p style="margin-top: 0px; margin-bottom: 0px" align="center">
<font face="Arial" size="2">(You can view your &quot;time left&quot; status in
the lower left hand corner of the status bar.)</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">After you take the quiz - an evaluation
page will load in a different window.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2" color="#666699">[It may take <b>several</b>
minutes, so please be patient while it is loading.]</font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">The evaluation will show the answers to
the questions you missed -</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">as well as &quot;Keys,&quot; &quot;Reference texts,&quot;
and &quot;Clinical Pearls&quot; (if available).</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2" color="#666699"><b>*Please Note:</b>
</font><font face="Arial" size="2"><b>All</b> available &quot;Keys,&quot;
&quot;Reference texts,&quot; and &quot;Clinical Pearls&quot; within the quiz will be
listed on your evaluation - even if the answer was correct! </font>
</i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2">This will provide additional support and
explanation as you study. </font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><i>
<font face="Arial" size="2">Not EVERY question has additional
comments - but those that do will be listed.</font></i></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2" color="#666699">&nbsp;</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" size="2">Because our &quot;Pass Packet&quot; Online!
material is copyrighted - you will not be able to print the entire
quiz. But you will be able to print the Evaluation by using the
PRINT button at the bottom of the evaluation.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<font face="Arial" size="2">To take the quiz, click here</font>&nbsp;
&gt;&gt;&gt;<b><font face="Arial" size="2"><a target="_parent" href="microbiology.htm">Microbiology
Quiz</a></font></b></p>
<p align="center">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>

96turnerri
09-11-2003, 11:15 AM
you should just be able to use my code, ill have a look at your 'clean' code when i get back from work, thanks for putting a clean code on hopefully make it much easier, if you dont like the other one

Rich

LampStone
09-13-2003, 12:11 PM
Hi - the Quiz program people are encouraging me to put my quizzes in the .asp format rather than the .js format - because the quiz takes so long to load and is causing errors when people try to access them.

I don't know enough about this to know how to do it. They told me just to choose the .asp format within their quiz builder program. But then - with these scripts work?

I am confused.

Rich - Thanks for your help. I am looking forward to see your script suggestion.
Pam