Linking Hints & Explanations

to URLs


[Home][Index][Previous][Next]
You may already have written a marvelous hint for a particular question - it is on another page of your web site - or perhaps you have found a URL that would be a great explanation for a particular question somewhere on the Web. The AppletQuiz applet makes it easy to link a hint or explanation button to any URL. All you have to do is include URL="whatever" on the \HINT or \WHY line. When the button is pressed, the browser will open this URL in a separate window from the quiz. Either absolute or relative addressing may be used. For example:

Example

Result

\HINT URL=MyOtherPage.html

The html document titled "MyOtherPage.html", which is in the same directory as the current page, will open in its own browser window when the Hint button is pressed.

\WHY URL=Examples/Ex1.html

When the Why? button is pressed, the html document titled "Ex1.html", which resides in the subdirectory "Examples" will open in its own browser window.

\HINT URL=../Docs.html

The html document called "Docs.html", located in the parent directory of the current web page, will open in its own browser window when the Hint button is pressed.

\WHY URL=http://www.venus.net/~jstanbro/index.html

The html document titled "index.html" located at "www.venus.net/~jstanbro" will open in its own browser window when the Why? button is pressed.


NOTE:

A \HINT or \WHY may open a URL, or contain text and graphics for its own window - BUT NOT BOTH!


For example, the following question file:

\TITLE
Linking to URLs Demo
\MC A C
Which of the following is {$STYLE=BOLD not} a feature of the AppletQuiz applet?
A. True/false, multiple-choice, and short-answer question types are available.
B. Text {$STYLE=ITALIC styles}, {$COLOR=RED colors}, and {$SIZE=18 sizes} are easily adjusted.
C. Lions, tigers, and bears, oh my.
D. Hints and explanations may be provided.
E. Random numerical substitutions may be specified.
\HINT URL=AppletQuiz_Features.html
\TF A T
Does Texas Instruments sell a model TI-89 calculator?
\HINT URL=http://www.ti.com


The question file above runs like this:

You need a Java-enabled browser to take this quiz.

[Home][Index][Previous][Next]
copyright © 1998 by Jerry L. Stanbrough - all rights reserved.
last update May 13, 1999 by JL Stanbrough (jstanbro@venus.net)