home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / CHIPCD_9_99.iso / software / uaktualnienia / OptionPackPL / iis4_07.cab / HIWFreqDefault.asp < prev    next >
Text File  |  1998-04-27  |  6KB  |  155 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <!--META TAGS ARE RECOMMENDED FOR THE SEARCH ENGINE-->
  5. <META NAME="DESCRIPTION" CONTENT="How It Works Page">
  6. <META NAME="KEYWORDS" CONTENT="help, code, source code, questions, explanation">
  7. <META NAME="GENERATOR" CONTENT="Microsoft Visual InterDev 1.0">
  8. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
  9. <!--END META TAGS-->
  10.  
  11. <TITLE>How This Page Works</TITLE>
  12. </HEAD>
  13. <BODY  BGCOLOR=#FFFFFF TOPMARGIN=0 LEFTMARGIN=0 ALINK=#23238E VLINK=#808080 LINK=#FFCC00>
  14. <BASEFONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=2>
  15.  
  16. <!--Change link color on mouseover
  17.     Only if running Internet Explorer 4.0 or later -->
  18. <!--#include file=../libHighlight.inc-->
  19.  
  20. <!--BEGIN TOP TABLE HOLDING GRAPHIC, NAVIGATIONAL LINK, AND MAIN CONTENT-->
  21. <TABLE WIDTH="100%" HEIGHT="100%" CELLPADDING=0 CELLSPACING=0  BGCOLOR="#000000" BORDER=0>
  22.     <TR>
  23.         <TD BGCOLOR="#000000" ALIGN=CENTER VALIGN=TOP WIDTH=170>
  24.             <BR>
  25.             <IMG SRC="../images/btslarge.jpg" HEIGHT=119 WIDTH=171  ALT="Behind the Scenes at Exploration Air" BORDER=0 ></A>
  26.             <BR>
  27.             <BR>
  28.             <BR>
  29.             <!--BACK BUTTON AND VARIABLE TO RETURN TO ORIGINATING PAGE-->
  30.             <A HREF="<%=Request.ServerVariables("HTTP_REFERER")%>"><IMG SRC="../images/barrowy.gif" HEIGHT=8 WIDTH=8 ALT="Return to Previous Page"  HSPACE=2 BORDER=0></A>
  31.             <FONT SIZE=2 FACE="VERDANA, ARIAL, HELVETICA"><STRONG>
  32.             <A HREF="<%=Request.ServerVariables("HTTP_REFERER")%>">
  33.             B  A  C  K
  34.             </A></STRONG></FONT>
  35.             <BR> 
  36.             <BR>
  37.             <!--JAVASCRIPT TO VIEW PAGE'S SOURCE CODE-->
  38.             <FONT SIZE=2 FACE="VERDANA, ARIAL, HELVETICA"><A HREF="JavaScript:openWindow('../freqflyer/default.asp')">V I E W   S O U R C E</A>
  39.             <BR></FONT>
  40.         </TD>
  41.  
  42.         <TD BGCOLOR="#FFFFFF" BACKGROUND="../images/btsbg.gif" VALIGN=top>
  43.             <BR CLEAR=ALL>
  44.             <TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>   
  45.                 <TR>
  46.                     <TD VALIGN=top>
  47.                         <FONT FACE="VERDANA, ARIAL, HELVETICA" COLOR="#0000FF" SIZE=5>How The Frequent Flyer Homepage Works</FONT>
  48.                         <P>
  49.                         <HR>
  50.                         <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="3">
  51.                         <H2>Functional Overview</H2>
  52.                         Other than the Java applet, this is a very simple page. The Java applet <STRONG>CoolScroll</STRONG> takes a series
  53.                         of URLs to images and scrolls them on the screen. Each image has an associated URL which links to advertising 
  54.                         information.
  55.                         <P>
  56.                         The following parameters are used for the applet:
  57.                         <P>
  58.  
  59.                         <CENTER>
  60.                         <!--JAVA APPLET EXPLANATION-->
  61.                         <TABLE ALIGN=CENTER WIDTH=90% CELLPADDING=4 BORDER=1>
  62.                             <TR>
  63.                                 <TH BGCOLOR="#C0C0C0">Parameter</TH>
  64.                                 <TH BGCOLOR="#C0C0C0">Comment</TH>
  65.                             </TR>
  66.                             <TR>
  67.                                 <TD><EM>ClickHereMsg</EM></TD>
  68.                                 <TD>The text that appears in the bottom right of the image when it comes to rest.</TD>
  69.                             </TR>
  70.                             <TR>
  71.                                 <TD><EM>URLPrefix</EM></TD>
  72.                                 <TD>
  73.                                     The base URL used for Image<EM><STRONG>N</STRONG></EM> and URL<EM><STRONG>N</STRONG></EM>. This saves
  74.                                     having to list the base on each image and URL. It is similar in concept to the HTML CODEBASE
  75.                                     directive.
  76.                                 </TD>
  77.                             </TR>
  78.                             <TR>
  79.                                 <TD><EM>ScrollRate</EM></TD>
  80.                                 <TD>The rate, in msec, at which the image scrolls. If this number is zero the image appears almost instantly.</TD>
  81.                             </TR>
  82.                             <TR>
  83.                                 <TD><EM>Delay</EM></TD>
  84.                                 <TD>The delay between images in seconds.</TD>
  85.                             </TR>
  86.                             <TR>
  87.                                 <TD><EM>Image<STRONG>N</STRONG></EM></TD>
  88.                                 <TD>The URL to image <EM><STRONG>N</STRONG></EM></TD>
  89.                             </TR>
  90.                             <TR>
  91.                                 <TD><EM>URL<STRONG>N</STRONG></EM></TD>
  92.                                 <TD>The URL for the full text of image <EM><STRONG>N</STRONG></EM>.</TD>
  93.                             </TR>
  94.                             <TR>
  95.                                 <TD><EM>NumItems</EM></TD>
  96.                                 <TD>Number of images to scroll.</TD>
  97.                             </TR>
  98.                         </TABLE>
  99.                         </CENTER>
  100.                         <!--END JAVA APPLET EXPLANATION-->
  101.  
  102.                         <P>
  103.                         A subroutine called <TT>ListAdParameters</TT> builds the parameters for the CoolScroll applet by calling 
  104.                         <STRONG>ExAir.Advertisement</STRONG> which in turn queries the database to determine which ads will appeal 
  105.                         to the current member. The result is a list of parameters that tell the  applet to display ads based on 
  106.                         the member's areas of interest.
  107.                         <P>
  108.                         <H2>Data Model</H2>
  109.                         The data to populate the applet is derived from joining the <STRONG>Ads</STRONG>, <STRONG>AdsInterests</STRONG> 
  110.                         and <STRONG>MemberInterests</STRONG> tables.
  111.                         <P>
  112.                         <H2>Components Used</H2>
  113.                         The <STRONG>ExAir.Advertisement</STRONG> component is used to gather the relevant advertisement details. 
  114.                         <P>
  115.                         </FONT>
  116.                     </TD>
  117.                 </TR>
  118.             </TABLE>
  119.             <!--END TOP TABLE HOLDING GRAPHIC, NAVIGATIONAL LINK, AND MAIN CONTENT-->
  120.  
  121.             <BR>
  122.             <BR>
  123.  
  124.             <CENTER>
  125.             <!--BEGIN LEGAL INFORMATION-->
  126.             <TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
  127.                 <TR>
  128.                     <TD>
  129.                         <FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="1"><A HREF="../legal.htm">©1997 Microsoft Corporation. All rights reserved. Terms of Use.</A></FONT>
  130.                         <P>
  131.                     </TD>
  132.                 </TR>
  133.             </TABLE>
  134.             </CENTER>
  135.             <!--END LEGAL INFORMATION-->
  136.         </TD>
  137.     </TR>
  138. </TABLE>
  139.  
  140. </BODY>
  141. </HTML>
  142. <!--END HTML-->
  143.  
  144. <SCRIPT LANGUAGE="JavaScript">
  145. function openWindow(SourceURL)
  146. {
  147.     // Set some defaults
  148.     width=450;
  149.     height=450;
  150.  
  151.     url = "code.asp?Source=" + SourceURL;
  152.     window.open(url,"Sample","resizable=yes,scrollbars=yes,width=" + width + ",height=" + height);
  153. }
  154. </SCRIPT>
  155.