uShopInputImageButton2_se.class
The uShopInputImageButton2 applet functions exactly as the
other uShopInputButton applets, except this applet allows you to
specify any image to be used instead of the regular ADD button.
The image can be any .gif or .jpg and can be of any size. There is
also an option to specify a highlight color and a color when the
mouse button is pressed.
Parameters
- id - A unique id for the product. Can be up to 8 characters.
- name - The name for the product. Can be up to 15 characters.
- description - A brief description of the product. Can be up to 26 characters.
- price - The price of the product.
- image - The image to be displayed as the button. This parameter can be
specified as the full URL to the image or as the path relative to
where the .class files are located. If the image is in the same
directory as the .class files, then you can just specify the image
name.
- 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".
- color1 - The highlight color of the border when the mouse is over the
button. 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".
- color2 - The color of the button's border when the mouse button is pressed.
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 1: Optional parameters are in italics
Note 2: Even though the "name" and "description" fields are limited to 15 and 26
characters, respectively, remember that you can put as large of a name and
description as you want on the page with regular HTML - and then just abbreviate
the name and description in the applets parameters.
<APPLET CODE = "uShopInputImageButton2_se.class" WIDTH=55 HEIGHT=75>
<PARAM NAME=id VALUE="POP002">
<PARAM NAME=name VALUE="Soda Pop">
<PARAM NAME=description VALUE="2-liter bottle">
<PARAM NAME=price VALUE="SEK1.29">
<PARAM NAME=weight VALUE="1">
<PARAM NAME=image VALUE="example_image_button2.gif">
<PARAM NAME=color1 VALUE="yellow">
<PARAM NAME=color2 VALUE="green">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>