新浪股票代码
<script type="text/javascript" src="http://hq.sinajs.cn/list=sz000538"></script>
<script> var elements2=hq_str_sz000538.split(","); $(function(){ var dangqjg = (elements2[3]/1).toFixed(2);//当前股价 var ztsp = (elements2[2]/1).toFixed(2);//昨天收盘 var zhang = (dangqjg - ztsp).toFixed(2);//增长 var zhangfu = (zhang/ztsp*100).toFixed(2)+"%";//增幅 if (dangqjg == 0) { $(".gupiao_dqjg").html("停牌"); $(".gupiao_class").removeClass("down").removeClass("up"); }else{ if (zhang <0) { $(".gupiao_class").addClass("down"); }else{ $(".gupiao_class").addClass("up"); } $(".gupiao_dqjg").html(dangqjg); $(".gupiao_zhangfu1").html(zhang); $(".gupiao_zhangfu2").html(zhangfu); } }) </script>
<div class="invest1st"> <div class="invest1stL fl"> <img align="center" src="http://image2.sinajs.cn/newchart/daily/n/sz000538.gif?344075"> </div> <div class="invest1stR fr"> <div class="invest1stTop"> <span class="fl">证券代码:000538</span> <span class="fr">证券简称:云南白药</span> </div> <div class="gupiao_dqjg gupiao_class invest1stCont" > </div> <div class="invest1stTxt"> <span class="gupiao_zhangfu1"></span> <span class="gupiao_zhangfu2"></span> </div> </div> </div>