*
<br />
<div id="sns20170323th1400p">
</div>
<div id="sns20170323th1400c">
</div>
<script>
function sns20170323th1400() {
var sampledailyrecord = "http://elite.finviz.com/publish/032317/AACccdl17041538.png"
var sampledailyupdater = "http://elite.finviz.com/chart.ashx?t=AAC&ty=c&ta=st_c,sch_200p,sma_50,sma_200,sma_20&p=d&s=l"
var samplefinvizlink = "http://elite.finviz.com/quote.ashx?t=AAC"
var samplemarketwatchlink = "http://www.marketwatch.com/investing/stock/acst/charts"
var therecord = document.getElementById("sns20170323th1400i")
var thepreview = document.getElementById("sns20170323th1400p")
var thecode = document.getElementById("sns20170323th1400c")
var thesymbol = therecord.value.split("/")[therecord.value.split("/").length - 1].split("c")[0]
var p = ""
p = p + '<a href="' + therecord.value + '" imageanchor="1">'
p = p + '<img src="' + therecord.value + '" style="width:200px" /></a>'
var theupdaterlink = "http://elite.finviz.com/chart.ashx?t=" + thesymbol + "&ty=c&ta=st_c,sch_200p,sma_50,sma_200,sma_20&p=d&s=l"
p = p + '<a href="' + theupdaterlink + '" imageanchor="1"><img src="' + theupdaterlink + '" style="width:200px" /></a>'
var thefinvizlink = "http://elite.finviz.com/quote.ashx?t=" + thesymbol
var themarketwatchlink = "http://www.marketwatch.com/investing/stock/" + thesymbol + "/charts"
p = p + ' <a href="' + thefinvizlink + '" style="font-size:2em;color:burlywood"'
p = p + ' target="_blank">f</a> <a href="' + themarketwatchlink + '"'
p = p + ' style="font-size:2em;color:burlywood" target="_blank">m</a>'
thepreview.innerHTML = p
var c = ""
c = c + '<a href="' + therecord.value + '" imageanchor="1">'
c = c + '<img src="' + therecord.value + '" style="width:200px" /></a>'
var theupdaterlink = "http://elite.finviz.com/chart.ashx?t=" + thesymbol + "&ty=c&ta=st_c,sch_200p,sma_50,sma_200,sma_20&p=d&s=l"
c = c + '<a href="' + theupdaterlink + '" imageanchor="1"><img src="' + theupdaterlink + '" style="width:200px" /></a>'
c = c + ' <a href="' + thefinvizlink + '" style="font-size:2em;color:burlywood"'
c = c + ' target="_blank">f</a> <a href="' + themarketwatchlink + '"'
c = c + ' style="font-size:2em;color:burlywood" target="_blank">m</a><br />'
thecode.innerHTML = c}
</script>
*
No comments:
Post a Comment