uShopInputImageButton1_fn.class
The uShopInputImageButton1 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 whether you want a 3-D border around the
applet or not.
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".
- border - This parameter lets you specify whether you want a 3-D border
around the image or not. The default is "YES". If you do not
want a border, specify this parameter as "NO".
- 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 applet's parameters.
Example 1 (With 3-D Border)
<APPLET CODE = "uShopInputImageButton1_fn.class" WIDTH=55 HEIGHT=75>
<PARAM NAME=id VALUE="CND003">
<PARAM NAME=name VALUE="Chocolate">
<PARAM NAME=description VALUE="Easter Bunny">
<PARAM NAME=price VALUE="FIM6.00">
<PARAM NAME=weight VALUE="0.25">
<PARAM NAME=image VALUE="example_image_button2.gif">
<PARAM NAME=border VALUE="YES">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>
Example 2 (Without 3-D Border)
<APPLET CODE = "uShopInputImageButton1_fn.class" WIDTH=60 HEIGHT=80>
<PARAM NAME=id VALUE="CND005">
<PARAM NAME=name VALUE="Chocolate">
<PARAM NAME=description VALUE="Chick">
<PARAM NAME=price VALUE="FIM2.75">
<PARAM NAME=weight VALUE="0.20">
<PARAM NAME=image VALUE="example_image_button1.gif">
<PARAM NAME=border VALUE="NO">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>