 |
Getting
started with the HardLight Currency Converter is easy! To
add inline currency conversion to your website just follow
this step by step guide...
Step 1: Get signed
up and add your details...
 |
Step
2: Add the code to your web page...
 |
Adding
the code to your web page is easy. Display the currency
converter on your page using IFRAME tags. Here's some
example code. To get started quickly and easily just copy
this code direct to your page and modify the parameters
as needed, remembering in particular to change
the UserNumber to your own unique number provided when
you sign up...
<IFRAME
src="http://www.hardlightcurrency.com/currency_converter.asp?From=GBP&To=USD&Amount=9.95&PageColor=DDDDDD&TextFace=Verdana,
Arial, Helvetica&TextColor=000000&TextSize=-2&DisColor=000000&AllowChoice=Yes&ShowFrom=Yes&UserNumber=XXX-CHANGE-THIS!!!-XXX"
frameborder="0" width="300" height="100"
scrolling="auto"></IFRAME>
The
above code will produce this result...
The
SRC property in the IFRAME tag contains the URL that calls
the currency converter. This URL has a series of parameters
attached that will control both the calculation and appearance
of the currency converter. Some of the parameters are
optional and some are required. Here's a list of the parameters
and what they do...
 |
Paramter |
Example
Values |
Required/Optional |
Explanation |
From |
GBP,
USD, JPY etc. |
Required |
This
is the currency to be converted from. It is denoted
by the international standard three character
code. We currently support 36 currencies - click
here for a complete list. |
To |
GBP,
USD, JPY etc. |
Required |
This
is the currency to be converted to. It is denoted
by the international standard three character
code. If the parameter AllowChoice
is set to 'Yes' the site visitor to change the
currency converted to. We currently support 36
currencies - click
here for a complete list. |
Amount |
9.95 |
Required |
This
is the amount to be converted. It must be a proper
number consisting of only numeric characters and
decimal points. For instance, 10.5 will produce
a result while TEN.FIVE will produce an error. |
PageColor |
FFFFFF |
Optional |
Sets
the background color of the currency conversion.
Use a six character HTML color without the leading
#, for instance FFFFFF or CCCCCC. Default value
is FFFFFF (white). |
TextFace |
Verdana,
Arial, Helvetica |
Optional |
Sets
the font face of the currency conversion. Use
standard web safe fonts such as Verdana, Arial
or Times. Multiple fonts separated by commas may
be used. Default value is Times. |
TextColor |
000000 |
Optional |
Sets
the text color of the currency conversion. Use
a six character HTML color without the leading
#, for instance FFFFFF or CCCCCC. Default value
is 000000 (black). |
TextSize |
-1 |
Optional |
Sets
the font size of the currency conversion. Use
standard HTML font sizes such as -1, +1 etc. Default
value is -1. |
DisColor |
CCCCCC |
Optional |
Sets
the text color of the currency conversion's disclaimer.
Use a six character HTML color without the leading
#, for instance FFFFFF or CCCCCC. Default value
is 000000 (black). IMPORTANT:
Displaying the disclaimer is mandatory.
The text color cannot be set to the same color
as the background. |
AllowChoice |
Yes
or No |
Optional |
Allows
the site visitor to choose the currency to be
converted to using a simple drop-down menu. If
set to 'No' the converted currency is fixed to
the one defined with the To
parameter. Default value is No. |
ShowFrom |
Yes
or No |
Optional |
Selects
whether the From
currency is shown along with the To
currency, for example 'GBP 9.95 = USD 18.30'.
Default value is No. |
UserNumber |
123456-123 |
Required |
This
parameter identifies the User so that the referring
domain can be verified. This field is mandatory
and an error will occur if it is incorrect or
omitted. |
 |
The
IFRAME tag has additional properties such as width, height
and scrolling. Set these as desired but remember that
the width and height properties must be large enough to
accommodate the currency converter results including the
disclaimer. It should be noted that IFRAMEs aren't supported
by all browsers, though most modern browsers have no problems
with them. You
can get more info on IFRAME tags here.
Step
3: Test the results...
Check
the results on your website, and if you're happy, then
that's it! Easy, wasn't it? If you have any problems email
us at currency@hardlight.net
and we'll try to help. Remember, you can update your details
at any time by going to the My Account
page. Good luck! |
 |
|
 |