<td colspan="8" align="center" height="18" bgcolor="#dfeaf4" width="769"><div id="timer"></div><script type="text/javascript">new lucky28_timer();</script></td>
查看网页源代码,查到这个。可在网页中怎么也查不到lucky28_timer(),百思不得其解,请高手指点。
查看网页源代码,查到这个。可在网页中怎么也查不到lucky28_timer(),百思不得其解,请高手指点。
<body><!--顶部导航开始-->
<div class="head">
<div class="head-top"></div>
<div class="logo"><a href="http://www.doubao.com/">
<img src="/public/images/doubao_v1/logo2010.jpg" border="0" alt="豆包网 看广告 赚豆子 玩游戏 得大奖" /></a></div>
<div class="head-banner">
<a target="_blank" href="http://www.doubao.com/tools/fanli">
<img src="/public/images/doubao_v1/ad/newbanner20100302.gif" border="0" /></a></a></div>
<div class="head-nav">
<ul>
<li><span><a href="/">首页</a></span></li>
<li><span><a href="/adcenter/">赚豆子</a></span></li>
<li><span><a href="/game/" class="now">游戏大厅</a></span></li>
<li><span><a href="/comusers/">拉帮结伙</a></span></li>
<li><span><a href="/tools/fanli">购物返豆</a></span></li>
<li><span><a href="/shop/">兑换奖品</a></span></li>
<li><span><a href="/award/">兑奖名单</a></span></li>
<li><span><a href="/bbs/">论坛</a></span></li>
<li><span><a href="/help/" class="help">会员帮助</a></span></li>
</ul>
</div>
</div>
<!--顶部导航结束--><script type="text/javascript" src="/public/js/jquery.js"></script>
<script type="text/javascript" src="/public/js/json.js"></script>
<script type="text/javascript" src="/public/js/doubao/happy123ajax.js"></script>
<style>
a.third{color:red;}
</style>
<!--页面主体-->
<DIV class=main><!--主体框架用户登录样式-登录后-->
<!--主体框架用户登录样式-登录后-->
<div class="main-userlogin">
<div class="left"><div class="right">
<span>欢迎回来,6382241[<a href="/user/logout">退出</a>]。您尚有 <a href="/bank/">295</a><input type="hidden" id="mycoins" name="mycoins" value="295" /> 颗豆子。</span> 请选择:<a href="/user/baseinfo">个人管理中心</a> | <a href="/user/myad">查看我的广告</a> | <a href="/shop/">我要兑换奖品</a> | <a class="hongbao" href="/tools/q2000">参加新人免费领取500豆子活动</a> </div>
</div>
</div>
<div style=" width:959px; height:24px; line-height:24px; background:url('/public/images/ad/gonggaobg.png') no-repeat top; font-size:12px; text-align:left; padding-left:5px; padding-right:4px; padding-top:4px; padding-bottom:4px">
<div>
<p style="text-align: center;margin:0px;padding:0px;">
<a style="display:block; width:282px; height:23px; float:left; padding-left:35px;" href="http://www.doubao.com/bbs/topic/tid/16744" target="_blank">
<font color="#FF0000">手机赚豆每条888豆子 每天最多15条 间隔10秒</font></a></div>
<div>
<p style="text-align: center;margin:0px;padding:0px;">
<a style="display:block; width:282px; height:23px; float:left; padding-left:39px;" href="#">
<font color="#FF00FF">幸运28和三色豆已经恢复正常</font></a></div>
<div>
<p style="text-align: center;margin:0px;padding:0px;">
<a style="display:block; width:282px; height:23px; float:left; padding-left:39px;" href="http://www.doubao.com/ad/show/aid/143">
<font color="#FF0000">招商个险CPA(步步为赢) 活动上线奖1800豆子</font></font></a></div>
</div> <input type="hidden" id="gameids" value="MTc5MjAyLDE3OTIwMSwxNzkyMDAsMTc5MTk5LDE3OTE5OCwxNzkxOTcsMTc5MTk2LDE3OTE5NSwxNzkxOTQsMTc5MTkzLDE3OTE5MiwxNzkxOTEsMTc5MTkwLDE3OTE4OSwxNzkxODgsMTc5MTg3LDE3OTE4NiwxNzkxODUsMTc5MTg0LDE3OTE4Mw==" />
<DIV class=t-red>
<DIV class=tb style="PADDING-TOP: 15px">
<div class="youxi-leftmenu" style="margin-left:0px;margin-right:0px">
<ul>
<li><a href="/happy123/mine">我的种豆</a></li>
<li><a href="/happy123/help/">玩法帮助</a></li>
<li><a href="/happy123/skill">种豆技巧</a></li>
<li><a href="/happy123/autoinvest">自动种豆</a></li>
<li><a href="/happy123/investmode">种豆模式编辑</a></li>
<li><a href="/happy123/advmode">高级种豆模式</a></li>
<li><a href="http://www.doubao.com/bbs/topic/tid/10665"><font color="#FF0000">手机三色豆</font></a></li>
<li><a href="http://www.doubao.com/sms/"><font color="#FF0000">手机赚豆</font></a></li>
<li><a href="/happy123/history">历史收豆记录</a></li>
</ul>
<div style="text-align:left; margin-left:10px;">
<p><a href="../sms">
</div>
</div><DIV class=youxi-right>
<DIV class=t2-blue>
<DIV class=lt>
<DIV class=rt>
<DIV class=c>
<div class="c">
<div class="tab" style="width: 810px;">
<div class="tab-r">
<div class="tab-l"><a href="/lucky28/list"><img
src="/public/images/doubao_v1/youxi-tab-luck28.gif" alt="幸运28" /></a>
<a href="/happy123/list" class="tab-now">
<img
src="/public/images/doubao_v1/new/youxi-tab-sansedou.gif" alt="快乐三色豆" /></a><a href="/happyauc/show">
<img
src="/public/images/doubao_v1/new/youxi-tab-xyjp.gif" alt="幸运竞拍" /></a><a href="http://www.doubao.com/bbs/topic/tid/15492"><img
src="/public/images/doubao_v1/youxi-tab-310.gif" alt="310竞猜" /></a></div>
</div>
</div><DIV class=youxi-body>
<TABLE cellSpacing=1 cellPadding=0 width=801 bgColor=#73b4d8 border=0>
<TBODY>
<TR>
<TD align=center width=799 bgColor=#dfeaf4 colSpan=9 height=18>
<DIV id=timer></DIV>
<SCRIPT type=text/javascript>new happy123_timer();</SCRIPT>
</TD></TR>
<TR>
<TD class=toptd align=center width=66>期号</TD>
<TD class=toptd align=center width=111>收豆时间</TD>
<TD class=toptd align=center width=88>收豆结果</TD>
<TD class=toptd align=center width=86>已种豆注数</TD>
<TD class=toptd align=center width=102>豆子总数</TD>
<TD class=toptd align=center width=89>收豆人数</TD>
<TD class=toptd align=center width=118>种豆数/收豆数</TD>
<TD class=toptd align=center width=105>种豆子</TD>
<TD class=toptd align=center width=26> </TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179202</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:50</TD>
<TD align=center bgColor=#ffffff width="88">-</TD>
<TD align=center bgColor=#ffffff width="86">0</TD>
<TD align=center bgColor=#ffffff width="102">0 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong>-</strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179202" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/invest/gid/179202">种豆子</a></TD>
<TD align=center bgColor=#FFFFFF width="26">
- </TD>
</TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179201</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:45</TD>
<TD align=center bgColor=#ffffff width="88">-</TD>
<TD align=center bgColor=#ffffff width="86">0</TD>
<TD align=center bgColor=#ffffff width="102">0 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong>-</strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179201" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/invest/gid/179201">种豆子</a></TD>
<TD align=center bgColor=#FFFFFF width="26">
- </TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179200</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:40</TD>
<TD align=center bgColor=#ffffff width="88">-</TD>
<TD align=center bgColor=#ffffff width="86">1118</TD>
<TD align=center bgColor=#ffffff width="102">3442211 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong>-</strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179200" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/invest/gid/179200">种豆子</a></TD>
<TD align=center bgColor=#FFFFFF width="26">
- </TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179199</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:35</TD>
<TD align=center bgColor=#ffffff width="88">7=<img src="/public/images/doubao_v1/happy123/2.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1207</TD>
<TD align=center bgColor=#ffffff width="102">3455499 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179199">412</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179199" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179199">已收豆</a></TD>
<TD align=center bgColor=#FF0000 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179198</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:30</TD>
<TD align=center bgColor=#ffffff width="88">4=<img src="/public/images/doubao_v1/happy123/2.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1221</TD>
<TD align=center bgColor=#ffffff width="102">3452275 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179198">405</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179198" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179198">已收豆</a></TD>
<TD align=center bgColor=#FF0000 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179197</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:25</TD>
<TD align=center bgColor=#ffffff width="88">4=<img src="/public/images/doubao_v1/happy123/2.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1212</TD>
<TD align=center bgColor=#ffffff width="102">3456095 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179197">409</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179197" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179197">已收豆</a></TD>
<TD align=center bgColor=#FF0000 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179196</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:20</TD>
<TD align=center bgColor=#ffffff width="88">2=<img src="/public/images/doubao_v1/happy123/1.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1200</TD>
<TD align=center bgColor=#ffffff width="102">3446956 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179196">401</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179196" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179196">已收豆</a></TD>
<TD align=center bgColor=#64bc00 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179195</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:15</TD>
<TD align=center bgColor=#ffffff width="88">5=<img src="/public/images/doubao_v1/happy123/2.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1211</TD>
<TD align=center bgColor=#ffffff width="102">3585692 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179195">405</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179195" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179195">已收豆</a></TD>
<TD align=center bgColor=#FF0000 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179194</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:10</TD>
<TD align=center bgColor=#ffffff width="88">2=<img src="/public/images/doubao_v1/happy123/1.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1198</TD>
<TD align=center bgColor=#ffffff width="102">3542377 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179194">395</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179194" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179194">已收豆</a></TD>
<TD align=center bgColor=#64bc00 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179193</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:05</TD>
<TD align=center bgColor=#ffffff width="88">8=<img src="/public/images/doubao_v1/happy123/3.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1211</TD>
<TD align=center bgColor=#ffffff width="102">3477134 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179193">402</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179193" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179193">已收豆</a></TD>
<TD align=center bgColor=#FFFF00 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179192</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 14:00</TD>
<TD align=center bgColor=#ffffff width="88">9=<img src="/public/images/doubao_v1/happy123/3.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1205</TD>
<TD align=center bgColor=#ffffff width="102">3465043 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179192">394</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179192" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179192">已收豆</a></TD>
<TD align=center bgColor=#FFFF00 width="26">
</TD>
</TR>
<TR>
<TD align=center bgColor=#dfeaf4 width="66"><span>179191</span></TD>
<TD align=center bgColor=#ffffff width="111">2010-11-26 13:55</TD>
<TD align=center bgColor=#ffffff width="88">3=<img src="/public/images/doubao_v1/happy123/1.gif"></TD>
<TD align=center bgColor=#ffffff width="86">1219</TD>
<TD align=center bgColor=#ffffff width="102">3445132 <img src="/public/images/doubao_v1/douzi2.gif" /></TD>
<TD align=center bgColor=#ffffff width="89"><strong><a href="/happy123/win/gid/179191">404</a></strong></TD>
<TD align=center bgColor=#ffffff id="gameid_179191" width="118">0 / 0</TD>
<TD align=center bgColor=#ffffff width="105"><a href="/happy123/over/gid/179191">已收豆</a></TD>
<TD align=center bgColor=#64bc00 width="26">
</TD>
</TR>
var httprequest=false
if (window.XMLHttpRequest){ // if Mozilla, Safari etc
httprequest=new XMLHttpRequest()
if (httprequest.overrideMimeType)
httprequest.overrideMimeType('text/xml')
}
else if (window.ActiveXObject){ // if IE
try {
httprequest=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e){
try{
httprequest=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){}
}
}
return httprequest
}function happy123_timer(){
this.ajaxobj=createAjaxObj();
//document.write('')
this.getAjaxcontent()
}happy123_timer.prototype.getAjaxcontent=function(){
if (this.ajaxobj){
var instanceOfTicker=thisthis.ajaxobj.onreadystatechange=function(){instanceOfTicker.initialize()}
this.ajaxobj.open('GET', "/happy123/timer?"+Math.random(), true);
this.ajaxobj.send(null)
}
}happy123_timer.prototype.initialize=function(){
if (this.ajaxobj.readyState == 4){ //if request of file completed
if (this.ajaxobj.status==200){ //if request was successful
var xmldata=this.ajaxobj.responseXML;
if(xmldata.getElementsByTagName("period").length==0){
return
}
var instanceOfTicker=this;
this.feeditems=xmldata.getElementsByTagName("timer"); if(this.feeditems.length > 0)
{
try{
this.period = this.feeditems[0].getElementsByTagName("period")[0].firstChild.nodeValue;
this.opentime = this.feeditems[0].getElementsByTagName("opentime")[0].firstChild.nodeValue;
this.time = this.feeditems[0].getElementsByTagName("time")[0].firstChild.nodeValue;
}catch(err){
tickercontent = "<span style=\"color:red;\">游戏暂停运行中,凌晨5点开始运行</span>";
var tickerDiv=document.getElementById('timer');
tickerDiv.innerHTML=tickercontent;
return true;
}
} this.rotatemsg()
}
}
}happy123_timer.prototype.rotatemsg=function(){
var instanceOfTicker=thisvar tickerDiv=document.getElementById('timer')
var remain = this.opentime - this.time;
if((this.opentime - this.time) >= 0)
{
tickercontent = "<span style=\"color:red;\">距离 " + this.period + " 期收豆还有 " + remain + " 秒</span>";
}else{
tickercontent = "<span style=\"color:red;\">第 "+this.period+" 期正在收豆,请刷新页面查看收豆号码。</span>";
tickerDiv.innerHTML=tickercontent;
return true;
}tickerDiv.innerHTML=tickercontent;
if((this.opentime - this.time)<= 0)
{
this.ajaxobj=createAjaxObj();
instanceOfTicker.getAjaxcontent(); }else{
this.time ++;
setTimeout(function(){instanceOfTicker.rotatemsg()}, 1000);
}
}
tickercontent = "<span style=\"color:red;\">距离 " + this.period + " 期收豆还有 " + remain + " 秒</span>";
var httprequest=false
if (window.XMLHttpRequest){ // if Mozilla, Safari etc
httprequest=new XMLHttpRequest()
if (httprequest.overrideMimeType)
httprequest.overrideMimeType('text/xml')
}
else if (window.ActiveXObject){ // if IE
try {
httprequest=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e){
try{
httprequest=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){}
}
}
return httprequest
}function lucky28_timer(){
this.ajaxobj=createAjaxObj();
//document.write('')
this.getAjaxcontent()
}lucky28_timer.prototype.getAjaxcontent=function(){
if (this.ajaxobj){
var instanceOfTicker=thisthis.ajaxobj.onreadystatechange=function(){instanceOfTicker.initialize()}
this.ajaxobj.open('GET', "/lucky28/timer?"+Math.random(), true);
this.ajaxobj.send(null)
}
}lucky28_timer.prototype.initialize=function(){
if (this.ajaxobj.readyState == 4){ //if request of file completed
if (this.ajaxobj.status==200){ //if request was successful
var xmldata=this.ajaxobj.responseXML;
if(xmldata.getElementsByTagName("period").length==0){
return
}
var instanceOfTicker=this;
this.feeditems=xmldata.getElementsByTagName("timer"); if(this.feeditems.length > 0)
{
try{
this.period = this.feeditems[0].getElementsByTagName("period")[0].firstChild.nodeValue;
this.opentime = this.feeditems[0].getElementsByTagName("opentime")[0].firstChild.nodeValue;
this.time = this.feeditems[0].getElementsByTagName("time")[0].firstChild.nodeValue;
}catch(err){
tickercontent = "<span style=\"color:red;\">游戏暂停运行中,凌晨5点开始运行</span>";
var tickerDiv=document.getElementById('timer');
tickerDiv.innerHTML=tickercontent;
return true;
}
} this.rotatemsg()
}
}
}lucky28_timer.prototype.rotatemsg=function(){
var instanceOfTicker=thisvar tickerDiv=document.getElementById('timer')
var remain = this.opentime - this.time;
if((this.opentime - this.time) >= 0)
{
tickercontent = "<span style=\"color:red;\">距离 " + this.period + " 期收豆还有 " + remain + " 秒</span>";
}else{
tickercontent = "<span style=\"color:red;\">第 "+this.period+" 期正在收豆,请刷新页面查看收豆号码。</span>";
tickerDiv.innerHTML=tickercontent;
return true;
}tickerDiv.innerHTML=tickercontent;
if((this.opentime - this.time)<= 0)
{
this.ajaxobj=createAjaxObj();
instanceOfTicker.getAjaxcontent(); }else{
this.time ++;
setTimeout(function(){instanceOfTicker.rotatemsg()}, 1000);
}
}
以上代码块中的this,因为是定义在原型中,所以日后new lucky28_timer后,指的是实例化的lucky28_timer对象。
参照顶楼的代码,只有当页面刷新时,这个对象才会重建。
xsTimer = objDoc.All.Item("timer").innerHTML
有时候能抓到,有时候抓不到,不知道什么原因。