home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 September
/
CHIPCD_9_99.iso
/
software
/
uaktualnienia
/
OptionPackPL
/
iis4_07.cab
/
HIWFreqDefault.asp
< prev
next >
Wrap
Text File
|
1998-04-27
|
6KB
|
155 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<!--META TAGS ARE RECOMMENDED FOR THE SEARCH ENGINE-->
<META NAME="DESCRIPTION" CONTENT="How It Works Page">
<META NAME="KEYWORDS" CONTENT="help, code, source code, questions, explanation">
<META NAME="GENERATOR" CONTENT="Microsoft Visual InterDev 1.0">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<!--END META TAGS-->
<TITLE>How This Page Works</TITLE>
</HEAD>
<BODY BGCOLOR=#FFFFFF TOPMARGIN=0 LEFTMARGIN=0 ALINK=#23238E VLINK=#808080 LINK=#FFCC00>
<BASEFONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=2>
<!--Change link color on mouseover
Only if running Internet Explorer 4.0 or later -->
<!--#include file=../libHighlight.inc-->
<!--BEGIN TOP TABLE HOLDING GRAPHIC, NAVIGATIONAL LINK, AND MAIN CONTENT-->
<TABLE WIDTH="100%" HEIGHT="100%" CELLPADDING=0 CELLSPACING=0 BGCOLOR="#000000" BORDER=0>
<TR>
<TD BGCOLOR="#000000" ALIGN=CENTER VALIGN=TOP WIDTH=170>
<BR>
<IMG SRC="../images/btslarge.jpg" HEIGHT=119 WIDTH=171 ALT="Behind the Scenes at Exploration Air" BORDER=0 ></A>
<BR>
<BR>
<BR>
<!--BACK BUTTON AND VARIABLE TO RETURN TO ORIGINATING PAGE-->
<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>
<FONT SIZE=2 FACE="VERDANA, ARIAL, HELVETICA"><STRONG>
<A HREF="<%=Request.ServerVariables("HTTP_REFERER")%>">
B A C K
</A></STRONG></FONT>
<BR>
<BR>
<!--JAVASCRIPT TO VIEW PAGE'S SOURCE CODE-->
<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>
<BR></FONT>
</TD>
<TD BGCOLOR="#FFFFFF" BACKGROUND="../images/btsbg.gif" VALIGN=top>
<BR CLEAR=ALL>
<TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>
<TR>
<TD VALIGN=top>
<FONT FACE="VERDANA, ARIAL, HELVETICA" COLOR="#0000FF" SIZE=5>How The Frequent Flyer Homepage Works</FONT>
<P>
<HR>
<FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="3">
<H2>Functional Overview</H2>
Other than the Java applet, this is a very simple page. The Java applet <STRONG>CoolScroll</STRONG> takes a series
of URLs to images and scrolls them on the screen. Each image has an associated URL which links to advertising
information.
<P>
The following parameters are used for the applet:
<P>
<CENTER>
<!--JAVA APPLET EXPLANATION-->
<TABLE ALIGN=CENTER WIDTH=90% CELLPADDING=4 BORDER=1>
<TR>
<TH BGCOLOR="#C0C0C0">Parameter</TH>
<TH BGCOLOR="#C0C0C0">Comment</TH>
</TR>
<TR>
<TD><EM>ClickHereMsg</EM></TD>
<TD>The text that appears in the bottom right of the image when it comes to rest.</TD>
</TR>
<TR>
<TD><EM>URLPrefix</EM></TD>
<TD>
The base URL used for Image<EM><STRONG>N</STRONG></EM> and URL<EM><STRONG>N</STRONG></EM>. This saves
having to list the base on each image and URL. It is similar in concept to the HTML CODEBASE
directive.
</TD>
</TR>
<TR>
<TD><EM>ScrollRate</EM></TD>
<TD>The rate, in msec, at which the image scrolls. If this number is zero the image appears almost instantly.</TD>
</TR>
<TR>
<TD><EM>Delay</EM></TD>
<TD>The delay between images in seconds.</TD>
</TR>
<TR>
<TD><EM>Image<STRONG>N</STRONG></EM></TD>
<TD>The URL to image <EM><STRONG>N</STRONG></EM></TD>
</TR>
<TR>
<TD><EM>URL<STRONG>N</STRONG></EM></TD>
<TD>The URL for the full text of image <EM><STRONG>N</STRONG></EM>.</TD>
</TR>
<TR>
<TD><EM>NumItems</EM></TD>
<TD>Number of images to scroll.</TD>
</TR>
</TABLE>
</CENTER>
<!--END JAVA APPLET EXPLANATION-->
<P>
A subroutine called <TT>ListAdParameters</TT> builds the parameters for the CoolScroll applet by calling
<STRONG>ExAir.Advertisement</STRONG> which in turn queries the database to determine which ads will appeal
to the current member. The result is a list of parameters that tell the applet to display ads based on
the member's areas of interest.
<P>
<H2>Data Model</H2>
The data to populate the applet is derived from joining the <STRONG>Ads</STRONG>, <STRONG>AdsInterests</STRONG>
and <STRONG>MemberInterests</STRONG> tables.
<P>
<H2>Components Used</H2>
The <STRONG>ExAir.Advertisement</STRONG> component is used to gather the relevant advertisement details.
<P>
</FONT>
</TD>
</TR>
</TABLE>
<!--END TOP TABLE HOLDING GRAPHIC, NAVIGATIONAL LINK, AND MAIN CONTENT-->
<BR>
<BR>
<CENTER>
<!--BEGIN LEGAL INFORMATION-->
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TR>
<TD>
<FONT FACE="VERDANA, ARIAL, HELVETICA" SIZE="1"><A HREF="../legal.htm">©1997 Microsoft Corporation. All rights reserved. Terms of Use.</A></FONT>
<P>
</TD>
</TR>
</TABLE>
</CENTER>
<!--END LEGAL INFORMATION-->
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<!--END HTML-->
<SCRIPT LANGUAGE="JavaScript">
function openWindow(SourceURL)
{
// Set some defaults
width=450;
height=450;
url = "code.asp?Source=" + SourceURL;
window.open(url,"Sample","resizable=yes,scrollbars=yes,width=" + width + ",height=" + height);
}
</SCRIPT>