uShopInputMenuOption2_dn.class
The uShopInputMenuOption2 applet allows you to create a pull-down
menu which contains a list of products from which the customer can
select. Each product in the menu can have it's own id, name, description,
and price. In addition, this applet has one configurable option list.
This applet is identical to the uShopInputMenuOption1 applet,
except it does not have a quantity entry box.
Parameters
- products - This parameter specifies the list of products to be available
in the pull down menu. For each product you must specify: id,
name,description, and price - Each separated by commas. (Just
see the example below on how to do this).
- weight - The weight of the product. You only need to specify this if you
are using weight to calculate shipping. The default value is "0".
For now, you can't specify different weights for different
products in the list - just one weight that is used for each
product in the menu.
- options - This parameter lets you specify a list of options from which
the customer can choose. Separate each item in the option
list with a comma.
- 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".
- menucolor - The color of the pull-down menu. 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".
- menutextcolor - The color of the text in the pull-down menu. 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 "black".
- fontsize - The size of the font in the pull down menu. It is recommended
to use "10" or "12".
- 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 = "uShopInputMenuOption2_dn.class" WIDTH=500 HEIGHT=35>
<PARAM NAME=PRODUCTS
VALUE=" B00001,Baseball Bat,Wood ,KR120.00,
B00002,Baseball Bat,Aluminum ,KR89.50
">
<PARAM NAME=weight VALUE="0">
<PARAM NAME=options VALUE="30,32,34,36,38">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=menucolor VALUE="white">
<PARAM NAME=menutextcolor VALUE="black">
<PARAM NAME=fontsize VALUE="12">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>