Wednesday, February 8, 2017

viewer

<div id="atnbg20170208w1822" style="color:burlywood;font-size:.6em">http://elite.finviz.com/publish/020817/AACccdl20191087.png</div>
<div id="atnbg20170208w1822f"></div>
<script>

function atnbg20170208w1822() {

var thelist = document.getElementById("atnbg20170208w1822").innerHTML.split(",")
var thecode = ""

function addrecord(url) {
return '<a href="' + url + '" imageanchor="1"><img src="' + url + '" style="width:300px" /></a>'}

function addlink(symbol) {
return '&nbsp;<a href="http://elite.finviz.com/quote.ashx?t=' + symbol + '" style="font-size:2em;color:burlywood" target="_blank">f</a>&nbsp;'}

function symbol(url) {return url.split("/")[url.split("/").length - 1].split("c")[0]}

function addupdater(symbol) {
var theurl = 'http://elite.finviz.com/chart.ashx?t=' + symbol + '&ty=c&ta=st_c,sch_200p,sma_50,sma_200,sma_20&p=d&s=l'
return '<a href="' + theurl + '" imageanchor="1"><img src="' + theurl + '" style="width:300px" /></a><br />'}

for (var i = 0; i < thelist.length; i = i + 1) {
var theurl = thelist[i]
var thiscode = addrecord(theurl) + addlink(symbol(theurl)) + addupdater(symbol(theurl))
thecode = thecode + thiscode}

document.getElementById("atnbg20170208w1822f").innerHTML = thecode}

atnbg20170208w1822()

</script>

No comments:

Post a Comment