![]() |
|
| . | . |
| Top Tip - Dynamic Multi-Currency Prices | |||||
|
The following instructions explain how to add dynamic multi-currency price fields to your web page using eButtonz.
Minimum requirements:
Method: When adding your eButtonz buy buttons add 2 buttons next to your product or service. 1. Make a buy button with style = "Text & Price". This will add a dynamic price to the page. The code will look something like this: <ebutton id="FLP34" sid="5846TestShop" > 2. Now add the 2nd buy button style = "Image". This will add an image buy button. The code in will look something like this: <ebutton id="FLP34" sid="5846TestShop" > Tip: You can easily duplicate the buy buttons in your web page at the code level and just change the buy style attribute from 1 to 2. Trick A buy button with style "Text & Price" will look like a standard form button. However, if you use CSS (cascading style sheets) you can make the gray button elements disappear leaving just the text in your chosen font and size. To do this you need to add some simple CSS code to the head section of your web page such as the example below: <html> (eButtonz code removed for demonstration purposes only -do not edit your original code) <style type="text/css"> Note that an eButtonz buy button with style "Text & Price" & "Image" will generate a form button with an "input" attribute. The CSS effects all form elements with an input attribute. In the CSS example above the WIDTH: 120px and HEIGHT: 20px attributes match the size of the image used in the eButtonz buy button style = "Image" as used in 2 above. If these sizes in the CSS do not match your image it will appear distorted. Considerations By adding this code to your web page ALL form elements with an input attribute will be effected by the CSS - which may not be what you want. To prevent this create additional CSS definitions for your own form elements that share the input attribute. <style type="text/css"> .mybutton { Note that input does not have a "." before it and mybutton does. This means that any element in your web page with an input attribute will attract this CSS class. The "." means that only form elements with "class=mybutton" will attract this CSS class. Now in your web page attach the CSS class to your own form button as shown below: <form name="form1" method="post" action=whatever.cgi""> Tip: The image must be wide enough to allow the text and price to be displayed as defined in style = "Text & Price". |
|||||
| . | . |
| . | Back | . |
| copyright moltengold ltd |