Internationalizing the Price Ticker

Thu 11 February 2010

The price ticker has been a big hit since it debuted on Quiet Speculation nearly nine months ago. It has slowly gained features as other Magic bloggers have found the ticker and wanted to customize it for their sites. Last week a player from the European Union asked about getting the prices in Euros, and I thought that was a great idea.

$ £ € ¥

If the currency is set on the ticker, Black Lotus Project fetches the current exchange rate for that currency from Google/Citibank and converts all of the values before sending them to you. If the currency has a unique and commonly used symbol, the JavaScript will display it instead of the three-letter code.

Preview:

Loading...

Code:

<divid="ticker_currency">Loading...</div><scripttype="text/javascript"src="http://media.blacklotusproject.com/cards_media/script/jsapi.min.js"></script><scripttype="text/javascript">varticker=newblproject.PriceTicker();ticker.currency="GBP";ticker.continuous=true;ticker.draw('ticker_currency');</script>

New Ticker Options:

currency
Three-letter currency code to which all values should be converted

0 comments