Include the currency converter on your site |
|
Do your visitors need to convert from one currency to another? For example if you are quoting prices in US dollars, you might want to give visitors a handy utility to conversion to their own currency. You could link to a currency converter on someone else's site, but once they leave, will they return? You want to provide them with a calculator right there on your page as part of your site. To incorporate our compact javascript calculator. You simply include some html in your page, and any client with netscape 3, IE4 or better will have a fast effective calculator. You can even initialise the calculator with the currency and amount of your product, so that all they have to do is dial up the currency of their choice and get an instant conversion. The converter can be placed anywhere on your site. Put it on every page if you want, it is small enough to fit into your heading or footer sections. Standard converterTo include the standard converter on your site use the following:
<FORM NAME="general" action="#">
<input type="hidden" name="defin" value="USD" />
<input type="hidden" name="defout" value="EUR" />
<TABLE width=450 style="border: 1px solid #aaaaaa">
<tr>
<td colspan='4' style="font-family: arial; font-size: 12px; text-align: center; color: #000063;
font-weight: bold; letter-spacing: 3px">
The Textor Webmasters Ltd Currency Converter
</td>
</tr>
<tr>
<td>
<img src='http://cconv.textor.com/conv6.gif' ALT='Step 1 - enter base amount' BORDER='0'>
</td>
<td>
<input type="text" name="amount" size="10" value="1" />
</td>
<td>
<select name="curin"></select>
</td>
<td>
<img src='http://cconv.textor.com/conv7.gif' ALT='Step 2 - select first currency' BORDER='0'>
</td>
</tr>
<tr>
<td>
<img src='http://cconv.textor.com/conv9.gif' ALT='Step 4 - result here' BORDER='0'>
</td>
<td>
<div style="margin-top:8px;float:left;height:20px;min-width:40px;width:auto;color:red;font-weight:bold;"
id='result'></div>
</td>
<td>
<select name="curout"></select>
</td>
<td>
<img src='http://cconv.textor.com/conv8.gif' ALT='Step 3 - select conversion currency' BORDER='0'>
</td>
</tr>
<tr>
<td colspan='4' style="font-family: arial; font-size: 10px; font-style: italic;
text-align: center; color: #000063; font-weight: bold; ">
<a href='http://cconv.textor.com' target='_blank'>
For more information click here
</a>
</td>
</tr>
</table>
<input type="hidden" name="texaccept" value="site operator accepts conditions at http://cconv.textor.com" />
<p style="font-family: arial; font-size: 10px; margin-top: 0">
<a id="textor" href="http://www.textor.com/">
Currency converter © Textor Webmasters Ltd 1999-2009.
All rates are indicative only.
</a>
</p>
</FORM>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1" SRC="http://cconv.textor.com/cconv.js"></SCRIPT>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1">initialize('general');</script>
The converter will default to the current code in the hidden field defin as the base currency. To change to another currency you can change the code. You must enter the ISO code of the currency. The converter will default to the current code in the hidden field defout as the target currency. To change to another currency you can change the code. You must enter the ISO code of the currency. Reformatting the Standard converterYou can reformat this in any way you wish. The only restriction is that you must have these two components:
More than one converter on the pageYou can have as many converters on your web page as you wish. However note the following: This script call should be placed once on the page: <SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1" SRC="http://cconv.textor.com/cconv.js"></SCRIPT> This script call should be placed once for each currency converter on the page, after the form:
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1">initialize('[form name]');</script>
You should make sure the form name is different for each converter and use this name in the initialise call.
You will need to give the result field a different ID for each converter. Include the hidden field: <input type="hidden" name="resfield" value="[result id]" />where [result id] is the ID of the result span. Special converterTo include the converter with pre-set values:
<FORM NAME="special" action="#">
<input type="hidden" name="texaccept" value="site operator accepts conditions at http://cconv.textor.com" />
<input type="hidden" name="defin" value="GBP" />
<input type="hidden" name="defout" value="USD" />
<p style="margin: 0;">
<input type="hidden" name="amount" size="10" value="45.67" /><b>£45.67 to:</b>
<select name="curout"></select> =
<span id="result" style="color: red;"> result here</span>
</p>
</FORM>
<p style="font-family: arial; font-size: 10px; margin-top: 0">
<a href="http://www.textor.com/" ID="textor">
Currency converter © Textor Webmasters Ltd 1999-2009.
All rates are indicative only.
</a>
</p>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1" SRC="http://cconv.textor.com/cconv.js"></SCRIPT>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1">initialize('special');</script>
The pre-set value to use should be in the amount hidden field. The currency of the pre-set value to use should be in the defin hidden field. The converter will default to the current code in the hidden field defout as the target currency. To change to another currency you can change the code. You must enter the ISO code of the currency. Reformatting the Special converterYou can reformat this in any way you wish. The only restriction is that you must have these two components:
This script call should be placed once on the page: <SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1" SRC="http://cconv.textor.com/cconv.js"></SCRIPT> Including more than one converter on the pageThis script call should be placed once for each currency converter on the page, after the form:
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1">initialize('[form name]');</script>
You should make sure the form name is different for each converter and use this name in the initialise call.
You will need to give the result field a different ID. Include the hidden field: <input type="hidden" name="resfield" value="[result id]" />where [result id] is the ID of the result span. Older versionsSee This page for the older HTML code. |
