uShopInputImage2_pg.class
The uShopInputImage1 applet allows you to display multiple
products with a single applet. You can specify different product
ids, names, prices and even specify an image for each product.
This applet is identical to the uShopInputImage1 applet, except that
there are two option lists instead of one option list.
Note: To use this applet, you must also have placed the
uShopImagePanel_pg.class in the same directory.
Parameters
- title - This is the text that appears at the top of the applet next
to the image navigation buttons.
- products - This parameter specifies the list of products to be available
with this applet. For each product you must specify: id,
name, weight, price, image, and description - Each separated
by commas. The image should be specified as relative to the
directory. The description can be as long you want. Just
Do not use commas in the description. This is because
the commas indicate the start of the next product. See
the example below to get an illustration of the format.
- option1 - A list of options from which the customer can choose when
ordering the product. You can specify as many options in
the list as you like, but each option must be separated by
a comma. (ie. "optionA,optionB,optionC,optionD"). Each option
can be up to 13 characters.
- option2 - A second list of options from which the customer can choose when
ordering the product. You can specify as many options in
the list as you like, but each option must be separated by
a comma. (ie. "optionA,optionB,optionC,optionD"). Each option
can be up to 13 characters.
- framecolor - The color of top and lower frame of the applet. You can
specify an RGB value separated by commas ("integer, integer,
integer" where each integer is a value between 0 and 255) or
specify one of the predefined colors: white, black, lightGray,
gray, darkGray, red, green, blue, yellow, magenta, cyan, pink,
and orange. The default value is "lightGray".
- textcolor - The color of the text next to the image. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "white".
- background - The background color of the applet. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "white".
- popupwindow - This parameter lets you specify whether you want a pop-up window
to be displayed each time an item is added to the shopping cart. This
pop-up window is useful if the store does not use FRAMES and does not
always display the shopping cart. Set this parameter to "YES" if you
want the pop-up window displayed.
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopInputImage2_pg.class" WIDTH=500 HEIGHT=300>
<PARAM NAME=title VALUE="Rings">
<PARAM NAME=products VALUE="R00001,Gold Ring,0,PTE79.00,product_image1.gif,A lovely 14-K Gold ring with your birthstone.,
R00002,Silver Ring,0,PTE59.00,product_image2.gif,Our most popular ring! Made of stirling silver.,
R00003,Ring,0,PTE29.00,product_image3.gif,The classic birthstone ring.">
<PARAM NAME=option1 VALUE="size 4,size 4 1/2,size 5,size 5 1/2,size 6,size 6 1/2,size 7, size 7 1/2, size 8, size 8 1/2, size 9, size 9 1/2">
<PARAM NAME=option2 VALUE="January,February,March,April,May,June,July,August,September,October,November,December"<
<PARAM NAME=framecolor VALUE="lightGray">
<PARAM NAME=textcolor VALUE="white">
<PARAM NAME=background VALUE="darkGray">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>