<input id="atnbg20160901th2315_u" /><br />
<input id="atnbg20160901th2315_w" /><a href="javascript:atnbg20160901th2315()" style="color: pink; font-size: 2em;">get code</a><br />
<div id="atnbg20160901th2315">
</div>
<script>
function atnbg20160901th2315() {
var u = document.getElementById("atnbg20160901th2315_u").value
var w = parseInt(document.getElementById("atnbg20160901th2315_w").value)
var c = chart("<",">",u,w) + '<br />' + chart("<",">",u,w)
document.getElementById("atnbg20160901th2315").innerHTML = c
function chart(ob,cb,url,width) {
var lb = ob + 'a href="' + url + '" imageanchor="1" ' + cb
var ib = ob + 'img border="0" src="' + url + '" style="width:' + width + 'px" /' + cb + ob + "/a" + cb
return lb + ib}
/*
var uu = uub + sym + uut
var s = " ";
var set = chart("<",">",d,180) + chart("<",">",m,180) + chart("<",">",uu,80) + l("<",">",sym)
var chartcode = chart("<",">",d,180) + chart("<",">",m,180) + chart("<",">",uu,80)
var codeset = "<br />" + "<br />" + chartcode + l("<",">",sym)
f.innerHTML = set + codeset
function l(ob,cb,sym) {
var lb = ' ' + ob + 'href="http://elite.finviz.com/quote.ashx?t=' + sym
var lt = '" style="font-size:3em;color:burlywood" target="_blank"' + cb + "f" + ob + '/a' + cb
return lb + lt + '<br />'}
function chart(ob,cb,url,width) {
var lb = ob + 'a href="' + url + '" imageanchor="1" ' + cb
var ib = ob + 'img border="0" src="' + url + '" style="width:' + width + 'px" /' + cb + ob + "/a" + cb
return lb + ib}
function set(ob,cb) {
var ru = document.getElementById("atnbg20160901th1245_i").value;var rua = ru.split("/");var ca = ob + "/a" + cb
var sym = rua[rua.length - 1].split("c")[0];var uub = 'http://elite.finviz.com/chart.ashx?t='
var uut = '&ty=c&ta=st_c,sch_200p,sma_50,sma_200,sma_20&p=d&s=l';var uu = uub + sym + uut;
var lb = 'a href="';var at = '" imageanchor="1" ';var ib = 'img border="0" src="';var it = '" style="width:180px" /';
var fb = 'a href="http://elite.finviz.com/quote.ashx?t=';var ft = '" style="font-size:3em;color:burlywood" target="_blank"'
var r = ob + lb + ru + at + cb + ob + ib + ru + it + cb + ca
var u = ob + lb + uu + at + cb + ob + ib + uu + it + cb + ca
var l = ob + fb + sym + ft + cb + "f" + ca;var s = " "
return r + u + s + l}
*/
}
/*function atnbg20160901th1245() {
var record = document.getElementById("atnbg20160901th1245_i").value
var ra = record.split("/")
var symbol = ra[ra.length - 1].split("c")[0]
var updater = "http://elite.finviz.com/chart.ashx?t="
updater = updater + symbol
updater = updater + "&ty=c&ta=st_c,sch_200p,sma_50,sma_200,sma_20&p=d&s=l"
var code = '<a href="'
code = code + record
code = code + '" imageanchor="1" ><img border="0" src="'
code = code + record
code = code + '" style="width:180px" /></a><a href="'
code = code + updater
code = code + '" imageanchor="1" ><img border="0" src="'
code = code + updater
code = code + '" style="width:180px" /></a> <a href="'
code = code + 'http://elite.finviz.com/quote.ashx?t=' + symbol
code = code + '" style="font-size:3em;color:burlywood" target="_blank">f</a>'
document.getElementById("atnbg20160901th1245").innerHTML = code}*/
/*function atnbg20160901th1245() {
var record = document.getElementById("atnbg20160901th1245_i").value
var ra = record.split("/")
var symbol = ra[ra.length - 1].split("c")[0]
document.getElementById("atnbg20160901th1245").innerHTML = symbol}*/
</script>
No comments:
Post a Comment