it doesn't work because it is a quiz and when they click, they have a popup saying that the answer is correct or not. so with the iframe, I cannot have popup
thanks
hello, yes it helped me understand more of javascript. My problem is still there. I want only one quiz_basic.htm for all 50 sites, that would be at hazardhouse.com/quiz_basic.htm. The questions will change and I do not want to change every quiz one by one because they are the same. The...
I'm sorry, I'm not used to the javascript..
Where should I put the string in my code:
if (ans[question].indexOf(answer) == -1){
// incorrect answer
}
Thanks
the switch code doesn't work!!! I probably didn't inserted correctly.. could you help me please...
look at the code posted on nov 22 in this thread..
thanks
ok now I found the problem for my quiz. It does work now. the problem is when I click on the button to get the certificate, I have an error page.
When I click the certificate button, it goes here:
www.hazardhouse.com/quiz/quizinfo.htm
Why does it says in the same folder??
the problem is that I can't write: self.location="/test/quizinfo.htm" because the folder name test changes depending on who is going on the site. I would need to put something here: self.location="/???/quizinfo.htm" to go back to the folder the person was into before going to the quiz... I'm...
abfco
-quizintro.htm *this is where we choose to go to the quiz
-quizinfo.htm *this is where the person enters their
information to go to the certificate
certificates
-abfco
-juniorcertificate.gif
-mailsubject.txt
-juniorcounter.txt
quiz...
thanks, but I tried all this before and it's still not working.
On the server I have different folders
web1
web2
web3
web4
web5
In each of those folders I have a page called quizintro.htm and when on click on this it goes to quiz/quiz_basic.htm
This is fine up to here...
Then when I click on...
Hello,
I have the same quiz under different folders on the server. I would like to put the quiz only in one folder(name=quiz) so this would be easier for updates.
it goes something like this:
1 - www.mysite.com/web
(I click on the quiz page and it goes to #2)
2 -...
I cannot use ../web/quizinfo.htm because I want the quiz to be in one folder for each site so the name "web" changes all the time???
I could have www.mysite.com/web
www.mysite.com/web2 and so on...
Is there a solution?
this is my code and it doesn't work:
function NextLevel () {
if (score > 10) {
alert("You cheated.");
}
if (score >= 10 && score <= 10) {
self.location="../quizinfo.htm"
}
Hello,
I have the same quiz under different folders. I would like to put the quiz only in one folder so this would be easier for updates.
it goes something like this:
1 - www.mysite.com/web
(I click on the quiz page and it goes here)
2 - www.mysite.com/web/quizintro.htm
(then I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.