uShopCart.class
The uShopCart applet allows you to add a "Shopping Cart" to your
web pages. The shopping cart lets your customers see the items which
they select. uShop has one shopping cart applet that
can be displayed in several different ways based on how big you want
it to appear and how many details you want to display for each
product. Available displays are: "FULL", "LARGE", "MEDIUM", "SMALL",
"NAMES", "COUNT", and "ICON". The default value is "ICON".
Parameters
- display
- "FULL" - Displays all details for each product (Id, Name, Description,
Weight, Quantity, and Price).
- "LARGE" - Displays Id, Name, Description, Quantity, and Price.
- "MEDIUM" - Displays Id, Name, Description, and Price.
- "SMALL" - Displays Name and Price.
- "NAMES" - Displays Name only.
- "COUNT" - Displays a count of the items in the cart.
- "ICON" - Just displays a uShop icon.
- money_sign - The sign that will be used to represent the currency.
Examples: "$", "#", "fr", "y". The default value is "$".
- 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".
- listcolor - The color inside the shopping cart. 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 text inside the shopping cart. 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".
Note: Optional parameters are in italics
Example 1 ("FULL" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=500 HEIGHT=300>
<PARAM NAME=display VALUE="FULL">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=background VALUE="white">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
</APPLET>
Example 2 ("LARGE" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=450 HEIGHT=300>
<PARAM NAME=display VALUE="LARGE">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=background VALUE="white">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
</APPLET>
Example 3 ("MEDIUM" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=420 HEIGHT=300>
<PARAM NAME=display VALUE="MEDIUM">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=background VALUE="white">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
</APPLET>
Example 4 ("SMALL" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=150 HEIGHT=165>
<PARAM NAME=display VALUE="SMALL">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
</APPLET>
Example 5 ("NAMES" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=125 HEIGHT=165>
<PARAM NAME=display VALUE="NAMES">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=listcolor VALUE="white">
<PARAM NAME=textcolor VALUE="black">
</APPLET>
Example 6 ("COUNT" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=50 HEIGHT=20>
<PARAM NAME=display VALUE="COUNT">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=textcolor VALUE="black">
</APPLET>
Example 7 ("ICON" Display Type)
<APPLET CODE = "uShopCart.class" WIDTH=50 HEIGHT=20>
<PARAM NAME=display VALUE="ICON">
<PARAM NAME=money_sign VALUE="$">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=textcolor VALUE="black">
</APPLET>