uShopInputMenuQuantity1_se.class
The uShopInputMenuQuantity1 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. This applet is identical to the uShopInputMenu applet, except
this applet provides a quantity entry box so that the customer can enter
the desired number of items.
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".
- textcolor - The color of the applet's text. 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".
- 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 = "uShopInputMenuQuantity1_se.class" WIDTH=660 HEIGHT=35>
<PARAM NAME=PRODUCTS
VALUE=" R00001,Roses,red,SEK2.50,
R00002,Roses,long-stem red,SEK3.50,
R00003,Roses,white,SEK2.50,
R00004,Roses,long-stem white,SEK3.75
">
<PARAM NAME=weight VALUE="0">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=menucolor VALUE="white">
<PARAM NAME=menutextcolor VALUE="black">
<PARAM NAME=fontsize VALUE="12">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>