The Code to add a Quiz to a MemberGate page

Example of adding a quiz to a MemberGate web page

To add a quiz to your site, the question is preceded by the Q Single tag and the Answer is added after the Info tag as shown below.


<cfset script_data = "


<Q single>

Which legendary creature do the Sherpa's of the Himalayas believe lives beyond the snowline?

*Yeti
Yentil
Bigfoot
Harry

<INFO>

The first reliable report of the Yeti appeared in 1925 when a Greek photographer, N. A. Tombazi, working as a member of a British geological expedition in the Himalayas, was shown a creature moving in the distance across some lower slopes. The creature was almost a thousand feet away in a narea with an altitude of around 15,000 feet. 

<Q Single>

What is the average life of a nuclear power plant?

10 years
20 years
30 years
*40 years
50 years

<INFO>

The maximal lifespan of a NPP is determined by the length of the operating license issued by the Nuclear Regulatory Commission.

<Q Single>

Which US state has the greatest number of hazardous waste sites?

Michigan
*New Jersey
Ohio
NewYork
South Carolina
California
Pennsylvania
Florida
Mississippi
Nevada
Idaho

<INFO>

The top five are New Jersey, with 109 hazardous waste sites, Pennsylvania, with 95,  New York, 83, California, 88, and Michigan, 77. (p. 179)

<Q Single>

Which plant or herb has the symbolic meanings of loyalty, devotion?

Aloe
Basil
Holly
Goldenrod
Oak
Pine
Rose
*Violet
Willow

<Q Single>

What is the greatest number of leaves a clover can have?

4
6
8
10
12
*14

<INFO>

A fourteen-leafed white clover (Trifolium repens) and a fourteen-leafed red clover (Trifolium pratense) have been found in the United States. (p. 216)

<Q Single>

What is the average distance is the moon from the Earth?

63,432 miles
134,686 miles
*238,857 miles
643,193 miles
1,238,215 miles
1,645,362 miles

<Q Single>

What is the rate at which the Earth's rotation (average length of a day) is slowing down?

0.02 seconds each year
0.53 seconds each year
0.96 seconds each year
1.23 seconds each year
*1.70 seconds each year

<INFO>

In the geologic past the Earth's rotation period was much faster; days were shorter and there were more days in the year. About 350 million years ago, the year had 400-410 days; 280 million years ago, a year was 390 days long. (p.35)"

>

<cf_quiz

image_URL ="images/"

quiz_name = "General Earth Knowledge Quiz"

form_action = "#CGI.SCRIPT_NAME#"

font_family="Arial, Helvetica, sans-serif"

width="400"

header_fill_color="##008080"

header_font_color="white"

header_font_size="4"

question_font_color="black"

question_font_correct="blue"

question_font_wrong="red"

question_font_size="3"

question_fill_color="##9CBCB0"

answer_font_color="black"

answer_font_size="2"

answer_fill_color="##F8F8E0"

quiz_data = "#script_data#"

>