网页源码监控、网页元素监控、延时元素监控的判断使用.....

文档创建者:mutou
浏览次数:11229
最后更新:2015-02-14
以下方法适用于《网站资讯监控工具》、《网站更新监控工具》、《网站关键字监控工具》

监控原则
1、优先使用源码监控方式(软件默认)
2、源码监控失败,改网页元素监控方式
3、仍不行,则设置延时监控




本例监控网易滚动新闻网页http://news.163.com/latest/,通过简单分析发现,此网页使用源代码中找不到新闻列表内容(为避免累述,把源代码帖在二楼)。正好使用这个页面来测试多种监控方法的效果。

一、通常情况下,我们使用默认的网页源码监控方式,这种方式速度最快,效率最高,最省资源,如无特殊情况,尽量使用这种监控方式。

源码监控方式

源码监控方式

点击开始监控,成功打开网页后,查看监控到的当前链接,如下图
QQ截图20150212115037.png
查看当前记录中,并没有新闻列表内容,监控失败。

源码监控历史记录

源码监控历史记录


二、如果网页源码监控方式失败,则改用网页元素监控方式

网页元素监控方式

网页元素监控方式

点击开始监控,成功打开网页后,查看监控到的当前链接
mm5.png
还是没有新闻列表内容,监控失败

三、如果使用网页元素监控方式失败,设置延时3秒监控(延时必须大于网页完全打开的时间)

延时监控

延时监控

点击开始监控,成功打开网页后,查看监控到的当前链接

延时监控历史记录

延时监控历史记录

在当前链接列表中,出现了网页新闻列表中的所有内容,监控成功。



发表评论已发布 1

mutou

发表于 2015-2-14 19:45:41 | 显示全部楼层

newlist.png

附上网页源代码,的确没有新闻列表的内容,有兴趣的朋友研究下。


  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <meta http-equiv="Content-Language" content="zh-CN" />
  6. <meta name="keywords" content="最新新闻,滚动新闻,政治,高层,时政,时评,网易新闻中心">
  7. <meta name="description" content="网易新闻中心最新新闻,滚动新闻,政界,实用新闻,案件事故,媒体评论,深度报道,政策解读,港澳台,时政新闻,热点新闻">
  8. <meta name="author" content="网易" />
  9. <meta name="Copyright" content="网易版权所有" />
  10. <meta name="robots" content="index, follow" />
  11. <meta name="googlebot" content="index, follow" />
  12. <base target="_blank" />
  13. <title>最新滚动新闻_网易新闻中心</title>
  14. <script>if(!/auto|house|home|bbs|blog/.test(location.host)&&!(document.documentElement&&document.documentElement.getAttribute("phone"))&&!/_pc=1/.test(location.search)&&/android.*?mobile|ipod|blackberry|bb\d+|phone/i.test(navigator.userAgent))document.write('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /><div style="position:fixed;width:100%;height:100%;background:#fff"><div style="position:absolute;top:50%;left:0;width:100%;height:40px;margin-top:-40px;text-align:center;background:url([img]http://img1.cache.netease.com/utf8/endpage/image/loading.gif[/img]) no-repeat top center;padding-top:40px;color:#666">页面加载中 ...</div></div><script src="http://img1.cache.netease.com/f2e/system/touchall/collect/foot~15Q3P9V82KiL.js"'+' defer><'+'/script><plaintext style="display:none">');</script>
  15. <script >var _ntes_const={stime : new Date()};</script>
  16. <link href="http://img1.cache.netease.com/cnews/css07/style.css" rel="stylesheet" type="text/css" />
  17. <link href="http://img1.cache.netease.com/cnews/img09/channel_nav.css" rel="stylesheet" type="text/css"/>
  18. <link href="http://img1.cache.netease.com/cnews/img/instant10/style_instant.css" rel="stylesheet" type="text/css" />
  19. </head>
  20. <body>
  21. <script>if(!/auto|house|home|bbs|blog/.test(location.host)&&!(document.documentElement&&document.documentElement.getAttribute("phone"))&&!/_pc=1/.test(location.search)&&/android.*?mobile|ipod|blackberry|bb\d+|phone/i.test(navigator.userAgent))document.write('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /><div style="position:fixed;width:100%;height:100%;background:#fff"><div style="position:absolute;top:50%;left:0;width:100%;height:40px;margin-top:-40px;text-align:center;background:url([img]http://img1.cache.netease.com/utf8/endpage/image/loading.gif[/img]) no-repeat top center;padding-top:40px;color:#666">页面加载中 ...</div></div><script src="http://img1.cache.netease.com/f2e/system/touchall/collect/foot~15Q3P9V82KiL.js"'+' defer><'+'/script><plaintext style="display:none">');</script>
  22. <link type="text/css" rel="stylesheet" media="screen" href="http://img1.cache.netease.com/common/css/common_nav_v1.0.8.css" />
  23. <style>
  24. .NTES-nav-rss, .NTES-nav-wbLogin, .NTES-nav-wbMsg{
  25.         background-image: url([img]http://img1.cache.netease.com/f2e/www/index2014/images/lf_bg_chl_v1.png[/img]);
  26. }
  27. .NTES-nav-wbLogin{
  28.         overflow: hidden;
  29.         text-indent: -9999em;
  30.         margin:5px 2px 0 3px;
  31. }
  32. </style>
  33. <script charset="gb2312" src="http://img1.cache.netease.com/cnews/js/ntes_jslib_1.x.js" language="javascript" type="text/javascript"></script>
  34. <div class="NTES-nav">
  35.         <span class="nav-link NTES-nav-link"><a href="http://www.163.com/">网易首页</a>-<a href="http://news.163.com/">新闻</a>-<a href="http://sports.163.com/">体育</a>-<a href="http://sports.163.com/nba/">NBA</a>-<a href="http://ent.163.com/">娱乐</a>-<a href="http://money.163.com/">财经</a>-<a href="http://money.163.com/stock/">股票</a>-<a href="http://auto.163.com/" id="_link_auto">汽车</a>-<a href="http://tech.163.com/">科技</a>-<a href="http://mobile.163.com/">手机</a>-<a href="http://lady.163.com/">女人</a>-<a href="http://bbs.163.com/">论坛</a>-<a href="http://v.163.com/">视频</a>-<a href="http://www.familydoctor.com.cn/"  rel="nofollow">健康</a>-<a href="http://house.163.com/" id="houseUrl">房产</a>-<a id="homeUrl" href="http://home.163.com/">家居</a>-<a href="http://edu.163.com/">教育</a>-<a href="http://book.163.com/">读书</a>-<a href="http://game.163.com/" id="_link_game">游戏</a>-<a href="http://caipiao.163.com/#from=dh">彩票</a>-<span class="nav-link-item" id="navMore">更多<span class="link-item-more" style="display: none;">
  36.                         <a href="http://baoxian.163.com/car/index.html?from=dh">车险</a><a href="http://digi.163.com/">数码</a><a href="http://war.163.com/">军事</a><a href="http://fashion.163.com/">时尚</a><a href="http://travel.163.com/">旅游</a><a href="http://blog.163.com/?frompagenav">博客</a><a href="http://jiu.163.com">酒香</a>
  37.                 </span></span>|</span>
  38.         <div class="rightCon">
  39.                 <div class="NTES-link code-num">
  40.                         <span class="left"><a href="http://email.163.com/" class="cBlue"  rel="nofollow">免费邮箱</a> - <a href="http://reg.163.com/" class="cBlue"  rel="nofollow">通行证登录</a> | </span><a href="http://www.lofter.com/entry?act=qb163sydl_20140917_03&from=163top" class="NTES-nav-wbLogin"  rel="nofollow">LOFTER</a>
  41.                 </div>
  42.         </div>
  43.         <a href="http://www.163.com/rss" class="NTES-nav-rss"  rel="nofollow">rss</a>
  44. </div>
  45. <script>
  46. //<![CDATA[
  47. NTES.ready( function($){
  48.         $("#navMore").addEvent("click", function(e){
  49.                 NTES($("#navMore .link-item-more")[0]).style.display = this.style.display == "block" ? "none" : "block";
  50.         //        e.preventDefault();
  51.                 e.cancelBubble = true;
  52.                 document.onclick = function(){
  53.                         NTES($("#navMore .link-item-more")[0]).style.display = "none";
  54.                 }
  55.         });
  56.         var P_INFO = NTES.cookie.get("P_INFO");
  57.         var S_INFO = NTES.cookie.get("S_INFO");
  58.         if(P_INFO){
  59.                 var mailconfig = {
  60.                         "163.com":"http://entry.mail.163.com/coremail/fcg/ntesdoor2?verifycookie=1&lightweight=1",
  61.                         "126.com" : "http://entry.mail.126.com/cgi/ntesdoor?verifycookie=1&lightweight=1&style=-1",
  62.                         "vip.126.com" : "http://reg.vip.126.com/enterMail.m",
  63.                         "yeah.net" : "http://entry.yeah.net/cgi/ntesdoor?verifycookie=1&lightweight=1&style=-1",
  64.                         "188" : "http://reg.mail.188.com/servlet/enter",
  65.                         "vip.163.com" : "http://reg.vip.163.com/enterMail.m?enterVip=true-----------"
  66.                 };
  67.                 var passport =  P_INFO.substr(0, P_INFO.indexOf("|"));
  68.                 var username =  passport.substr(0, P_INFO.indexOf("@"));
  69.                 var logstate = P_INFO.split("|")[2];
  70.                 var loginframe = "";
  71.                 var url = "http://www.lofter.com/newNotice.do?email="+passport+"&from=163top&callback=lofterInfoCallback";
  72.                 var pspt = passport.length >= 6 ? passport.substr(0,6)+"…" : passport;
  73.                 /@([^*]+)/.test(passport);
  74.                 var logdomain = RegExp.$1;
  75.                 window.lofterInfoCallback=function(a){window.lofterInfoCount=a}
  76.                 if(P_INFO && S_INFO ) {
  77.                         var entrylink_html = '<a href="http://reg.163.com/Main.jsp?username='+passport+'">进入通行证</a>',
  78.                                 ntes_nav_html = '<div class="NTES-nav-link-chexian"><a href="http://www.163.com/">网易首页</a>-<a href="http://news.163.com/">新闻</a>-<a href="http://sports.163.com/">体育</a>-<a href="http://sports.163.com/nba/">NBA</a>-<a href="http://ent.163.com/">娱乐</a>-<a href="http://money.163.com/">财经</a>-<a href="http://money.163.com/stock/">股票</a>-<a href="http://auto.163.com/" id="_link_auto">汽车</a>-<a href="http://tech.163.com/">科技</a>-<a href="http://mobile.163.com/">手机</a>-<a href="http://lady.163.com/">女人</a>-<a href="http://bbs.163.com/">论坛</a>-<a href="http://v.163.com/">视频</a>-<a href="http://g.163.com/a?CID=13579&Values=505269036&Redirect=http://www.familydoctor.com.cn/">健康</a>-<a href="http://house.163.com/" id="houseUrl">房产</a>-<a id="homeUrl" href="http://home.163.com/">家居</a>-<a href="http://edu.163.com/">教育</a>-<a href="http://book.163.com/">读书</a>-<a href="http://game.163.com/" id="_link_game">游戏</a>|</div>';
  79.                         if(mailconfig[logdomain] != undefined) {
  80.                                 entrylink_html += '<a href="'+mailconfig[logdomain]+'">进入邮箱</a>';
  81.                         }
  82.                         if(logdomain == "popo.163.com" || mailconfig[logdomain] != undefined) {
  83.                                 entrylink_html += '<a href="http://blog.163.com/passportIn.do?entry=163">进入博客</a><a href="http://photo.163.com/?username='+passport+'">进入相册</a>';
  84.                         }
  85.                         entrylink_html += '<a href="http://yuehui.163.com/">进入约会</a><a href="http://www.lofter.com/entry?act=qb163sydl_20140917_03&from=163top">进入乐乎</a><a href="http://caipiao.163.com/#from=dh">进入彩票</a><a href="http://baoxian.163.com/car/index.html?from=dh">进入车险</a><a href="http://baoxian.163.com/#from=dh">进入保险</a><a href="http://mall.163.com/#from=dh">进入商城</a>';
  86.                         if(logdomain == "163.com" || logdomain == "126.com" || logdomain == "yeah.net") {
  87.                                 loginframe = '<iframe allowTransparency="true" style="width:45px; height:20px; float:left; *margin-top:2px; vertical-align: middle;" id="ifrmNtesMailInfo" border="0" src="http://p.mail.163.com/mailinfo/shownewmsg_www_0819.htm" frameBorder="0" scrolling="no"></iframe>';
  88.                         }
  89.                         var login_html = '<div class="ntes-usercenter"><div class="ntes-usercenter-logined"><strong id="ntes_usercenter_name" class="ntes-usercenter-name" title="欢迎你,'+passport+'">'+pspt+'</strong></div><div id="ntes_usercenter_entry" class="ntes-usercenter-entry"><span class="user-entry">'+entrylink_html+'</span></div></div><span class="left c-b3">(</span>'+loginframe+'<span class="left c-b3"> | </span><span id="wbLoginAfter"><a href="http://www.lofter.com/entry?act=qb163sydl_20140917_02&from=163top" class="NTES-nav-wbLogin" style="color:#f6f6f6;" title="进入网易LOFTER">LOFTER</a></span><span class="left c-b3">) | </span><a class="ntes-usercenter-loginout left" href="http://reg.163.com/Logout.jsp?username='+passport+'" target="_self">退出</a></div>';
  90.                         $(".NTES-nav-link")[0].innerHTML = ntes_nav_html;
  91.                         $(".NTES-link")[0].innerHTML = login_html;
  92.                         $("#ntes_usercenter_name").addEvent("click", function(e){
  93.                                 $("#ntes_usercenter_entry").style.display = $("#ntes_usercenter_entry").style.display == "block" ? "none" : "block";
  94.                                 e.preventDefault();
  95.                                 e.cancelBubble = true;
  96.                                 document.onclick = function(){
  97.                                         $("#ntes_usercenter_entry").style.display = "none";
  98.                                 }
  99.                         })
  100.                         NTES.ajax.importJs(url,function(){
  101.                                 if(typeof window.lofterInfoCount != "undefined"){
  102.                                         if (NTES("#wbLoginAfter")) {
  103.                                                 var totalCount = (parseInt(lofterInfoCount) < 100) ? parseInt(lofterInfoCount) : "99+";
  104.                                                 if (totalCount > 0) {
  105.                                                         NTES("#wbLoginAfter").innerHTML = "<a href='http://www.lofter.com/entry?act=qb163sydl_20140917_02&from=163top&logined=true' class='NTES-nav-wbMsg fB' style='color:#000;' title='新消息:"+ totalCount +"'>"+ totalCount +"</a>";
  106.                                                 }else{
  107.                                                         NTES("#wbLoginAfter").innerHTML = "<a href='http://www.lofter.com/entry?act=qb163sydl_20140917_02&from=163top&logined=true' class='NTES-nav-wbLogin' style='color:#f6f6f6;' title='进入网易LOFTER'>LOFTER</a>";
  108.                                                 }
  109.                                         }
  110.                                 }
  111.                         });
  112.                 }
  113.         }
  114. })
  115. //]]>
  116. </script>
  117. <span class="blank12"></span>
  118. <div class="channel">
  119. <h1><a href="http://news.163.com/" name="top"><img src="http://img1.cache.netease.com/cnews/img09/logo_107.gif" alt="网易新闻" width="107" height="24" /><br />网易新闻</a></h1>
  120. <h2><a href="http://news.163.com/latest/"><img src="http://img1.cache.netease.com/cnews/img/instant10/chn_gdxw.png" width="104" height="26" alt="滚动新闻" /></a></h2>
  121. <h3><a href="http://www.163.com/">网易首页</a> > <a href="http://news.163.com/">网易新闻</a> > <a href="http://news.163.com/latest/">滚动新闻</a></h3>
  122. <div class="top_search">
  123. <form target="_blank" id="formtop" name="nisearch_top" method="get" action="http://news.yodao.com/search">
  124. <input type="hidden" value="news.163" name="keyfrom"/>  
  125. <input type="hidden" value="user163" name="suser"/>
  126. <input type="hidden" value="gbk" name="ue"/>
  127. <label><span class="hidden">搜索</span><input type="text" class="textBox" value="请输入关键词" onfocus="this.value=''" id="searchInput_top" name="q"/></label>
  128. <noscript><select name="site" class="left">
  129. <option value="网易" selected="selected">新闻</option>
  130. <option value="">网页</option>
  131. </select></noscript>
  132. <div id="divSelect" class="left">
  133. <input id="siteName" type="hidden" value="网易" name="site" /><div id="select_area" class="select_box"><span id="selected" class="search_site">新闻</span><div id="select_main" class="select_list"><a title="网易">新闻</a><a title="">网页</a></div></div>
  134. </div>  
  135. <input type="submit" class="btn" value="搜索" name="Submit"/><input type="hidden" value="page" id="in" name="in"/>
  136. </form>
  137. </div>
  138. <script type="text/javascript">
  139. //<![CDATA[
  140. (function NTES_Nav(){
  141.         function $_G(id){
  142.                 return document.getElementById(id);
  143.         }
  144.         function clickselect(e){
  145.                 e = e || window.event;
  146.                 e.cancelBubble = true;
  147.                 var name = this.innerHTML;
  148.                 var txt = document.createTextNode(name);
  149.                 selected.removeChild(selected.firstChild);
  150.                 selected.appendChild(txt);
  151.                 select_main.style.display = "none";
  152.                 var title = this.getAttribute("title");
  153.                 $_G("siteName").value = title;
  154.                 if (title == "网易") {
  155.                 document.nisearch_top.action = "http://news.yodao.com/search";
  156.                 }
  157.                 else {document.nisearch_top.action = "http://www.yodao.com/search";
  158.                 }
  159.         }
  160.         function a_mouseover () {
  161.                 this.className = "active";
  162.         }
  163.         function a_mouseout () {
  164.                 this.className = "";
  165.         }
  166.         $_G("divSelect").innerHTML = '<input id="siteName" type="hidden" value="网易" name="site" /><div id="select_area" class="select_box"><span id="selected" class="search_site">新闻</span><div id="select_main" class="select_list"><a title="网易">新闻</a><a title="">网页</a></div></div>';
  167.         var select_area = $_G("select_area"), selected = $_G("selected"), select_main = $_G("select_main"), select_list = select_main.getElementsByTagName("a"), len = select_list.length;
  168.         select_area.onclick = select_main.onmouseover = function(){
  169.                 select_main.style.display = "block";
  170.         }
  171.         select_main.onmouseout = function(){
  172.                 select_main.style.display = "none";
  173.         }
  174.         
  175.         for (var i = 0; i < len; i++) {
  176.                 select_list[i].onclick = clickselect;
  177.                 select_list[i].onmouseover = a_mouseover;
  178.                 select_list[i].onmouseout = a_mouseout;
  179.         }
  180. })();
  181. //]]>
  182. </script>
  183. <div class="top_block">
  184. <span class="cal_holder" id="getCalendar">往期回顾</span>
  185. <div id="calendarBox" class="cal_panel hidden">
  186. <div class="cal_date">
  187. <span class="cal_prev"><a href="" id="prevMonth">上一月</a></span>
  188. <span class="cal_next"><a href="" id="nextMonth">下一月</a></span>
  189. <span id="setYear"></span>年<span id="setMonth"></span>月
  190. </div>
  191. <ul class="cal_title"><li class="endweek">日</li><li>一</li><li>二</li><li>三</li><li>四</li><li>五</li><li class="endweek">六</li></ul>
  192. <ul class="cal_list" id="calendarList"></ul>
  193. </div>
  194. </div>
  195. <div class="top_block">
  196. <a href="http://news.163.com/rollnews/">旧版入口</a>
  197. </div>
  198. </div>
  199. <div class="nav_channel" style="height:32px; overflow:hidden;">
  200. <ul class="nav_main">
  201. <li><a href="http://www.163.com/">首页</a></li>
  202. <li><a href="http://news.163.com/latest/">最新</a></li>
  203. <li><a href="http://news.163.com/rank/">排行</a></li>
  204. <li><a href="http://news.163.com/domestic/">国内</a></li>
  205. <li><a href="http://news.163.com/world/">国际</a></li>
  206. <li><a href="http://news.163.com/shehui/">社会</a></li>
  207. <li><a href="http://news.163.com/review/">评论</a></li>
  208. <li><a href="http://focus.news.163.com/">深度</a></li>
  209. <li><a href="http://war.news.163.com/">军事</a></li>
  210. <li><a href="http://history.news.163.com/">历史</a></li>
  211. <li><a href="http://discovery.163.com/">探索</a></li>
  212. <li><a href="http://news.163.com/photo/">图片</a></li>
  213. <li><a href="http://blog.163.com/">博客</a></li>
  214. <li><a href="http://bbs.163.com/">论坛</a></li>
  215. <li><a href="http://v.163.com/news/">视频</a></li>
  216. <li><a href="http://gongyi.163.com/">公益</a></li>
  217. <li><a href="http://media.163.com/">媒体</a></li>
  218. <li><a href="http://expo.163.com/">世博</a></li>
  219. <li><a href="http://chuangye.163.com/">阳光创业</a></li>
  220. </ul>
  221. <span class="nav_right"><a href="http://help.3g.163.com/" class="icon_mobile">手机版</a></span>
  222. </div>
  223. <span class="blank9"></span>
  224. <div class="area bg_1">
  225. <span class="bg_line"></span>
  226. <div class="col_side">
  227. <div class="box_ctg">
  228. <h2>分类列表</h2>
  229. <ul id="instantHolder"></ul>
  230. </div>
  231. <span class="blank20"></span>
  232. </div>
  233. <div class="col_main">
  234. <span class="blank9"></span>
  235. <div class="bar_ctrls cDGray">
  236. <span class="bar_ctrls_block"><span class="left">条数:</span><ul class="left" id="instantSize"><li>10条</li><li>40条</li><li>80条</li></ul></span>
  237. <span class="bar_ctrls_block"><span class="left">刷新间隔:</span><ul class="left" id="instantInterval"><li>60秒</li><li>120秒</li><li>300秒</li></ul></span>
  238. <span class="bar_ctrls_block"><span class="btn_check btn_checked"><span class="fB cDRed" id="remain">000</span> 秒后刷新</span></span>
  239. <span class="bar_ctrls_block"><button type="button" class="btn_manual" id="manual"></button></span>
  240. </div>
  241. <span class="blank15"></span>
  242. <span class="hr_dot"></span>
  243. <div id="instantPanel"></div>
  244. </div>
  245. <span class="bg_line"></span>
  246. </div>
  247. <span class="loading hidden" id="loading">页面加载中…</span>
  248. <div id="templates" class="hidden">
  249. <div title="calendar">
  250. <!--
  251. <#
  252. var href;
  253. for(var i = 0, j; i < calendar.weeks.length; i++){
  254.         for(j = 0; j < 7; j++){
  255. #>
  256. <li>
  257. <#
  258.                 if(calendar.weeks[i][j].value){
  259.                         if(calendar.weeks[i][j].state > 0 || calendar.year < 2010 || (calendar.year == 2010 && calendar.month < 5) || (calendar.year == 2010 && calendar.month == 5 && calendar.weeks[i][j].value < 24)){
  260. #>
  261. <#=calendar.weeks[i][j].value#>
  262. <#
  263.                         } else {
  264.                                 if(calendar.weeks[i][j].state == 0){ href = "http://news.163.com/special/0001220O/news_json.js";} else { href = String.format("http://snapshot.news.163.com/wgethtml/http+!!news.163.com!special!0001220O!news_json.js/%1-%2/%3/0.js", calendar.year, ("0" + calendar.month).slice(-2), ("0" + calendar.weeks[i][j].value).slice(-2));}
  265.                             if(curUrl == href){
  266. #>
  267. <span class="current"><#=calendar.weeks[i][j].value#></span>
  268. <#
  269.                                 } else {
  270. #>
  271. <a href="<#=href#>" <# if(calendar.weeks[i][j].state == 0){ #>class="now"<# } #>><#=calendar.weeks[i][j].value#></a>
  272. <#
  273.                                 }
  274.                         }
  275.                 }
  276. #>
  277. </li>
  278. <#
  279.         }
  280. }
  281. #>
  282. -->
  283. </div>
  284. <div title="panel">
  285. <!--
  286. <div class="cnt">
  287. <span class="blank15"></span>
  288. <ul class="list_txt">
  289. <#
  290. for(var i = 0, len = list.length; i < len; i++){
  291. if(i % 5 == 0 && i != 0){
  292. #>
  293. </ul>
  294. <span class="blank15"></span>
  295. </div>
  296. <span class="hr_dot"></span>
  297. <div class="cnt">
  298. <span class="blank15"></span>
  299. <ul class="list_txt">
  300. <#
  301. }
  302. #>
  303. <li><span class="right f12px cDGray">(<#=list[i].p#>)</span><a href="<#=category[list[i].c].l#>" class="cBlue">[<#=category[list[i].c].n#>]</a> <a href="<#=list[i].l#>"><#=list[i].t#></a></li>
  304. <#
  305. }
  306. #>
  307. </ul>
  308. <span class="blank15"></span>
  309. </div>
  310. <span class="hr_dot"></span>
  311. <span class="blank15"></span>
  312. <div class="bar_pages">
  313. <#
  314. if(page <= 1){
  315. #>
  316. <span class="bar_pages_flip">上一页</span>
  317. <#
  318. } else {
  319. #>
  320. <a href="#page=<#=page-1#>" class="bar_pages_flip">上一页</a>
  321. <#
  322. }
  323. var before = true, behind = true;
  324. for(var i = 1; i <= total; i++){
  325. if((page <= 5 && i <= 7) || (page > 5 && page <= total - 5 && i > page - 3 && i < page + 3) || (page > total - 5 && i > total - 7) || i == 1 || i == total){
  326. if(page == i){
  327. #>
  328. <span class="active"><#=i#></span>
  329. <#
  330. } else {
  331. #>
  332. <a href="#page=<#=i#>"><#=i#></a>
  333. <#
  334. }
  335. } else {
  336. if(before && i < page){
  337. #>
  338. ……
  339. <#
  340. before = false;
  341. }
  342. if(behind && i > page){
  343. #>
  344. ……
  345. <#
  346. behind = false;
  347. }
  348. }
  349. }
  350. if(page >= total){
  351. #>
  352. <span class="bar_pages_flip">下一页</span>
  353. <#
  354. } else {
  355. #>
  356. <a href="#page=<#=page+1#>" class="bar_pages_flip">下一页</a>
  357. <#
  358. }
  359. #>
  360. </div>
  361. <span class="blank15"></span>
  362. -->
  363. </div>
  364. </div>
  365. <script type="text/javascript" language="javascript" src="http://img1.cache.netease.com/cnews/js/ntes_jslib_1.x.js" charset="gb2312"></script>
  366. <script type="text/javascript" language="javascript" src="http://img1.cache.netease.com/cnews/js/ntes_jslib_ui_0.x.js" charset="gb2312"></script>
  367. <script type="text/javascript" src="http://img1.cache.netease.com/cnews/img/instant10/instantNews.js"></script>
  368. <span class="blank9"></span>
  369. <style type="text/css">
  370. .channel-end,.channelEnd-rightS,.channelEnd-link,.channelEnd-top {background:url([img]http://img3.cache.netease.com/cnews/img09/endnav_bg1001.jpg[/img]);}
  371. .channel-end {width:960px;height:37px;overflow:hidden;margin:10px auto 0;line-height:38px;background-position:left -67px;background-repeat:repeat;}
  372. .channelEnd-rightS {display:block;float:right;width:8px;height:37px;overflow:hidden;background-position:right -141px;background-repeat:no-repeat;}
  373. .channelEnd-link {float:left;height:37px;line-height:37px;overflow:hidden;color:#1E50A2;background-position:left -30px;background-repeat:no-repeat;}
  374. .channelEnd-link a {float:none;padding:0 5px;font-weight:normal;background:none;}
  375. .channelEnd-link .firstNode {margin-left:8px; background:none;}
  376. .channelEnd-top {display:block;float:right;width:80px;height:37px;overflow:hidden;line-height:37px;text-indent:10px;background-position:left -30px;background-repeat:no-repeat;}
  377. </style>
  378. <div class="channel-end">
  379.         <span class="channelEnd-link cBlue">
  380.             <a class="firstNode" href="http://www.163.com/" rel="nofollow">网易首页</a>-<a href="http://news.163.com/" rel="nofollow">新闻</a>-<a href="http://sports.163.com/" rel="nofollow">体育</a>-<a href="http://ent.163.com/" rel="nofollow">娱乐</a>-<a href="http://money.163.com/" rel="nofollow">财经</a>-<a href="http://auto.163.com/" rel="nofollow">汽车</a>-<a href="http://tech.163.com" rel="nofollow">科技</a>-<a href="http://digi.163.com/" rel="nofollow">数码</a>-<a href="http://mobile.163.com/" rel="nofollow">手机</a>-<a href="http://lady.163.com/" rel="nofollow">女人</a>-<a href="http://house.163.com/" rel="nofollow">房产</a>-<a href="http://game.163.com/" rel="nofollow">游戏</a>-<a href="http://book.163.com/" rel="nofollow">读书</a>-<a href="http://edu.163.com/" rel="nofollow">教育</a>-<a href="http://travel.163.com/" rel="nofollow">旅游</a>-<a href="http://bbs.163.com/" rel="nofollow">论坛</a>-<a href="http://v.163.com/" rel="nofollow">视频</a>-<a href="http://blog.163.com/blogs/" rel="nofollow">博客</a>-<a href="http://t.163.com/" rel="nofollow">微博</a>-<a href="http://help.3g.163.com/" rel="nofollow">手机版</a>
  381.     </span>
  382.     <span class="channelEnd-rightS"></span>
  383.     <span class="channelEnd-top cBlue"><a href="#top" target="_self" rel="nofollow">返回顶部&uarr;</a></span>
  384. </div><span class="blank12"></span>
  385. <div class="foot">
  386. <div class="text"><a href="http://www.bjjubao.org/index.htm">北京互联网违法不良信息举报</a> <a href="http://www.163.com/special/0077450P/feedback_window.html">意见反馈</a> <a href="http://news.163.com/sitemap.html">新闻地图</a> </div>
  387. <a href="http://corp.163.com/">About NetEase</a> - <a href="http://gb.corp.163.com/gb/about/overview.html">公司简介</a> - <a href="http://gb.corp.163.com/gb/contactus.html">联系方法</a> - <a href="http://corp.163.com/gb/job/job.html">招聘信息</a> - <a href="http://help.163.com/ ">客户服务</a> - <a href="http://gb.corp.163.com/gb/legal.html">隐私政策</a> - <a href="http://emarketing.biz.163.com/">网络营销</a> - <a href="http://sitemap.163.com/">网站地图</a><br />
  388. 网易公司版权所有<br />

  389. <span class="cRed">&copy;1997-2015</span>
  390. </div>
  391. <!-- 弹窗代码 -->
  392. <!-- 代码 -->

  393. <!-- 即时消息 -->
  394. <script>
  395. (function(){        
  396.         var version = window.navigator.appVersion;
  397.         var isIE6 = (version.indexOf("MSIE 6.0") != -1 || version.indexOf("MSIE 5.5") != -1)? true:false;
  398.         if(location.hostname.indexOf("news") == -1){   
  399.            showQR(460, "http://img2.cache.netease.com/news/2013/newapp5.jpg");
  400.         }
  401.         function showQR(top, imgUrl){
  402.                 var QRbox= document.createElement("div");
  403.                 var QRboxCSS ={
  404.                         'width': "110px",
  405.                         'height': "147px",
  406.                         'position': "fixed",
  407.                         '_position': "absolute",
  408.                         'top': top + "px",
  409.                         'right': "3px",
  410.                         'display':"block",
  411.                         'zIndex':100
  412.                 };
  413.                 for(var key in QRboxCSS){
  414.                         QRbox.style[key] = QRboxCSS[key];
  415.                 }
  416.                  if(isIE6){
  417.                          QRbox.style.position = "absolute";
  418.                  }
  419.                  
  420.                 QRbox.innerHTML="<a href='http://3g.163.com/links/4102' target='_blank'></a>";
  421.                 var link =QRbox.getElementsByTagName("a")[0];
  422.                 var linkCSS = {
  423.                         display:"block",
  424.                         width: "100%",
  425.                         height: "100%",
  426.                         backgroundImage: "url("+imgUrl+")",
  427.                         backgroundPosition: "0px 0px"
  428.                 };
  429.                 for(var key in linkCSS){
  430.                         link.style[key] = linkCSS[key]
  431.                 }
  432.                 document.body.appendChild(QRbox);
  433.                 var linkEventMap = {
  434.                         "mouseover": function(){
  435.                                 link.style.backgroundPosition = "-110px 0px";
  436.                         },
  437.                         "mouseout": function(){
  438.                                 link.style.backgroundPosition = "0px 0px";
  439.                         }
  440.                 }
  441.                 for(var evt in linkEventMap){
  442.                         var func = linkEventMap[evt];
  443.                         addEvent(evt, link, func);
  444.                 }
  445.                 addEvent("scroll", window, function(){
  446.                         if(isIE6){
  447.                                 QRbox.style.top = getScrollTop() + top + "px";
  448.                         }
  449.                 })
  450.         }
  451.         function addEvent(evt, elem, callback){
  452.                 if(elem.addEventListener){
  453.                         elem.addEventListener(evt, callback, false)
  454.                 } else {
  455.                         elem.attachEvent && elem.attachEvent("on"+evt, callback);
  456.                 }
  457.         }
  458.         function getScrollTop(){
  459.             if(typeof pageYOffset!= 'undefined'){
  460.                 //most browsers
  461.                 return pageYOffset;
  462.             }
  463.             else{
  464.                 var B= document.body; //IE 'quirks'
  465.                 var D= document.documentElement; //IE with doctype
  466.                 D= (D.clientHeight)? D: B;
  467.                 return D.scrollTop;
  468.             }
  469.         }
  470. })();
  471. (function(){function e(e,n,r,i){var r=r||500,s=i||function(){},o,u=parseInt(t(e,"height"),10);e.toggled?o=e.originalHeight:(o=u,e.originalHeight=o);var a=Math.round(r/o);n=="show"&&(e.style.height="0"),e.style.display="block",e.toggled=!0;var f=o;for(var l=f;l>=0;l--)(function(t){var r=n=="show"?t*a:(f-t)*a;setTimeout(function(){(t==0&&n=="hide"||t==f&&n=="show")&&s(),e.style.height=t+"px";var r=t/f;e.style.opacity=r,e.style.filter="alpha(opacity="+r*100+")"},r)})(l)}function t(e,t){if(e.style[t])return e.style[t];if(e.currentStyle)return e.currentStyle[t];if(document.defaultView&&document.defaultView.getComputedStyle){t=t.replace(/([A-Z])/g,"-$1"),t=t.toLowerCase();var n=document.defaultView.getComputedStyle(e,"");return n&&n.getPropertyValue(t)}return null}function n(e,t,n){var r=function(e,t){try{return e.contains?e!=t&&e.contains(t):!!(e.compareDocumentPosition(t)&16)}catch(n){}},i=function(e){var t=e.currentTarget,i=e.relatedTarget;!r(t,i)&&t!=i&&n.call(e.currentTarget,e)};e.addEventListener?t=="mouseenter"?e.addEventListener("mouseover",i,!1):t=="mouseleave"?e.addEventListener("mouseout",i,!1):e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(t){var r=this;r.cfg=t;var i=function(){n(r.cfg.closeBtn,"click",function(){r.close()}),n(r.cfg.wrap,"mouseenter",function(){r._timingClose("stop")}),n(r.cfg.wrap,"mouseleave",function(){r._timingClose("start",3)}),n(window,"focus",function(){r._pollStop=!1}),n(window,"blur",function(){r._pollStop=!0}),window[r.cfg.pollCallback]=r._push,window[r.cfg.contentCallback]=r._fillContent,r.start()},s=function(e,t){var n="popush_scriptloader";document.getElementById(n)!==null&&document.body.removeChild(document.getElementById(n));var i=document.createElement("script");i.id=n,i.type="text/javascript",i.async=!0,i.src=r.cfg.preventCache?e+"?"+Math.round(Math.random()*1e10):e,i.onload=t||function(){return!1},document.body.appendChild(i)},o=function(){var e=location.host.split(".").reverse()[2],t="?id="+r.cfg.id+"&cname="+e+"&rnd="+Math.round(Math.random()*1e10);(new Image).src=(r.cfg.countUrl||"count.php")+t};r._getDisplayState=function(){return!r._state||r._state=="hide"?"hide":"show"},r._display=function(t){if(r._getDisplayState()==t)return!1;e(r.cfg.contentWrap,t),r._state=t},r._timingClose=function(e,t){if(r._getDisplayState()=="hide")return!1;var t=t||r.cfg.hideAfter;e=="start"?r._closeTimer=setTimeout(function(){r._display("hide")},t*1e3):e=="stop"&&typeof r._closeTimer!="undefined"&&clearTimeout(r._closeTimer)},r.close=function(){if(!-[1,]&&!window.XMLHttpRequest){r.cfg.wrap.style.display="none";return !1;}r._getDisplayState()=="show"?r._display("hide"):r.cfg.wrap.style.display="none"},r._fillContent=function(e){r.contentCache=e,r.cfg.contentWrap.innerHTML=e,r._display("show"),r._timingClose("start")},r.manualShow=function(){if(r._getDisplayState()=="show")return!1;r.contentCache?r._fillContent(r.contentCache):s(r.cfg.contentUrl)},r._push=function(e){var t=Math.round((new Date).valueOf()/1e3),n=parseInt(e,10),i=t-n,u=NTES.cookie.get("PopPushData");if(u==n)return!1;if(r.cfg.oldTime&&i>r.cfg.oldTime)return!1;s(r.cfg.contentUrl),NTES.cookie.set("PopPushData",e,"30m",".163.com","/"),o()},r._poll=function(){r._pollStop||s(r.cfg.pollUrl)},r.start=function(){r._pollStop=!1,r._poll(),window.setInterval(r._poll,r.cfg.pollCycle*1e3)},i()}window.PopPush=r})()
  472. </script>
  473. <style type="text/css">
  474. #instant-news{width:300px;position:fixed;left:40px;bottom:0;z-index:100;
  475. _position: absolute;
  476. _top: expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-172));
  477. }
  478. #instant-news-close{color:#B2b2b5;font-size:24px;font-weight:400;position:absolute;top:3px;right:4px;text-align:center;cursor:pointer;margin:0;padding:0;_display:none;}
  479. #instant-news-content{height:210px;padding:0;overflow:hidden;display:none;}
  480. </style>
  481. <div id="instant-news"><div id="instant-news-close">×</div><div id="instant-news-content"></div></div>
  482. <script>
  483. var wholeSiteNewsPushBgImgObj = new Image();wholeSiteNewsPushBgImgObj.src="http://img1.cache.netease.com/news/img14/wsw/bg-3.png";
  484. (function(N){
  485.     var t = N.cookie.get("PopPushData");
  486.     if(t && t != "") N.cookie.set("PopPushData", parseInt(t, 10), "30m", ".163.com", "/");
  487. })(window.NTES);
  488. var instant_news_push = new PopPush({
  489.     id: "instantnews",
  490.     wrap: document.getElementById('instant-news'),
  491.     contentWrap: document.getElementById('instant-news-content'),
  492.     closeBtn: document.getElementById('instant-news-close'),
  493.     pollUrl: "http://www.163.com/special/0077450P/hot_pop_js.js",
  494.     pollCallback: "latestInstantNews",
  495.     contentUrl: "http://temp.163.com/special/00804IKG/instant_news_content_cb.js",
  496.     contentCallback: "instantNewsContent",
  497.     pollCycle: 120,
  498.     hideAfter: 30,
  499.     oldTime: 7200,
  500.     countUrl: "http://temp.163.com/special/hot_pop_content/",
  501.     preventCache: false
  502. });
  503. </script>
  504. <!-- START WRating v1.0 -->
  505. <script type="text/javascript" src="http://img6.cache.netease.com/common/script/wrating.js"></script>
  506. <script type="text/javascript">
  507. var vjAcc="860010-0502010100";
  508. var wrUrl="http://163.wrating.com/";
  509. vjTrack();
  510. </script>
  511. <noscript><img src="http://163.wrating.com/a.gif?c=860010-0502010100" width="1" height="1"/></noscript>
  512. <!-- END WRating v1.0 -->
  513. <!-- START NetEase Analytics 2006 -->
  514.     <script src="http://analytics.163.com/ntes.js" type="text/javascript"></script>
  515.     <script language="javascript" type="text/javascript">
  516.     _ntes_nacc = "news"; //站点ID。
  517.     neteaseTracker();
  518.     </script>
  519. <!-- END NetEase Analytics 2006 -->
  520. <!-- big data statistics -->

  521. <!-- big data analysis -->
  522. <script src="http://img1.cache.netease.com/f2e/products/analysis/js/analysis.350ctAoOoFtN.11.js"></script>
  523. <!-- 滚动新闻 -->
  524. <!-- minG -->
  525. <!-- 浏览器升级 -->
  526. <script type="text/javascript" src="http://img1.cache.netease.com/2012/ieupdate/update_funcs_v1_1.js" charset="gbk"></script><script type="text/javascript">
  527. //__ieUpdate();
  528. __f2e_monitor("news");
  529. </script>
  530. </body>
  531. </html>
复制代码
您需要登录后才可以回帖 登录 | 现在注册

本版积分规则

返回顶部 返回列表