2 <%@LANGUAGE="VBScript"%>
\r
4 <SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
\r
5 function JSGreeting()
\r
7 return "Greetings from a JavaScript Function";
\r
11 <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
\r
12 Function VBGreeting()
\r
13 VBGreeting="Greetings from a VBScript Function"
\r
16 Function toDollars(x)
\r
17 toDollars=FormatCurrency(x)
\r
25 c += " (Two numbers are added by JavaScript, "
\r
26 c += "and then formatted into currency by VBScript.)"
\r
31 result = toDollars(result);
\r
35 Response.Write("<HTML>\r")
\r
36 Response.Write(JSGreeting() + "<BR>\r")
\r
37 Response.Write(VBGreeting() + "<BR>\r")
\r
38 Response.Write(c + " <BR>\r")
\r
39 Response.Write("</HTML>\r")
\r