CINXE.COM
科学网—关于积分金币活跃度等几项数值的说明 - 科学网编辑部的博文
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk" /> <title>科学网—关于积分金币活跃度等几项数值的说明 - 科学网编辑部的博文</title> <meta name="keywords" content="学者" /> <meta name="description" content="尊敬的博主: &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 您在登陆后看到的积分、金币、活跃度等数值,是基于旧版论坛发贴所获积分而得出,为科学网新社区系 ... ,科学网" /> <meta name="generator" content="Discuz! X3.3" /> <meta name="author" content="Discuz! Team and Comsenz UI Team" /> <meta name="copyright" content="2001-2017 Comsenz Inc." /> <meta name="MSSmartTagsPreventParsing" content="True" /> <meta http-equiv="MSThemeCompatible" content="Yes" /> <base href="https://blog.sciencenet.cn/" /><link rel="stylesheet" type="text/css" href="data/cache/style_1_common.css?qw2" /><link rel="stylesheet" type="text/css" href="data/cache/style_1_home_space.css?qw2" /><link rel="stylesheet" id="css_extstyle" type="text/css" href="./template/default/style/t1/style.css" /><script type="text/javascript">var STYLEID = '1', STATICURL = 'static/', IMGDIR = 'static/image/common', VERHASH = 'qw2', charset = 'gbk', discuz_uid = '0', cookiepre = 'WUAe_5e15_', cookiedomain = 'sciencenet.cn', cookiepath = '/', showusercard = '1', attackevasive = '0', disallowfloat = 'newthread', creditnotice = '', defaultstyle = './template/default/style/t1', REPORTURL = 'aHR0cDovL2Jsb2cuc2NpZW5jZW5ldC5jbi8vYmxvZy00NS00MDUxODkuaHRtbA==', SITEURL = 'https://blog.sciencenet.cn/', JSPATH = 'static/js/', CSSPATH = 'data/cache/style_', DYNAMICURL = '';</script> <script src="static/blog/js/jquery-1.8.3.min.js" type="text/javascript"></script> <script src="static/js/common.js?qw2" type="text/javascript"></script> <script src="static/js/home.js?qw2" type="text/javascript"></script> <script type="text/javascript"> <!-- function browserRedirect() { var sUserAgent= navigator.userAgent.toLowerCase(); var bIsIpad= sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp= sUserAgent.match(/midp/i) == "midp"; var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid= sUserAgent.match(/android/i) == "android"; var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile"; if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) { document.write("<div style='padding-left:4em'><a href=\"http://wap.sciencenet.cn/blog-45-405189.html?mobile=1\" style='font-size:2em;color:#ba1413;line-height:2em;text-indent:4em'>点击此处切换为手机版网页</a></div>"); } else { //window.location= '电脑网站地址'; } } browserRedirect(); /* function operate() { setTimeout("disappeare()",10000); } function disappeare(){ document.getElementById('tishi').style.display = "none"; } operate(); */ //--> </script> <link rel="stylesheet" type="text/css" href="data/cache/style_1_css_space.css?qw2" /> <link id="style_css" rel="stylesheet" type="text/css" href="static/space/t20/style.css?qw2"> <style id="diy_style">body {background-repeat:repeat !important;}</style> </head> <body id="space" onkeydown="if(event.keyCode==27) return false;"><!--onLoad="viewpage(1, 405189)"--> <div id="append_parent"></div> <div id="ajaxwaitid"></div> <div class="topnav cl"> <p class="y navinf"> <a href="member.php?mod=register">注册</a> <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href);hideWindow('register');">登录</a> </p> <ul class="cl"> <li class="navlogo"><a href="http://blog.sciencenet.cn/blog.php" title="构建全球华人科学博客圈">构建全球华人科学博客圈</a></li> <!--返回首页--> <li><span id="navs" class="xg1 showmenu" onMouseOver="showMenu(this.id);"><a href="http://www.sciencenet.cn/">返回首页</a></span></li> <li><span id="wbnavs" class="xg1"><a href="http://blog.sciencenet.cn/home.php?mod=follow">微博</a></span></li><!--add by 7u5--> <li><span id="navs" class="xg1"><a href="https://blog.sciencenet.cn/rss.php?uid=45">RSS订阅</a></span></li> <li><span id="navs" class="xg1"><a href="http://blog.sciencenet.cn/misc.php?mod=faq">帮助</a></span></li> </ul> </div> <div id="hd" class="wp cl"> <h2 id="spaceinfoshow"> <!--个人博客名称--> <strong id="spacename" class="mbn" > 分享办博苦乐 倾听博友意见<a class="oshr xs1 xw0" onClick="showWindow(this.id, this.href, 'get', 0);" id="share_space" href="home.php?mod=spacecp&ac=share&type=space&id=45">分享</a></strong> <a id="domainurl" href="http://blog.sciencenet.cn/u/科学网编辑部" onClick="javascript:setCopy('http://blog.sciencenet.cn/u/科学网编辑部', '博客地址复制成功');return false;" class="xs0 xw0">http://blog.sciencenet.cn/u/科学网编辑部</a> <span id="spacedescription" class="xs1 xw0 mtn" >编辑部地址:北京市海淀区中关村南一条乙三号 </span> </h2> <div id="nv"> <ul> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45">博客首页</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=home&view=me&from=space">动态</a></li> <!--add by 7u5--> <!--<li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=doing&view=me&from=space">记录</a></li>--> <!--li><a href="https://blog.sciencenet.cn/home.php?mod=follow&uid=45&do=view&type=profile">微博</a></li--> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=blog&view=me&from=space">博文</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=video&view=view&from=space">视频</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=album&view=me&from=space">相册</a></li> <!--li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=thread&view=me&from=space">主题</a></li--> <!--li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=share&view=me&from=space">分享</a></li--> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=friend&view=me&from=space">好友</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=wall">留言板</a></li> <!--设置只有管理员能看到个人资料页--> <!-- <li style="display:none"><!––><a id="academic" href="javascript:;" onClick="showWindow(this.id, 'broadcast.php?op=academic&uid=45&username=科学网编辑部', 'get', -1);return false;"><!––>学术名片</a></li>--> </ul> </div> </div> <div class="p_pop h_pop" id="mn_userapp_menu" style="display: none"></div> <ul id="navs_menu" class="p_pop topnav_pop" style="display:none;"> <li id="mn_N59f6" ><a href="http://www.sciencenet.cn/" hidefocus="true" >首页</a></li> <li id="mn_N3b56" ><a href="http://news.sciencenet.cn/" hidefocus="true" >新闻</a></li> <li id="mn_Nd081" ><a href="http://blog.sciencenet.cn/blog.php" hidefocus="true" >博客</a></li> <li id="mn_N968f" ><a href="http://talent.sciencenet.cn/" hidefocus="true" >人才</a></li> <li id="mn_N9d75" ><a href="http://meeting.sciencenet.cn/" hidefocus="true" >会议</a></li> <li id="mn_N1867" ><a href="http://fund.sciencenet.cn/" hidefocus="true" >基金</a></li> <li id="mn_Nec23" ><a href="http://paper.sciencenet.cn/" hidefocus="true" >论文</a></li> <li id="mn_Nc1d1" ><a href="http://video.sciencenet.cn/" hidefocus="true" >视频</a></li> <li id="mn_Nffd8" ><a href="http://paper.sciencenet.cn/AInews" hidefocus="true" >小柯机器人</a></li> <li id="mn_home_13" ><a href="https://blog.sciencenet.cn/home.php?mod=space&do=album" hidefocus="true" title="Album" >相册<span>Album</span></a></li> <li id="mn_N0a2c" ><a href="misc.php?mod=faq" hidefocus="true" title="Help" >帮助<span>Help</span></a></li> </ul> <!--add by 7u5--><ul id="wbnavs_menu" class="p_pop topnav_pop" style="display:none;"> <!--<li id="mn_N59f9"><a href="http://weibo.sciencenet.cn" hidefocus="true">微博</a></li>--> <li id="mn_N59g9"><a href="http://weibo.sciencenet.cn/?&act=follower" hidefocus="true">粉丝</a></li> <li id="mn_N59g9"><a href="http://weibo.sciencenet.cn/?&act=comments" hidefocus="true">评论</a></li> <li id="mn_N59g9"><a href="http://weibo.sciencenet.cn/?&act=atme" hidefocus="true">@我</a></li> <li id="mn_N59g9"><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=privacy&op=miniblog" hidefocus="true">提醒</a></li></ul> <ul id="myspace_menu" class="p_pop" style="display:none;"> <li><a href="https://blog.sciencenet.cn/home.php?mod=space">我的博客</a></li> </ul> <!--复制space_header模板,为添加移动设备切换的js功能而修改--> <style> em, cite { font-style:italic; } #blog_article span { float: none; } #blog_article th,#blog_article td { border: 1px solid #000; } p { margin: 1.12em 0; } .owner-switch { width: 28px; height: 14px; background-size: cover; display: inline-block; vertical-align: middle; background-image: url(/static/image/blog/owner.png); background-size: auto 14px; } .author-switch { width: 28px; height: 14px; background-size: cover; display: inline-block; vertical-align: middle; background-image: url(/static/image/blog/author.png); } .tips { border:3px solid #ccc; border-radius: 5px; background: rgba(255,255,255,1); font-size: 12px; position: absolute; top:50%; left: -620%; z-index: 99; width:300px; text-align:left; } .reveal{ display: inline-block; font-size: 14px; font-weight:bolder; color: #4e8a50; border-radius: 4px; height: 20px; line-height: 20px; text-align: center; padding: 10px; cursor: pointer; } </style> <link type="text/css" rel="stylesheet" href="/static/blog/css/zan.css"><!--点赞样式--> <link type="text/css" rel="stylesheet" href="/static/blog/css/cai.css"><!--踩样式--> <script src="/static/js/jquery.lazyload.js" type="text/javascript"></script> <script type="text/javascript"> /* @author:Romey * 动态点赞 * 此效果包含css3,部分浏览器不兼容(如:IE10以下的版本) */ /* $(function(){ $(".praise").click(function(){ var choice = $(this).attr('id').valueOf(); cid = choice.split("_")[1]; //取得评论的cid var praise_img = $("#praise-img_"+cid); var text_box = $("#add-num_"+cid); var praise_txt = $("#praise-txt_"+cid); var num=parseInt(praise_txt.text()); if(praise_img.attr("src") == ("static/blog/images/yizan.png")){ $(this).html("<img src='static/blog/Images/zan.png' id='praise-img_" + cid + "' class='animation' />"); praise_txt.removeClass("hover"); text_box.show().html("<em class='add-animation'>-1</em>"); $(".add-animation").removeClass("hover"); num -=1; praise_txt.text(num) }else{ $(this).html("<img src='static/blog/images/yizan.png' id='praise-img_" + cid + "' class='animation' />"); praise_txt.addClass("hover"); text_box.show().html("<em class='add-animation'>+1</em>"); $(".add-animation").addClass("hover"); num +=1; praise_txt.text(num) } }); }) function getdata(url, id, action){ jQuery.getJSON(url, {type:'zancai', id:id, action:action, random:Math.random()}, function(data){ if(data.success==1){//投票成功 }else{ //$('#praise-txt_'+405189).html(2000).show().css({'opacity':1,'top':'40px'}).animate({top:'-50px',opacity:0},"slow"); } }); } */ function dianzan(cid, blogid) { var tag = 0; var praise_img = jQuery("#praise-img_"+cid); var text_box = jQuery("#add-num_"+cid); var praise_txt = jQuery("#praise-txt_"+cid); var praise_txt_text = isNaN(praise_txt.text()) ? 0 : praise_txt.text(); var num=parseInt(praise_txt_text); if(praise_img.attr("src") == ("static/blog/images/zan.png")){ //取消赞 jQuery.ajax({ type:"GET", url:'misc.php', data:{type:'zancai', id:cid, blogid:blogid, action:'unzan'}, cache:false, dataType:"json", success:function(data){ if(data.success==1){//取消赞 jQuery("#praise_"+cid).html("<img src='static/blog/images/kong.png' id='praise-img_" + cid + "' class='animation' onclick='dianzan("+cid+","+blogid+");' />"); praise_txt.removeClass("hover"); text_box.show().html("<em class='add-animation'>-1</em>"); jQuery(".add-animation").removeClass("hover"); num -=1; praise_txt.text(num); tag = 1; }else if(data.success==0){//需要登录 showWindow('login', 'member.php?mod=logging&action=login'); //$('#praise-txt_'+405189).html(2000).show().css({'opacity':1,'top':'40px'}).animate({top:'-50px',opacity:0},"slow"); }else{ //jQuery("#cuewords").text(data.msg); //jQuery("#disappare").show().delay(2000).fadeOut(); promptmsg(this, cid, data.msg); } } }); }else{ //添加赞 //进行数据库操作 jQuery.ajax({ type:"GET", url:'misc.php', data:{type:'zancai', id:cid, blogid:blogid, action:'zan'}, cache:false, dataType:"json", success:function(data){ if(data.success==1){//取消赞 jQuery("#praise_"+cid).html("<img src='static/blog/images/zan.png' id='praise-img_" + cid + "' class='animation' onclick='dianzan("+cid+","+blogid+");' />"); praise_txt.addClass("hover"); text_box.show().html("<em class='add-animation'>+1</em>"); jQuery(".add-animation").addClass("hover"); num +=1; praise_txt.text(num); }else if(data.success==0){//需要登录 showWindow('login', 'member.php?mod=logging&action=login'); //$('#praise-txt_'+405189).html(2000).show().css({'opacity':1,'top':'40px'}).animate({top:'-50px',opacity:0},"slow"); }else{ //jQuery("#cuewords").text(data.msg); //jQuery("#disappare").show().delay(2000).fadeOut(); var msg = data.msg; if(data.msg == 'upgrade') { msg = '请进行实名认证审核,并<b><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=profile&op=upgrade">升级为博主用户</a></b>,方可进行此操作'; } promptmsg(this, cid, msg); } } }); } } function diancai(cid, blogid) { var tag = 0; var praise_img = jQuery("#praise2-img_"+cid); var text_box = jQuery("#add2-num_"+cid); var praise_txt = jQuery("#praise2-txt_"+cid); var praise_txt_text = isNaN(praise_txt.text()) ? 0 : praise_txt.text(); var num=parseInt(praise_txt_text); if(praise_img.attr("src") == ("static/blog/images/cai.png")){ //取消踩 jQuery.getJSON("misc.php?randID="+escape(new Date()), {type:'zancai', id:cid, blogid:blogid, action:'uncai', random:Math.random()}, function(data) { if(data.success==1){//取消赞 jQuery("#praise2_"+cid).html("<img src='static/blog/images/kong2.png' id='praise2-img_" + cid + "' class='animation' onclick='diancai("+cid+","+blogid+");' />"); praise_txt.removeClass("hover"); text_box.show().html("<em class='add-animation'>-1</em>"); jQuery(".add-animation").removeClass("hover"); num -=1; praise_txt.text(num); }else if(data.success==0){//需要登录 showWindow('login', 'member.php?mod=logging&action=login'); //$('#praise-txt_'+405189).html(2000).show().css({'opacity':1,'top':'40px'}).animate({top:'-50px',opacity:0},"slow"); }else{ //jQuery("#cuewords").text(data.msg); //jQuery("#disappare").show().delay(2000).fadeOut(); promptmsg(this, cid, data.msg); } }); }else{ //添加踩 jQuery.getJSON("misc.php?randID="+escape(new Date()), {type:'zancai', id:cid, blogid:blogid, action:'cai', random:Math.random()}, function(data) { if(data.success==1){//点踩 jQuery("#praise2_"+cid).html("<img src='static/blog/images/cai.png' id='praise2-img_" + cid + "' class='animation' onclick='diancai("+cid+","+blogid+");' />"); praise_txt.addClass("hover"); text_box.show().html("<em class='add-animation'>+1</em>"); jQuery(".add-animation").addClass("hover"); num +=1; praise_txt.text(num); }else if(data.success==0){//需要登录 showWindow('login', 'member.php?mod=logging&action=login'); //$('#praise-txt_'+405189).html(2000).show().css({'opacity':1,'top':'40px'}).animate({top:'-50px',opacity:0},"slow"); }else{ //jQuery("#cuewords").text(data.msg); //jQuery("#disappare").show().delay(2000).fadeOut(); promptmsg(this, cid, data.msg); } }); } } var promptmsg = function(e,cid,msg) { var doc = jQuery("#praise_"+cid); tips = jQuery('<div id="tips" class="tips"></div>'); doc.append(tips); var pageX = e.pageX, pageY = e.pageY; tips.html(msg).css({ top: pageY, left: pageX }).show().delay(5000).fadeOut(); } function dianzanuser(cid, uid) { //查询点赞者 var str = '<div style="padding:4px;">点赞人:'; jQuery.ajax({ type:"GET", url:'misc.php', data:{type:'dianusers', id:cid, uid:uid}, cache:false, dataType:"json", success:function(data){ if(data.success==1){ str += data.msg; str += '</div>'; promptmsg(this, cid, str); }else{ //jQuery("#cuewords").text(data.msg); //jQuery("#disappare").show().delay(2000).fadeOut(); } } }); } function showall(obj) { var cid = jQuery(obj).attr('rel'); jQuery("#showreplay_"+cid).animate({height: 'toggle', opacity: 'toggle'}, "slow"); jQuery(obj).hide(); jQuery("#showreplay_"+cid).append('<a class="reveal" id="hidereplay_'+cid+'" onclick="packup('+cid+');">收起</a>'); } function packup(cid) { jQuery("#showreplay_"+cid).hide(); jQuery("#lookover_"+cid).show(); jQuery("#hidereplay_"+cid).remove(); } jQuery(document).ready( function($){ $("img").lazyload({ placeholder : "/static/js/grey.gif", effect : "fadeIn", threshold : 200 }); }); </script> <div id="ct" class="ct2 wp cl"> <div class="mn"> <div class="bm"> <div class="bm_h cl"> <h1 class="mt"><span class="z">博文</span> </h1> </div> <div class="bm_c"> <div class="vw mbm"> <div class="h pbm"> <h1 class="ph"> 关于积分金币活跃度等几项数值的说明 </h1> <p class="xg2"> <span class="xg1">已有 12011 次阅读</span> <span class="xg1">2011-1-17 15:47</span> <span class="pipe">|</span><span class="xg1">系统分类:<a href="https://blog.sciencenet.cn/home.php?mod=space&do=blog&view=all&uid=45&catid=12">博客资讯</a></span><span class="pipe">|</span> <span class="ptg xg1">博客, 用户, 论坛, 活跃度</span> </p> </div> <div id="blog_article" class="d cl" ><DIV>尊敬的博主:</DIV> <DIV> </DIV> <DIV> 您在登陆后看到的积分、金币、活跃度等数值,是基于旧版论坛发贴所获积分而得出,为科学网新社区系统的统一显示项。</DIV> <DIV> </DIV> <DIV> <FONT color=#800000>积分、金币、活跃度等数值,仅作为在科学网论坛下载附件的通行虚拟货币使用,不做为科学网博客的评价指标。因此这几项数值的高低对博主在博客的权限没有任何影响。</FONT></DIV> <DIV> </DIV> <DIV> 有需要在科学网论坛下载附件的博主,可以登陆后,在设置/积分中,可以查看您的积分、金币、活跃度等数值,并能选择兑换;也可以在其中查看积分记录、积分规则。</DIV> <DIV> </DIV> <DIV> </DIV> <DIV> 科学网编辑部</DIV> <DIV> </DIV> <br /><br /> <label style="font-size:13px; color:#850f0f">转载本文请联系原作者获取授权,同时请注明本文来自科学网编辑部科学网博客。<br />链接地址:</label><a href="https://blog.sciencenet.cn/blog-45-405189.html" target="_blank" style="font-size:13px; color:#850f0f">https://blog.sciencenet.cn/blog-45-405189.html </a> <br /><br />上一篇:<a href='blog-45-405134.html' target='_black'>《科学》网站文章:开放获取是否大势所趋</a><br />下一篇:<a href='blog-45-405201.html' target='_black'>如何添加“公告栏”和“友情链接”模块</a> <!--大赛结束--> </div> <div id="click_div"><table cellpadding="0" cellspacing="0" class="atd"> <tr></tr> </table> <script type="text/javascript"> function errorhandle_clickhandle(message, values) { if(values['id']) { showCreditPrompt(); show_click(values['idtype'], values['id'], values['clickid']); } } </script> </div> <div class="o cl"> <!-- JiaThis Button BEGIN --> <!--<script src="/static/js/share.js" type="text/javascript" type="text/javascript"></script>--> <div id="shareblog"></div> <!-- JiaThis Button END --> <a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=favorite&type=blog&id=405189&spaceuid=45&handlekey=favoritebloghk_405189" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">收藏</a> <!--a href="home.php?mod=spacecp&ac=share&type=blog&id=405189&handlekey=sharebloghk_405189" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">分享</a--> IP: 124.16.128.*<span class="pipe">|</span> <a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=blog&blogid=405189&op=edithot&handlekey=bloghothk_405189" id="blog_hot_405189" onclick="showWindow(this.id, this.href, 'get', 0);">热度</a><span class="pipe">|</span> <!--<a href="javascript:;" onclick="showWindow('miscreport405189', 'misc.php?mod=report&rtype=blog&rid=405189', 'get', -1);return false;">举报</a>--> </div> </div> <div class="ct_vw cl"> <!--<div class="ct_vw_sd">作者的其他博文和热门博文的原始位置,移动到了右侧</div>--> <div><!--最初的左侧的样式: class="ct_vw_mn" --> <div id="div_main_content" class="mbm"> <!-- [增加博主推荐他人博文 2010-7-14--> <h4 class="bbs pbn"> <span><label>当前推荐数:</label><font color="#FF0000" id="recommendcount">0</font> <label style="margin-left:10px;" id="recommendtag"></label> <span id="recommendbody"></span> </span> </h4> <div style="margin-bottom:20px;"> <p class="pns"> <button onclick="showWindow('login', 'member.php?mod=logging&action=login');hideWindow('register');"> 推荐到博客首页</button> </p> </div> <!--over]--> <h3 class="ptn pbn bbs"> <a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=blog&id=405189#quickcommentform_405189" class="y xi2 xw0" title="0">发表评论</a><!--发表评论--> 评论 (<span id="comment_replynum">13</span> 个评论)<!--多少条评论--> </h3> <div id="comment_ul" class="xld xlda"> <!--通过下面的ajax,将博文评论加载到这里--> <a name="firstcomment"> </a> <div id="discusscontent" name="discusscontent" >数据加载中...</div> <div id="comment" style="text-align:right"> <a href="javascript:;" onclick="scrollTo(0,0);">返回顶部</a> </div> </div> </div> <style type="text/css"> .bancomment { background-color: #EEE; padding-right: 30px; font-size: 12px; line-height:25px; padding: 3px 0; border-radius: 8px; color: #aaa; text-align: center; cursor: default; } </style> <div class="bancomment hidden-xs"><span id="banreplay" value="1">博文发布时间已经超过87600小时,评论已关闭。</span></div> <script type="text/javascript"> function addFriendCall(){ var el = $('friendinput'); if(!el || el.value == "") return; var s = '<input type="checkbox" name="fusername[]" class="pc" value="'+el.value+'" id="'+el.value+'" checked="checked">'; s += ' <label for="'+el.value+'">'+el.value+'</label>'; s += '<br />'; $('friends').innerHTML += s; el.value = ''; } resizeImg('div_main_content','450'); var elems = selector('dd[class~=magicflicker]'); for(var i=0; i<elems.length; i++){ magicColor(elems[i]); } </script> <script type="text/javascript"> /* 方法一 function commentcontent(url) { var x = new Ajax('HTML', 'statusid'); x.get(url+'&inajax=1', function(s) { if(s.length>0) { $('discusscontent').innerHTML = s; } else $('discusscontent').innerHTML = '没有评论'; }); } window.onload = commentcontent('comment.php?mod=space&uid=45&do=blog&id=405189'); */ function commentcontent(uid, id) { //alert(uid); var formDara = "uid=" + uid + "&id=" + id; if(window.XMLHttpRequest) { var xmlReq = new XMLHttpRequest(); } else if(window.ActiveXObject) { var xmlReq = new ActiveXObject('Microsoft.XMLHTTP'); } xmlReq.onreadystatechange = function(){ //alert(xmlReq.readyState); if(xmlReq.readyState == 4) { if(xmlReq.responseText != '0') { //防止用户复制评论产生相同的discusscontent(id) var arrs = document.getElementsByName("discusscontent"); if(arrs.length==1) { document.getElementById('discusscontent').innerHTML = xmlReq.responseText; } else { arrs[arrs.length-1].innerHTML = xmlReq.responseText; } } else { return false; } } } xmlReq.open("post", "comment.php?mod=space&do=blog", false);//将true改为false xmlReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlReq.send(formDara); return false; } //window.onload = commentcontent(45, 405189); //window.onload=function(){commentcontent(45, 405189);} function viewpage(p, id) { var formData = "page="+p; //p:翻页页码; id:博文id if(window.XMLHttpRequest) { var xmlReq = new XMLHttpRequest(); } else if(window.ActiveXObject) { var xmlReq = new ActiveXObject('Microsoft.XMLHTTP'); } //comment.php?mod=space&uid=45&do=blog&id=405189 //var formId = "id=414264"; //var formMod = "mod=space"; //var formUid = "uid=40247"; //var formDo = "do=blog"; xmlReq.onreadystatechange = function(){ if(xmlReq.readyState == 4) { document.getElementById('discusscontent').innerHTML = xmlReq.responseText; //location.href = location.href + "#firstcomment"; window.location.hash = firstcomment; } } xmlReq.open("post", "comment.php?id="+id, true); xmlReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlReq.send(formData); //xmlReq.send(formId); //xmlReq.send(formMod); //xmlReq.send(formUid); //xmlReq.send(formDo); return false; } function pagegoto(id, pages) { var gopagenum = document.getElementById('skiptopage').value; if(pages == '') { return false; } if(gopagenum == '') { alert('请先输入您想转到的页码再进行跳转'); return false; } if(!isNaN(gopagenum)) { gopagenum = parseInt(gopagenum); if(gopagenum < 1) { gopagenum = 1; } if(gopagenum > pages) { gopagenum = pages; } viewpage(gopagenum, id); } else { alert('请输入数字,进行跳转'); } } commentcontent(45, 405189); function banreply(){ var banvalue = document.getElementById('banreplay').value; if(banvalue) { alert('该博文已超过48小时,暂停评论'); return false; } else return true; } jQuery(document).ready( function($){ if(!$("#banreplay").val()) $(".bancomment").hide(); //回复按钮只允许点击一次 $("#commentsubmit_btn").one("click",function(){ $(this).attr("disabled","disabled"); $(this).html('提交中'); $("#quickcommentform_405189").submit(); }); //改写推荐到首页功能 $("#return_qcrecommend_405189").bind('DOMNodeInserted', function(e) { var html = $(e.target).html(); var SCRIPT_REGEX = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi; var text = html.replace(SCRIPT_REGEX, ""); //正则替换为空 var arr = text.split('@'); if(arr[0] == '推荐成功') { //推荐成功提示 var num = parseInt($("#recommendcount").text()); $("#return_qcrecommend_405189").text(arr[0]); //推荐数加1 $("#recommendcount").text(num+1); //推荐人显示 if($("#recommendcount").text()=='') { $("#recommendtag").html("推荐人"); $("#recommendbody").html(arr[1]); } else { $("#recommendbody").append(arr[1]); } } }); //渲染分享代码 $("#shareblog").html('<div style="text-align:left;float:left" class="bshare-custom"><div class="bsPromo bsPromo2"></div><a href="javascript:void(0);" class="bshare-weixin" title="分享到微信"></a><a href="javascript:void(0);" class="bshare-qqxiaoyou" title="分享到朋友网"></a><a class="bshare-qzone" title="分享到QQ空间"></a><a class="bshare-sinaminiblog" title="分享到新浪微博"></a><a class="bshare-qqmb" title="分享到腾讯微博"></a><a class="bshare-more bshare-more-icon more-style-addthis" title="更多平台"></a></div>'); /* jquery写法 var comment_cid = window.location.hash; var commentcid = comment_cid.slice(1); if(commentcid) { jQuery("#"+commentcid).parent().animate({height: 'toggle', opacity: 'toggle'}, "fast"); jQuery("#"+commentcid).parent().prev().hide(); } */ //window.onload = function(){ //js写法 //找到锚点 var comment_cid = window.location.hash.toString(); var commentcid = comment_cid.slice(1).toString(); var theNode = document.getElementById(commentcid); if(theNode.hasChildNodes()) { if(theNode.childNodes.length==1) { //alert(theNode.firstChild.nodeType); theNode.style.backgroundColor = "#E6E6B8"; theNode.previousElementSibling.style.marginBottom = "0px"; theNode.previousElementSibling.style.backgroundColor = "#E6E6B8"; theNode.previousElementSibling.previousElementSibling.style.backgroundColor = "#E6E6B8"; window.scrollTo(0, theNode.offsetTop+100); return false; } //获取第一个子节点 var first=theNode.children[0]; first.style.backgroundColor = "#E6E6B8"; //获取父节点元素 var prent = theNode.parentNode; prent.style.display = 'block'; //前一个元素节点 var pre = prent.previousElementSibling; pre.style.display = 'none'; } //} }); </script> </div> </div> </div> </div> </div> <div class="sd"><div> <div id="pcd" class="bm cl"> <div class="hm"> <p><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45"><img src="https://image-attachment.oss-cn-beijing.aliyuncs.com/data/www/html/uc_server/data/avatar/000/00/00/45_avatar_middle.jpg?v=" onerror="this.onerror=null;this.src='https://bbs.sciencenet.cn/uc_server/images/noavatar_middle.gif?v='" /></a></p> <h2 class="xs2"><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45">科学网编辑部</a></h2> </div> <ul class="xl xl2 cl ul_list"> <li class="ul_add"><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=friend&op=add&uid=45&handlekey=addfriendhk_45" id="a_friend_li_45" onclick="showWindow(this.id, this.href, 'get', 0);">加为好友</a></li> <li class="ul_contect"><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=wall">给我留言</a></li> <li class="ul_poke"><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=poke&op=send&uid=45&handlekey=propokehk_45" id="a_poke_45" onclick="showWindow(this.id, this.href, 'get', 0);">打个招呼</a></li> <li class="ul_pm"><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_45&touid=45&pmid=0&daterange=2" id="a_sendpm_45" onclick="showWindow('showMsgBox', this.href, 'get', 0)">发送消息</a></li> </ul> </div> </div> </div> <div class="sd" style="margin-top:1px;"> <div id="pcd" class="bm cl" style="padding-top:0px"> <div style="width:170px; margin:0 auto;text-align:center;"> <script src="/static/js/qrcode.min.js" type="text/javascript"></script> 扫一扫,分享此博文<br> <div id="qrcodeb" style="text-align:center"></div> <script> var qrcode = new QRCode('qrcodeb', { text: 'http://wap.sciencenet.cn/blog-45-405189.html?mobile=1', width: 170, height: 170, colorDark : '#000000', colorLight : '#ffffff', correctLevel : QRCode.CorrectLevel.H }); </script> </div> <div style="width:170px"> <!--作者的精选博文--> <div class="mbm cl"> <h2 class="mbm ptn pbn bbs"><span class="xs1 xw0 y"><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=blog&view=me&handpick =1">全部</a></span>作者的精选博文</h2> <ul class="xl xl1 cl"><li>• <a href="blog-45-1460788.html" target="_blank">问答之间|idea被别人做过,要转变方向吗?</a></li> <li>• <a href="blog-45-1460253.html" target="_blank">科学网博主徐鑫力作,揭示科研成功秘诀 | 赠书</a></li> <li>• <a href="blog-45-1459543.html" target="_blank">研究生学位论文如何顺利通过外审和答辩</a></li> <li>• <a href="blog-45-1459239.html" target="_blank">科学网2024年10月十佳博文榜单公布!</a></li> <li>• <a href="blog-45-1458513.html" target="_blank">问答之间 | 如何开展科研之路</a></li> <li>• <a href="blog-45-1455491.html" target="_blank">研究生学位论文初稿提交导师前的十大注意事项</a></li> </ul> </div> <!--作者的其他最新博文--> <div class="mbm cl"> <h2 class="mbm ptn pbn bbs"><span class="xs1 xw0 y"><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=45&do=blog&view=me">全部</a></span>作者的其他最新博文</h2> <ul class="xl xl1 cl"><li>• <a href="blog-45-1460788.html" target="_blank">问答之间|idea被别人做过,要转变方向吗?</a></li> <li>• <a href="blog-45-1460253.html" target="_blank">科学网博主徐鑫力作,揭示科研成功秘诀 | 赠书</a></li> <li>• <a href="blog-45-1459543.html" target="_blank">研究生学位论文如何顺利通过外审和答辩</a></li> <li>• <a href="blog-45-1459239.html" target="_blank">科学网2024年10月十佳博文榜单公布!</a></li> <li>• <a href="blog-45-1458513.html" target="_blank">问答之间 | 如何开展科研之路</a></li> <li>• <a href="blog-45-1455491.html" target="_blank">研究生学位论文初稿提交导师前的十大注意事项</a></li> </ul> </div> <!--热门博文导读--> <div class="mbm cl"> <h2 class="mbm ptn pbn bbs"><span class="xs1 xw0 y"><a href="https://blog.sciencenet.cn/blog.php?mod=recommend">全部</a></span>精选博文导读</h2> <ul class="xl xl1 cl"><li><span class="xl1_elp">• <a href="blog-45-1460788.html" target="_blank">问答之间|idea被别人做过,要转变方向吗?</a></span></li> <li><span class="xl1_elp">• <a href="blog-45-1460253.html" target="_blank">科学网博主徐鑫力作,揭示科研成功秘诀 | 赠书</a></span></li> <li><span class="xl1_elp">• <a href="blog-45-1459543.html" target="_blank">研究生学位论文如何顺利通过外审和答辩</a></span></li> <li><span class="xl1_elp">• <a href="blog-1074480-1461398.html" target="_blank">大庆油田是怎么形成的?</a></span></li> <li><span class="xl1_elp">• <a href="blog-3516770-1461171.html" target="_blank">Mathematics 东北大学高振宇研究团队:具有距离约束及时变执行器故障的车辆队列自适应固定时间安全并行控制</a></span></li> <li><span class="xl1_elp">• <a href="blog-612874-1461382.html" target="_blank">从“英国算”到“语数外”</a></span></li> </ul> </div> <!--相关博文--> <div class="mbm cl"> <h2 class="mbm ptn pbn bbs">相关博文</h2> <ul class="xl xl1 cl"><li><span class="xl1_elp">• <a href="blog-71966-1461298.html" target="_blank">梅开二度!心血管著名学术期刊 IJC 再次发表南昌大学学者述评文章</a></span></li> <li><span class="xl1_elp">• <a href="blog-3516770-1461045.html" target="_blank">Biomolecules:2024年杰出青年学者奖提名进行中</a></span></li> <li><span class="xl1_elp">• <a href="blog-425155-1461007.html" target="_blank">深圳综合粒子设施研究院2025年先进光源国际青年学者论坛诚邀海内外英才!</a></span></li> <li><span class="xl1_elp">• <a href="blog-425155-1460987.html" target="_blank">上海交通大学系统生物医学研究院国际青年学者论坛诚邀海内外英才</a></span></li> <li><span class="xl1_elp">• <a href="blog-415-1460904.html" target="_blank">F 卅年一觉红楼梦 赢得半生师友情 —略记我周遭的女教授、女学者</a></span></li> <li><span class="xl1_elp">• <a href="blog-415-1460896.html" target="_blank">E 卅年一觉红楼梦 赢得半生师友情—略记我周遭的女教授、女学者</a></span></li> </ul> </div> </div> </div> </div> </div> <SCRIPT type=text/x-mathjax-config> MathJax.Hub.Config({"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50) }, tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" }, TeX: { noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } } }, messageStyle: "none" }); </SCRIPT> <script type="text/javascript"> //增加监听,延迟加载外部js文件 if (window.addEventListener){ window.addEventListener("load", loadScript, false); }else if (window.attachEvent){ window.attachEvent("onload", loadScript); }else { window.onload = loadScript; } function loadScript(){ var myScript=document.createElement("script"); myScript.type="text/javascript"; //myScript.charset="utf-8"; myScript.src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"; document.body.appendChild(myScript); } </script> <!--<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script>--> <script src="https://blog.sciencenet.cn/static/js/buttonLite.js#style=-1&uuid=3e911bff-2140-46cc-81cb-ccaf1edd9b1b&pophcol=2&lang=zh" type="text/javascript"></script> <script src="https://blog.sciencenet.cn/static/js/bshareC0.js" type="text/javascript"></script> </div> <div id="ft" class="wp cl"> <div id="flk" class="y"> <p> <a href="https://bbs.sciencenet.cn/archiver/" >Archiver</a><span class="pipe">|</span><a href="http://wap.sciencenet.cn" >手机版</a><span class="pipe">|</span><strong><a href="https://www.sciencenet.cn" target="_blank">科学网</a></strong> ( <a href="https://beian.miit.gov.cn/" target="_blank">京ICP备07017567号-12</a> )<span style="display:none"> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fcbf293a46e1e62385b889174378635f1' type='text/javascript'%3E%3C/script%3E")); </script> </span></p> <p class="xs0"> GMT+8, 2024-11-24 10:00<span id="debuginfo"> </span> </p> </div> <div id="frt"> <p>Powered by <strong><a href="http://www.sciencenet.cn" target="_blank">ScienceNet.cn</a></strong><em></em></p> <p class="xs0">Copyright © 2007-<script type="text/javascript">var Date22 = new Date();var year22 = Date22.getFullYear();document.write(year22);</script> <a href="http://www.stimes.cas.cn" target="_blank">中国科学报社</a></p> </div></div> <!--move begin by zzx --> <ul id="usersetup_menu" class="p_pop" style="display:none;"> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=avatar">修改头像</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=profile">个人资料</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=profile&op=verify">认证</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=credit">积分</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=usergroup">用户组</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=privacy">隐私筛选</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=profile&op=password">密码安全</a></li> </ul> <!--add by 7u5--> <!--<ul id="weibo_menu" class="p_pop" style="position: absolute; z-index: 301; left: 701.5px; top: 38px; display: none;">--> <!--<li><a href="http://weibo.sciencenet.cn">发微博</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=vote&a=index">投票广场</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?&act=following">关注的人</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=find&a=index">查找好友</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=find&a=invite">邀请好友</a></li>--> <!--<ul class="sslct">--> <!--</ul>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=setting&a=privacy">私信过滤</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=setting&a=blacklist">黑名单</a></li>--> <!--<li><a href="https://blog.sciencenet.cn//home.php?mod=spacecp&ac=privacy&op=miniblog">微博设置</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=setting&a=index">昵称设置</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?m=app&a=weibo">同步设置</a></li>--> <!--</ul>--> <ul id="myprompt_menu" class="p_pop" style="position: absolute; z-index: 301; left: 0px; top: 278px; display: none;"> <!--<li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=0&do=blog&view=com">查看博客评论 </a></li>--> <!--<li><a href="https://blog.sciencenet.cn/home.php?mod=space&do=blog&view=com&order=mycom">查看评论回复 </a></li>--> <!--根据评论盖楼功能修改--> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&uid=0&do=blog&view=com">我收到的评论/回复 </a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&do=blog&view=com&order=mycom">我发表的评论/回复 </a></li> <!--<li><a href="http://weibo.sciencenet.cn/?&act=comments">查看微博评论</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?&act=follower">查看粉丝</a></li>--> <!--<li><a href="http://weibo.sciencenet.cn/?&act=at">查看@我</a></li>--> <!--隐藏微博2018.7.20--> <!--<li><a href="https://blog.sciencenet.cn/home.php?mod=follow&uid=0&do=comments">查看微博评论</a></li>--> <!--<li><a href="https://blog.sciencenet.cn/home.php?mod=follow&uid=0&do=follower">查看粉丝</a></li>--> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&do=notice&view=mypost&type=at">查看@我</a></li> <li><a href="https://blog.sciencenet.cn/home.php?mod=space&do=notice&view=interactive">查看其他</a></li> <!--<li><a onclick="showWindow('showMsgBox', this.href, 'get', 0)">发私信</a></li> <li><a href=http://weibo.sciencenet.cn>发微博</a></li <li><a href="https://blog.sciencenet.cn/home.php?mod=spacecp&ac=privacy&op=miniblog">微博设置</a></li>>--> </ul> <div id="g_upmine_menu" class="g_up" style="display:none;"> <div class="crly"> 积分 0, 距离下一级还需 积分 </div> <div class="mncr"></div> </div> <!--move end --> <script src="home.php?mod=misc&ac=sendmail&rand=1732413623" type="text/javascript"></script> <div id="scrolltop"> <span hidefocus="true"><a title="返回顶部" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>返回顶部</b></a></span> </div> <script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script> <div id="discuz_tips" style="display:none;"></div> <script type="text/javascript"> var tipsinfo = '|X3.3|0.6||0||0|7|1732413623||2'; </script> <!--<script src="http://discuz.gtimg.cn/cloud/scripts/discuz_tips.js?v=1" type="text/javascript" charset="UTF-8"></script>--></body> </html>