This Java applet fetches your selected list of stock quotes at a specified interval
from a public domain when the info is available. You can click on the stock symbol
to go to a separate link that contains more details.
Cut and paste the code in this commented HTML example, LiveStockQuotes.html)
Parameters include stock symbols, grid-style overall layout, refresh rate, data field size,
script location, border color, font type / size / color.
Move the mouse into the panel and click on a stock symbol to link to a URL.
[Special Installation Instructions and Disclaimer]:
- In addition to standard setup procedures by uploading all the files to your web directory,
the script LiveStockQuotes.cgi written in PERL needs to be installed in the directory
where CGI scripts are allowed and PERL is supported. It needs to be set to excutable mode, e.g.
755 on UNIX-like systems. It seems that most of the current web
hosting services provide the PERL / CGI support, so it is just a matter of putting the script
in the right place. The first line of the script may need to be modified if your system
installs PERL somewhere else.
- If you insist on using other script languages other than PERL, all you
need to do is process a 'url' parameter passed from our Java applet and replace '---' with
a '&' and output the first header line followed by lines of real data.
- This software fetches stock info from a public domain, so data availability depends on
the public source. We do not produce or alter any stock info by ourselves.
- There are 7 data columns being displayed for each symbol. Adding up the values in the
'sizelist' parameter is exactly the width of a stock symbol. In this example, the sum of
80 + 35 + 50 + 80 + 15 + 65 + 95 is 420. If, for example, you need to have 2 symbols per row, then you
should set the applet width to 420 x 2 = 840. The height of a stock symbol is the value of
the applet height divided by the number of rows. In this example, applet height is 240 and
we have 20 rows.
Therefore, each row has a height = 240 / 20 = 12, just tall enough to contain the font size.