Discuz.Web/space/modules/stock.xml
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="沪深股市行情" directory_title="沪深股市行情" description="沪深股市行情" category="工具" author="Discuz!NT" author_email="jiayanzhao@comsenz.com" author_affiliation="Discuz!NT Space" author_location="Beijing, HaiDian, China" screenshot="" thumbnail="" scaling="false" render_inline="optional" author_photo="" author_aboutme="Discuz!NT Space Module" author_link="http://nt.discuz.net/" author_quote="good products ,good quality" singleton="true">
<Require feature="dynamic-height" />
<Require feature="setprefs" />
</ModulePrefs>
<UserPref name="mystocks" display_name="股票代码" datatype="list" default_value="" />
<Content type="html">
<![CDATA[
<table id="pricetable" style="font-size: 12px;" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#000" style="color:#0ff">
<td align="center"><nobr> 代码 </nobr></td>
<td align="right"><nobr> 价格</nobr></td>
<td align="right"><nobr> 涨跌额</nobr></td>
<td align="right"><nobr> 涨跌幅</nobr></td>
<td align="right"><nobr> 成交量</nobr></td>
</tr>
</table>
<script type="text/javascript">
function createPriceTable()
{
var table = _gel("pricetable");
for (var i = table.rows.length-1; i > 0; i --)
table.deleteRow(i);
_DS_AdjustIFrameHeight();
}
function getPrice()
{
var now = new Date();
if (!dataInitialed || now.getUTCHours() >= 1 && now.getUTCHours() < 8
&& now.getUTCDay() >=1 && now.getUTCDay() <=5)
{
sourceURL = sourceURL.substring(0, sourceURL.indexOf("Time") + 5 ) + now.valueOf();
_DS_FetchContent(sourceURL, setTable, {"encoding":"gb2312"});
}
}
function getSourceURL()
{
var sourceURL = "http://hq.sinajs.cn/list=";
var newStockList = "";
sinaStockList = new Array(stockList.length);
var j = 0;
for (var i = 0; i < stockList.length ; i++)
{
var stockSymbol = stockList[i];
var sinaSymbol = checkStockSymbol(stockSymbol);
if (sinaSymbol == "")
{
alert("无效的股票代码: " + stockSymbol);
}
else
{
sinaStockList[j] = sinaSymbol;
j ++;
后面还有 364 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
