|
YOU ARE HERE: Education » Webmaster Tools » Webmaster Tools
Quotes AppletThe Quotes Applet will allow you to display customized quotes from Barchart.com directly onto your website. The quotes applet is fully customizable and will work for both stocks and commodities. You can customize the symbols, alias to names, background colors, foreground colors, fonts, sizes, columns, rows, data, displays and styles, among other attributes. The Quotes Applet will also work in conjunction with the co-brands. EXAMPLE 1:
The code to produce this is:
<APPLET NAME="QuotePage"
CODE="QuotePage.class"
CODEBASE="http://java.barchart.com/quotepage"
HEIGHT="150" WIDTH="300"
>
<PARAM NAME="symbols" VALUE="'Stocks,yhoo,msft,amzn:Amazon,'Futures,CZ1:Corn Dec,
EXAMPLE 2:
The code to produce this is:
<APPLET NAME="QuotePage"
CODE="QuotePage.class"
CODEBASE="http://java.barchart.com/quotepage"
HEIGHT="110" WIDTH="210"
>
<PARAM NAME="symbols" VALUE="'Indices,$NYA:NYSE Comp,
Note: Please make sure that the width/height are adjusted and large
enough to actually display the data. If you set the width to 10, and the font
size to 500, the applet will be too small to show the results.
Explanation of tags:
The quotes applet can be made compatible with the co-brands by adding the following line of code. <PARAM NAME="cobrand" VALUE="****"> where **** represents your site's code. |


