home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
-
- <HEAD>
-
- <TITLE>VBScript Sample</TITLE>
-
- <SCRIPT LANGUAGE="VBScript">
- <!--
- Sub RevealSolution()
- Dim varSoltion, varLoopCtr
- Dim varChar
- varSolution = "Vjg ocp ycu vqq ujqtv vq tgcej vjg " _
- & "dwvvqp hqt vjg hqwtvkgvj hnqqt -- dwv jg eqwnf tgcej vjg " _
- & "dwvvqp hqt vjg vygpvkgvj hnqqt!"
- lblAnswer.Caption = ""
- For varLoopCtr = 1 To Len(varSolution)
- varChar = Mid(varSolution, varLoopCtr, 1)
- If UCase(varChar) >= "A" And UCase(varChar) <= "Z" Then
- varChar = Chr(Asc(varChar) - 2)
- End If
- lblAnswer.Caption = lblAnswer.Caption + varChar
- Next
- lblAnswer.ForeColor = &H0
- End Sub
- -->
- </SCRIPT>
-
- </HEAD>
-
- <BODY>
-
- <FONT FACE="Arial" SIZE=4>
-
- <TABLE BORDER="0">
- <TR>
- <TD VALIGN="Top" WIDTH="100">
- <IMG SRC="QButton.gif" WIDTH=80 HEIGHT=100 BORDER=0
- ALT="Question Mark">
- </TD>
- <TD>
- <FONT SIZE=6><B><I>PUZZLE #1:</I></B></FONT>
- <BR>
- <B>A man lives on the top floor of a 40-story building.
- Every day, he rides the elevator down to the first floor
- and goes to work. However, when he comes home he takes the
- elevator up to the 20th floor, then climbs the stairs the
- rest of the way up to his home on the 40th floor. Why
- does he do that? </B>
- <BR><BR>
- <FONT SIZE=2>
- <B>Click on <FONT COLOR="#0000FF">Solution</FONT>
- to reveal one possible answer.</B>
- </FONT>
- </TD>
- </TR>
- <TR>
- <TD> </TD>
- <TD>
- <BR><BR>
- <IMG ID="imgSolution" SRC="ABanner.gif" WIDTH=350 HEIGHT=40
- ALT="Click here for solution" ONCLICK="RevealSolution">
- <BR><BR>
- <OBJECT ID="lblAnswer" WIDTH=467 HEIGHT=49
- CLASSID="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0">
- <PARAM NAME="BackColor" VALUE="16777215">
- <PARAM NAME="ForeColor" VALUE="16777215">
- <PARAM NAME="VariousPropertyBits" VALUE="8388627">
- <PARAM NAME="Caption" VALUE="">
- <PARAM NAME="Size" VALUE="12347;1291">
- <PARAM NAME="FontName" VALUE="Arial">
- <PARAM NAME="FontEffects" VALUE="1073741825">
- <PARAM NAME="FontHeight" VALUE="240">
- <PARAM NAME="FontCharSet" VALUE="0">
- <PARAM NAME="FontPitchAndFamily" VALUE="2">
- <PARAM NAME="FontWeight" VALUE="700">
- </OBJECT>
- </TD>
- </TR>
- </TABLE>
-
- </BODY>
- </HTML>
-