Re: trivia game

by "Jason Boudreault" <theunforgiven(at)home.com>

 Date:  Tue, 13 Jun 2000 11:52:05 -0600
 To:  "Karen Stafford" <webmaster(at)noteworthydesigns.com>
 Cc:  <hwg-techniques(at)hwg.org>
 References:  noteworthydesigns
  todo: View Thread, Original
It would be very simple..

Make a form with a pulldown menu
with all the countries, and have something
like....


correctcountry='canada';

document.write("<img src='./images/"+ correctcountry +".gif'>");

Then...

if (ThePullDownMenu == correctcountry) {
 alert("Correct!!");
}
else {
 alert("Incorrect!");
}

Hope this helps, let me know.

----- Original Message ----- 
From: Karen Stafford <webmaster(at)noteworthydesigns.com>
To: HWG Techniques <hwg-techniques(at)hwg.org>
Sent: Tuesday, June 13, 2000 10:58 AM
Subject: trivia game


> I have a customer who is involved in global training, and would like a
> little "quiz" on her homepage in which a flag is displayed, and visitors
> can type in the country that they think the flag represents. We want a
> little javascript or whatever popup to tell them whether they are right
> or wrong when they submit it. I thought about modifying a password
> script, but we'd like for folks to bypass the quiz if they want. It
> would probably need a place to submit e-mail or something, too, for a
> prize. Any ideas?
> 
> --
> Karen Stafford
> Noteworthy Web Designs
> http://www.noteworthydesigns.com
> 
> 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA