Associate Engine : Sample HTML | ||
Home > Associate Engine > Documentation > Sample HTML |
|
|
Link Description: The following link does a keyword search on all products ("blended") for the keyword phrase "Harrison Ford". If you want to limit the search to a particular product category (e.g.: "VHS"), then change the value of the mode script parameter (e.g.: mode=vhs). To search for a different keyword phrase, change the value of the keyword script parameter. Use a plus sign (+) between multiple keywords (e.g.: Harrison+Ford).
Link: Harrison Ford products Link HTML: <a href="/cgi-bin/ae.pl?type=search&mode=blended&keyword=harrison+ford" >Harrison Ford products</a> Note: The above HTML may show up on your screen as two lines because it's too wide for your web browser window. When you copy this HTML to your webpage, make sure that you put the HREF on one line with no breaks in the middle.
Blended Search Description: The following form does a keyword search on all products ("blended"). If you want to limit the search to a particular product category (e.g.: "VHS"), then change the value of the mode script parameter.
Form: Form HTML: <form ACTION="/cgi-bin/ae.pl" method=get>
<input type=hidden name=type value=search>
<input type=hidden name=mode value=blended>
<input type=text name=keyword size=20 maxlength=128>
<input type=submit value=Search>
</form>See Live: Go to http://www.buy-here-and-save.com/
Category Search Description: The following form does a keyword search on a user-selected product category.
Form: Form HTML: <form ACTION="/cgi-bin/ae.pl" method=get>
<p>
<input type=hidden name=type value=search>
Search
<select name=mode size=1>
<option value=blended>All products</option>
<option value=books>Books</option>
<option value=music>Popular music</option>
<option value=classical>Classical music</option>
<option value=dvd>DVD's</option>
<option value=vhs>VHS Videos</option>
<option value=theatrical>In Theaters</option>
<option value=toys>Toys</option>
<option value=baby>Baby</option>
<option value=pc-hardware>Computer Hardware</option>
<option value=videogames>Computer & Video Games</option>
<option value=electronics>Electronics</option>
<option value=photo>Photo</option>
<option value=software>Software</option>
<option value=tools>Tools & Hardware</option>
<option value=garden>Garden / Outdoor Living</option>
<option value=kitchen>Kitchen</option>
<option value=wireless-phones>Cell Phones & Service</option>
</select>
for
<input type=text name=keyword size=20 maxlength=128>
<input type=submit value=Go>
</p>
</form>See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
HTML <SCRIPT> Tag Description: The HTML <SCRIPT> tag lets you include results anywhere on an existing HTML page such as your home page. The following example uses a <SCRIPT> tag to show the bestsellers in the Books category. If you want to show the bestsellers of a different product category (e.g.: "VHS"), then change the value of the mode script parameter (e.g.: mode=vhs).
Output: HTML: <SCRIPT TYPE="text/JavaScript" SRC="/cgi-bin/ae.pl?script&type=bestsellers&mode=books&grid=c:3,r:2,n,m"></SCRIPT> Note: The above HTML may show up on your screen as two or more lines because it's too wide for your web browser window. When you copy this HTML to your webpage, make sure that you put the HREF on one line with no breaks in the middle.
Note: In the definition of the HTML language, <SCRIPT> is a container tag (just like <B></B> is a container tag). Every opening <SCRIPT> tag requires a closing </SCRIPT> tag. The </SCRIPT> tag in the above example is required.
More: The "script" script parameter in conjunction with a <SCRIPT> tag permits output to be embedded in any webpage (e.g.: your home page). This parameter causes the template script parameter to be ignored and the output is just "{results}".
Use something like the following on your webpage: <SCRIPT SRC="/cgi-bin/ae.pl?script&PARAMETERS" TYPE="text/JavaScript"></SCRIPT> and put in the ae.pl script parameters you want to use where it says "PARAMETERS". For better looking results, also try using the grid script parameter
HTML <IFRAME> Tag Description: The above uses an <IFRAME> tag to show the bestsellers in the Books category. If you want to show the bestsellers of a different product category (e.g.: "VHS"), then change the value of the mode script parameter (e.g.: mode=vhs).
Output: See below. HTML: <IFRAME SRC="/cgi-bin/ae.pl?iframe&type=bestsellers&mode=books&grid=c:3,r:2,n,m" WIDTH=630 HEIGHT=300 SCROLLING=AUTO FRAMESPACING=0 MARGINWIDTH=0 MARGINHEIGHT=0 BORDER=1></IFRAME> Note: The above HTML may show up on your screen as two or more lines because it's too wide for your web browser window. When you copy this HTML to your webpage, make sure that you put the HREF on one line with no breaks in the middle.
Note: In the definition of the HTML language, <IFRAME> is a container tag (just like <B></B> is a container tag). Every opening <IFRAME> tag requires a closing </IFRAME> tag. The </IFRAME> tag in the above example is required.
More: The "iframe" script parameter in conjunction with an <IFRAME> tag permits output to be embedded in any webpage (e.g.: your home page). This parameter causes the template script parameter to be ignored and the output is just "{results}".
Use something like the following on your webpage: <IFRAME SRC="/cgi-bin/ae.pl?script&PARAMETERS" SCROLLING=AUTO></IFRAME> and put in the ae.pl script parameters you want to use where it says "PARAMETERS". For better looking results, also try using the grid script parameter
Link Description: The following link shows the bestsellers in the Books category. If you want to show the bestsellers of a different product category (e.g.: "VHS"), then change the value of the mode script parameter (e.g.: mode=vhs).
Link: Books bestsellers Link HTML: <a href="/cgi-bin/ae.pl?type=bestsellers&mode=books" >Books bestsellers</a> Note: The above HTML may show up on your screen as two lines because it's too wide for your web browser window. When you copy this HTML to your webpage, make sure that you put the HREF on one line with no breaks in the middle.
Drop-Down Menu Description: The following form displays the bestsellers of a user-selected product category.
Menu: Menu HTML: <form action="/cgi-bin/ae.pl" method=get>
<input type=hidden name=type value=bestsellers>
<select size=1 name=mode onchange="submit()">
<option value=books>-- click here for bestsellers --</option>
<option value=books>Books</option>
<option value=dvd>DVD</option>
<option value=electronics>Electronics</option>
<option value=garden>Lawn & Patio</option>
<option value=kitchen>Kitchen & Housewares</option>
<option value=music>Music</option>
<option value=photo>Camera & Photography</option>
<option value=software>Software</option>
<option value=tools>Tools</option>
<option value=toys>Toys & Games</option>
<option value=video>VHS</option>
</select>
<input type=submit value=Go>
</form>See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Simple Store Description: You can use the following HTML to create an index page that contains Associate Engine links that show products from each of amazon.com's stores (e.g.: books, DVD's, music, toys, etc.). This index page lets you very quickly setup a basic website that uses Associate Engine.
Output: Online Shopping
HTML: <HTML> <HEAD> <TITLE>Online Shopping</TITLE> </HEAD> <BODY BGCOLOR="white"> <CENTER> <H1>Online Shopping</H1> <TABLE ALIGN="CENTER"> <TR> <TD VALIGN="TOP"> <UL> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=baby">Baby</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=books">Books</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=music">CD's</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=dvd">DVD's</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=electronics">Electronics</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=garden">Garden</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=kitchen">Kitchen</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=magazines">Magazines</A></LI> </UL> </TD> <TD VALIGN="TOP"> <UL> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=photo">Photography</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=software">Software</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=universal">Tools</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=toys">Toys</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=videogames">Video Games</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=vhs">Videos</A></LI> <LI><A HREF="/cgi-bin/ae.pl?type=browse&mode=wireless-phones">Cell Phones</A></LI> </UL> </TD> </TR> </TABLE> </CENTER> </BODY> </HTML>Note: The Associate Engine script also comes with a set of Page Templates that implement a more advanced store. These templates can be found in
ae-template/store/*.html To use these templates, set the template.dir configuration variable to"ae-template/store"
ASIN or ISBN Search Description: ASIN or ISBN Search. Enter an 10-character ASIN or ISBN # such as: 0439567629 Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<INPUT TYPE="TEXT" NAME="asinsearch" SIZE="25" MAXLENGTH="128">
<INPUT TYPE="SUBMIT" VALUE="Search">
</FORM>Link: Click here for Harry Potter and the Order of the Phoenix (ASIN 0439567629) Link HTML: <A HREF="/cgi-bin/ae.pl?asinsearch=0439567629">Click here for Harry Potter and the Order of the Phoenix</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
UPC Search Description: UPC Search. Enter a UPC # such as: 696998718524 in popular music. Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="upcsearch" SIZE="20" MAXLENGTH="128">
in
<SELECT NAME="mode" SIZE="1">
<OPTION VALUE="music">Popular music</OPTION>
<OPTION VALUE="classical">Classical music</OPTION>
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for One Heart CD by Celine Dion (UPC 696998718524 in popular music) Link HTML: <A HREF="/cgi-bin/ae.pl?upcsearch=696998718524&mode=music">Click here for One Heart CD by Celine Dion</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Author Search Description: Author Search. Enter an author's name such as: Wayne Dyer Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="authorsearch" SIZE="20" MAXLENGTH="128">
in Books
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Wayne Dyer Link HTML: <A HREF="/cgi-bin/ae.pl?authorsearch=Wayne+Dyer">Click here for Wayne Dyer</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Musical Artist Search Description: Musical Artist Search. Enter a musical artist's name such as: Celine Dion Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="artistsearch" SIZE="20" MAXLENGTH="128">
in
<SELECT NAME="mode" SIZE="1">
<OPTION VALUE="music">Popular music</OPTION>
<OPTION VALUE="classical">Classical music</OPTION>
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Celine Dion Link HTML: <A HREF=/cgi-bin/ae.pl?artistsearch=Celine+Dion&mode=music">Click here for Celine Dion</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Actor/Actress Search Description: Actor/Actress Search. Enter an actor/actress name such as: Harrison Ford Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="actorsearch" SIZE="20" MAXLENGTH="128">
in
<SELECT NAME="mode" SIZE="1">
<OPTION VALUE="dvd">DVD</OPTION>
<OPTION VALUE="vhs">VHS</OPTION>
<OPTION VALUE="video">DVD and/or VHS</OPTION>
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Harrison Ford DVD's Link HTML: <A HREF="/cgi-bin/ae.pl?actorsearch=Harrison+Ford&mode=dvd">Click here for Harrison Ford DVD's</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Director Search Description: Director Search. Enter a director's name such as: Alfred Hitchcock Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="actorsearch" SIZE="20" MAXLENGTH="128">
in
<SELECT NAME="mode" SIZE="1">
<OPTION VALUE="dvd">DVD</OPTION>
<OPTION VALUE="vhs">VHS</OPTION>
<OPTION VALUE="video">DVD and/or VHS</OPTION>
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Alfred Hitchcock DVD's Link HTML: <A HREF="/cgi-bin/ae.pl?directorsearch=Alfred+Hitchcock&mode=dvd">Click here for Alfred Hitchcock DVD's</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Manufacturer Search Description: Manufacturer Search. Enter a manufacturer's name such as: Palm Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="manufacturersearch" SIZE="20" MAXLENGTH="128">
in
<SELECT NAME="mode" SIZE="1">
<OPTION VALUE="electronics">Electronics</OPTION>
<OPTION VALUE="kitchen">Kitchen</OPTION>
<OPTION VALUE="videogames">Video Games</OPTION>
<OPTION VALUE="software">Software</OPTION>
<OPTION VALUE="photo">Cameras & Photo</OPTION>
<OPTION VALUE="pc-hardware">Personal Computers</OPTION>
</SELECT>
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Palm devices Link HTML: <A HREF="/cgi-bin/ae.pl?manufacturersearch=palm&mode=electronics">Click here for Palm devices</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
Listmania! Search Description: Listmania! Search. Enter a Listmania! ID# such as: 34TRCFE5HC23M Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="listmaniasearch" SIZE="20" MAXLENGTH="128">
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Simply the Best Stephen King books (Listmania! 34TRCFE5HC23M) Link HTML: <A HREF="/cgi-bin/ae.pl?listmaniasearch=34TRCFE5HC23M">Click here for Simply the Best Stephen King books</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl Note: If you create a new ListMania list at amazon.com, it may take up to 24 hours for amazon.com to make that list available through its Amazon.com Web Services (AWS) servers. The www.amazon.com website servers are separate from amazon.com's AWS servers. Until amazon.com copies your ListMania list to their AWS servers, your ListMania list will show up as "no results found". Try again in 24 hours.
WishList Search Description: WishList Search. Enter a WishList ID# such as: BUWBWH9K2H77 Form: Form HTML: <FORM ACTION="/cgi-bin/ae.pl" METHOD="GET">
<P><INPUT TYPE="TEXT" NAME="wishlistsearch" SIZE="20" MAXLENGTH="128">
<INPUT TYPE="SUBMIT" VALUE="Search"></P>
</FORM>Link: Click here for Jeff Bezos's WishList (WishList BUWBWH9K2H77) Link HTML: <A HREF="/cgi-bin/ae.pl?wishlistsearch=BUWBWH9K2H77">Click here for Jeff Bezos's WishList</A> See Live: Go to https://www.c3scripts.com/cgi-bin/ae.pl
PowerSearch (Advanced Search of Books) Description: The PowerSearch (power search) search type allows searching books against a variety of specific product fields such as publisher name and format. Power Search is basically equivalent to amazon.com's "Power Search" search feature.
HTML: See PowerSearch parameter for full details.
For more examples, see the "Overview" section and the mode script parameter.
< Previous | Table of Contents | Next > |
E.&O.E.; © Cusimano.Com Corporation; www.c3scripts.com