uShopInputMenu_dn.class
The uShopInputMenu 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.
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.
- 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 = "uShopInputMenu_dn.class" WIDTH=550 HEIGHT=35>
<PARAM NAME=PRODUCTS
VALUE=" M00001,CPU,486DX-66,KR50.00,
M00002,CPU,Pentium 100 MHz,KR100.00,
M00003,CPU,Pentium 200 MHz,KR200.00,
M00004,CPU,Pentium Pro 233 MHz,KR270.00
">
<PARAM NAME=weight VALUE="0">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=menucolor VALUE="white">
<PARAM NAME=menutextcolor VALUE="blue">
<PARAM NAME=fontsize VALUE="12">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>