Advertisement

Inline rate widget

Advertisement

The inline rate widget can be used anywhere in your blog or website.

What does it look like

Example A:

The dollar fell Monday below the 100-Japanese-yen level () as data showed an unexpected contraction in U.S. manufacturing activity in May.

Example B:

In Tokyo Metropolitan Area, the average price of new condominium units dropped 5.1% year-to-year to JPY691,000 () per square metre in August 2012,

View the code (stylesheet)

#cross-rate-container{ width: 250px; }
#cross-rate-container table.cross-rate-table{ width: 100%; border-bottom: 2px solid #eee; }
#cross-rate-container table.cross-rate-table td{ text-align: right; font-family: 12px; font-family:Georgia, "Times New Roman", Times, serif; padding: 3px 5px 3px 5px; color: #333; }
#cross-rate-container table.cross-rate-table tr.row-0 td{ border-bottom: 2px solid #eee; }
#cross-rate-container table.cross-rate-table tr.row-0 span{ float: right; }
#cross-rate-container table.cross-rate-table tr td.col-0{ border-right: 1px solid #eee; text-align: center; padding-left: 20px; }
#cross-rate-container table.cross-rate-table td span{ display: block; padding-left: 20px; height: 16px; width: 30px; }
#cross-rate-container .updated-div{ font-size: 10px; color: #777; text-align: right; margin-top:4px; }
#cross-rate-container .credit-div{ text-align: right; }
#cross-rate-container .credit-div a, #cross-rate-container .credit-div a:hover, #cross-rate-container .credit-div a:visited{ color: #777; font-size: 10px; }

View the code (HTML)

<h3>Format A:</h2>
<p>The dollar fell Monday below the 100-Japanese-yen level (<script type="text/javascript" src="http://currency7.com/widgets/i.php?from=USD&to=JPY&format=a"></script>) as data showed an unexpected contraction in U.S. manufacturing activity in May. </p>

<h3>Format B:</h2>
<p> In Tokyo Metropolitan Area, the average price of new condominium units dropped 5.1% year-to-year to JPY691,000 (<script type="text/javascript" src="http://currency7.com/widgets/i.php?from=JPY&to=USD&format=b&amount=691000"></script>) per square metre in August 2012, </p>

Customize the widget

Replace the currency codes in red with the codes you want. Currently there are two output formats: "a" and "b". If you choose "b", you also need to provide an amount.