|
If you sell something on your web site or if you talk about an amount in a currency, your visitors may
want to know the equivalent amount in other currencies. The visitor only have to click on the link, this amount
is converted automatically converted in other major currencies.
Example :
This item costs $ 123.45
Equivalent HTML code :
<A HREF="http://fxtop.com/en/cnv.htm?C1=USD&A=123.45" target="_top">$ 123.45</A>
where USD is the initial currency and 123.45 the initial amount.
Syntax of the direct link is the following :
http://fxtop.com/LG/cnv.htm?C1=_INITIAL_CURRENCY_&A=_AMOUNT_&C2=_TARGET_CURRENCY_&B=_BASE_&P=_ACCURACY_
parameters have the following meaning :
- LG is the language in 2 lowercase characters (en : English, fr : French, de : German, no : Norwegian, it : Italian,
es : Spanish, pt : Portuguese, nl : Dutch, se : Swedish, fi : Finnish, dk : Danish)
- _INITIAL_CURRENCY_ (default EUR) is the initial currency in three letters ISO code (USD for US Dollar, EUR for Euro...), complete ISO code for currencies are shown on advanced currency converter
- _AMOUNT_ is the amount without space nor commas, use decimal point (.) example : 123456.78
- _TARGET_CURRENCY_ (default USD) is the 3 letters ISO code of the target currency, if you want to convert amount in a special currency, result will be shown on the first line of the page.
- _BASE_ is equal to 1 (default) or 2. Use 1 when yu want to see quotations like _INITIAL_CURRENCY_ / other currencies (usually for EUR, USD and GBP),
use 2 when you want to see reverse quotation other currencies / _INITIAL_CURRENCY_ (usually for minor currencies)
- _ACCURACY_ (-2 is default) is the accuracy, number of digits after the decimal point. It is used only for the first line. For example 0 for no decimal value, and 2 for 2 decimal digits. Negative value of this parameter mean that the normal accuracy of currencies must be used
Parameters after the "?" sign are all optionals
You can put as much of such links on your web site and can generate it automatically if
you have many items to sell on your web site (by a javascript, PHP or ASP script or CGI-BIN)
|