It is easy to add a currency selection flags to any of your pages. To do this, you simply need to place the following HTML on your page:
You will need to source the flag images.
<img src="/img/flags2/new-zealand.png" width="31px" height="19px" Alt="View prices in NZ Dollars"
title="View prices in NZ Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('NZD');"/>
This will produce a currency selection flag button that looks like this:
$123.00
The function does not need to be confined to a flag image, any text/object that has the onclick event handler can use the javascript function "dc_select_currency('NZD');". Just replace the NZD with the ISO3 code of the currency you want to convert to.
Examples
1. - Anchor tags
Change currency to:Pounds | Australian Dollars | Euro
Source:
Change currency to:
<a href="javascript: dc_select_currency('GBP');" title="Click for Pounds">Pounds</a> |
<a href="javascript: dc_select_currency('AUD');" title="Click for AU Dollars">Australian Dollars</a> |
<a href="javascript: dc_select_currency('EUR');" title="Click for Euro">Euro</a>
<a href="javascript: dc_select_currency('GBP');" title="Click for Pounds">Pounds</a> |
<a href="javascript: dc_select_currency('AUD');" title="Click for AU Dollars">Australian Dollars</a> |
<a href="javascript: dc_select_currency('EUR');" title="Click for Euro">Euro</a>
2. - Images
Convert to your currency:




Source:
Convert to your currency:
<img src="/img/flags2/united-states.png" width="31px" height="19px" Alt="View prices in US Dollars" title="View prices in US Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('USD');"/>
<img src="/img/flags2/united-kingdom.png" width="31px" height="19px" Alt="View prices in Pounds" title="View prices in Pounds" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('GBP');"/>
<img src="/img/flags2/canada.png" width="31px" height="19px" Alt="View prices in Canadian Dollars" title="View prices in Canadian Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('CAD');"/>
<img src="/img/flags2/new-zealand.png" width="31px" height="19px" Alt="View prices in New Zealand Dollars" title="View prices in New Zealand Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('NZD');"/>
<img src="/img/flags2/united-states.png" width="31px" height="19px" Alt="View prices in US Dollars" title="View prices in US Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('USD');"/>
<img src="/img/flags2/united-kingdom.png" width="31px" height="19px" Alt="View prices in Pounds" title="View prices in Pounds" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('GBP');"/>
<img src="/img/flags2/canada.png" width="31px" height="19px" Alt="View prices in Canadian Dollars" title="View prices in Canadian Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('CAD');"/>
<img src="/img/flags2/new-zealand.png" width="31px" height="19px" Alt="View prices in New Zealand Dollars" title="View prices in New Zealand Dollars" style="cursor: hand; cursor:pointer;" onclick="dc_select_currency('NZD');"/>
3. - Input Objects
Change currency to: | |
Source:
Change currency to:
<input type="button" onclick="javascript: dc_select_currency('GBP');" title="Click for Pounds" value="Pounds" /> |
<input type="button" onclick="javascript: dc_select_currency('AUD');" title="Click for AU Dollars" value="Australian Dollars" /> |
<input type="button" onclick="javascript: dc_select_currency('EUR');" title="Click for Euro" value="Euros" />
<input type="button" onclick="javascript: dc_select_currency('GBP');" title="Click for Pounds" value="Pounds" /> |
<input type="button" onclick="javascript: dc_select_currency('AUD');" title="Click for AU Dollars" value="Australian Dollars" /> |
<input type="button" onclick="javascript: dc_select_currency('EUR');" title="Click for Euro" value="Euros" />