Qbasicnews.com

Full Version: online quize
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I want to make a 'game' using an image. There will be an image map and question(s) to the side. The question will have you click on part of the image to pick the answer. I have the image mapping in down but I’m confused on how to do the question part. i want the 'game' to be in one window. i want more than one question. I was thinking a box would have to be checked to indicate what question is being answered. I don’t know much JavaScript
Uhuh...

Check out my ancient site:

http://www.geocities.com/lehslatinclub/welcome.htm

I am most proud of it. (not the ads that geocities pummels you with though)

Try the "Omens" link and click "OK"..
:o Huh?!?!?!?!?!?
That has to be the most confusing thing ive seen. ever. What was it? What was the point of it? What was it supposed to do? Why? Ahhh Im confused!
Quote::o Huh?!?!?!?!?!?
That has to be the most confusing thing ive seen. ever. What was it? What was the point of it? What was it supposed to do? Why? Ahhh Im confused!

diroga, there's a couple ways to do this. the best is probably form processing through php, but javascript is probably better for you right now.

in your checkbox, radio button, etc., put an "onClick="functionName(1)"
change 1 to 2 or 3 or whatever

and make a function that redirects the user to the next page if they are right, or kills the user if the answer's wrong.

function would be something like this (untested, been a while also):

<SCRIPT LANGUAGE="JavaScript"><!--
function functionName(newURL) {
var newURL;
location.href = newURL + ".html";
}
//</SCRIPT>

uhh... that looks really wrong, but you get the idea. You could also make it check if newURL = 1 or 0, and only use those two to determine whether or not to redirect the user.

Any idiot can see the code through their browser, though, so this is very insecure (unless you make them type the answer and redirect to the filename of that answer, like a gateway). It has faults -- they can just check the source and test the results, telnet into your server and look through for the right answer, etc.

yea, use PHP. you can keep score that way too. go learn it on your own.
Dark_prevail, it's a website that is all about the Latin Club at my high school.
i'm thinking having one question at a time. after a question in answered a new question will be loaded. is it possable to clear off text then put down new text, like <div>?
uhh, you could use javascript to reload a different question in an iframe

go learn PHP goddammit, it can do this too. you can make the whole quiz in one page with PHP. or even ASP. or Java. Use a programming language
Quote:Dark_prevail, it's a website that is all about the Latin Club at my high school.

Yea, i guessed that, but I meant what on earth is that Personalised Omen Report? I did it and it just gave me a number? What are you supposed to do with that number? And theres load of other confusing stuff there. Im probably just missing something important.
This number is your place in the massive killing that will ocur in the judgement day. If your number is 100, for example, you'll be killed the 100th.
Oh... right!!! I understand now. Makes perfect sense!
Pages: 1 2