\u6700\u8fd1\u5728\u505a\u4e00\u4e2a\u7ad9\u65f6\u3002\u8981\u7528\u5230\u9876\u8e29\u529f\u80fd\uff0c\u7f51\u4e0a\u627e\u4e86\u597d\u4e45\uff0c\u6ca1\u6709\u627e\u5230\u5408\u9002\u7684\u3002\u53ea\u597d\u62ff\u9ed8\u8ba4\u6a21\u677f\u91cc\u91cc\u4fee\u6539\u4e86\u3002\u4fee\u6539\u540e\u7684\u6548\u679c\u5982\u4e0b\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb \uff0c\u53ef\u62ff\u53bb\u4fee\u6539\u4f7f\u7528\u3002<\/p>\n
<script language=\"javascript\" type=\"text\/javascript\" src=\"{dede:global.cfg_cmsurl\/}\/include\/dedeajax2.js\"><\/script>\t\r\n<script language=\"javascript\" type=\"text\/javascript\">\r\n<!--\r\nfunction postBadGood(ftype,fid)\r\n{\r\n var taget_obj = document.getElementById(ftype+fid);\r\n var saveid = GetCookie('badgoodid');\r\n if(saveid != null)\r\n {\r\n var saveids = saveid.split(',');\r\n var hasid = false;\r\n saveid = '';\r\n j = 1;\r\n for(i=saveids.length-1;i>=0;i--)\r\n {\r\n if(saveids[i]==fid && hasid) continue;\r\n else {\r\n if(saveids[i]==fid && !hasid) hasid = true;\r\n saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);\r\n j++;\r\n if(j==10 && hasid) break;\r\n if(j==9 && !hasid) break;\r\n }\r\n }\r\n if(hasid) { alert('\u60a8\u521a\u624d\u5df2\u8868\u51b3\u8fc7\u4e86\u5594\uff01'); return false;}\r\n else saveid += ','+fid;\r\n SetCookie('badgoodid',saveid,1);\r\n }\r\n else\r\n {\r\n SetCookie('badgoodid',fid,1);\r\n }\r\n myajax = new DedeAjax(taget_obj,false,false,'','','');\r\n myajax.SendGet2(\"{dede:field name='phpurl'\/}\/feedback.php?aid=\"+fid+\"&action=\"+ftype+\"&fid=\"+fid);\r\n}\r\nfunction postDigg(ftype,aid)\r\n{\r\n var taget_obj = document.getElementById('newdigg');\r\n var saveid = GetCookie('diggid');\r\n if(saveid != null)\r\n {\r\n var saveids = saveid.split(',');\r\n var hasid = false;\r\n saveid = '';\r\n j = 1;\r\n for(i=saveids.length-1;i>=0;i--)\r\n {\r\n if(saveids[i]==aid && hasid) continue;\r\n else {\r\n if(saveids[i]==aid && !hasid) hasid = true;\r\n saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);\r\n j++;\r\n if(j==20 && hasid) break;\r\n if(j==19 && !hasid) break;\r\n }\r\n }\r\n if(hasid) { alert(\"\u60a8\u5df2\u7ecf\u8868\u51b3\u8fc7\uff0c\u8bf7\u4e0d\u8981\u91cd\u590d\u70b9\u51fb\u54e6 \uff01\"); return; }\r\n else saveid += ','+aid;\r\n SetCookie('diggid',saveid,1);\r\n }\r\n else\r\n {\r\n SetCookie('diggid',aid,1);\r\n }\r\n myajax = new DedeAjax(taget_obj,false,false,'','','');\r\n var url = \"{dede:global.cfg_phpurl\/}\/digg_ajax.php?action=\"+ftype+\"&id=\"+aid;\r\n myajax.SendGet2(url);\r\n}\r\nfunction getDigg(aid)\r\n{\r\n var taget_obj = document.getElementById('newdigg');\r\n myajax = new DedeAjax(taget_obj,false,false,'','','');\r\n myajax.SendGet2(\"{dede:global.cfg_phpurl\/}\/digg_ajax.php?id=\"+aid);\r\n DedeXHTTP = null;\r\n}\r\n-->\r\n<\/script><\/code><\/pre>\n\u6837\u5f0f\uff1a<\/p>\n
\/*\u9876\u8e29*\/\r\n.newdigg {\r\n height: 51px;\r\n margin: 0 auto;\r\n clear: both;\r\n overflow: hidden;\r\n\tpadding: 10px 0 30px 150px;\r\n}\r\n.newdigg .digg_good {\r\n background: #ff6666;\r\n}\r\n.diggbox {\r\n width: 195px;\r\n height: 51px;\r\n float: left;\r\n margin-right: 8px;\r\n overflow: hidden;\r\n cursor: pointer;\r\n}\r\n.newdigg .digg_good .digg_act {\r\n color: #fff;\r\n}\r\n.diggbox .digg_act {\r\n font-size: 14px;\r\n float: left;\r\n line-height: 31px;\r\n text-indent: 32px;\r\n height: 29px;\r\n overflow: hidden;\r\n font-weight: bold;\r\n}\r\n.newdigg .digg_good .digg_num {\r\n color: #fff;\r\n}\r\n.diggbox .digg_num {\r\n float: left;\r\n line-height: 29px;\r\n text-indent: 5px;\r\n}\r\n.diggbox .digg_percent {\r\n width: 180px;\r\n clear: both;\r\n padding-left: 10px;\r\n overflow: hidden;\r\n}\r\n.diggbox .digg_percent .digg_percent_bar {\r\n width: 100px;\r\n height: 7px;\r\n background: #E8E8E8;\r\n border-right: 1px solid #CCC;\r\n float: left;\r\n overflow: hidden;\r\n margin-top: 3px;\r\n}\r\n.newdigg .digg_good .digg_percent .digg_percent_bar span {\r\n border: 1px solid #999999;\r\n background: #999999;\r\n}\r\n.diggbox .digg_percent .digg_percent_bar span {\r\n display: block;\r\n height: 5px;\r\n overflow: hidden;\r\n background: #000;\r\n}\r\n.diggbox .digg_percent .digg_percent_num {\r\n font-size: 10px;\r\n float: left;\r\n padding-left: 10px;\r\n}\r\n.newdigg .digg_bad {\r\n background:#ff9966;\r\n}\r\n.diggbox {\r\n height: 51px;\r\n float: left;\r\n margin-right: 8px;\r\n overflow: hidden;\r\n cursor: pointer;\r\n}\r\n.newdigg .digg_bad .digg_act {\r\n color: #FFFFFF;\r\n}\r\n.diggbox .digg_act {\r\n font-size: 14px;\r\n float: left;\r\n line-height: 31px;\r\n text-indent: 32px;\r\n height: 29px;\r\n overflow: hidden;\r\n font-weight: bold;\r\n}\r\n.newdigg .digg_bad .digg_num {\r\n color: #fff;\r\n}\r\n.diggbox .digg_num {\r\n float: left;\r\n line-height: 29px;\r\n text-indent: 5px;\r\n}\r\n.diggbox .digg_percent {\r\n width: 180px;\r\n clear: both;\r\n padding-left: 10px;\r\n overflow: hidden;\r\n}\r\n.diggbox .digg_percent .digg_percent_bar {\r\n width: 100px;\r\n height: 7px;\r\n background: #E8E8E8;\r\n border-right: 1px solid #CCC;\r\n float: left;\r\n overflow: hidden;\r\n margin-top: 3px;\r\n}\r\n.newdigg .digg_bad .digg_percent .digg_percent_bar span {\r\n border: 1px solid #999999;\r\n background: #999999;\r\n}\r\n.diggbox .digg_percent .digg_percent_bar span {\r\n display: block;\r\n height: 5px;\r\n overflow: hidden;\r\n background: #000;\r\n}\r\n.diggbox .digg_percent .digg_percent_num {\r\n font-size: 10px;\r\n float: left;\r\n padding-left: 10px;\r\n}<\/code><\/pre>\n\u6a21\u677f\u9875\u9762html\u8c03\u7528\u4ee3\u7801\uff1a<\/p>\n
<!-- \/\/\u9876\u8e29 -->\r\n <div class=\"newdigg\" id=\"newdigg\">\r\n <div class=\"diggbox digg_good\" onmousemove=\"this.style.backgroundPosition='left bottom';\" onmouseout=\"this.style.backgroundPosition='left top';\" onclick=\"javascript:postDigg('good',{dede:field.id\/})\">\r\n <div class=\"digg_act\">\u9876\u4e00\u4e0b<\/div>\r\n <div class=\"digg_num\">({dede:field.goodpost\/})<\/div>\r\n <div class=\"digg_percent\">\r\n <div class=\"digg_percent_bar\"><span style=\"width:{dede:field.goodper\/}%\"><\/span><\/div>\r\n <div class=\"digg_percent_num\">{dede:field.goodper\/}%<\/div>\r\n <\/div>\r\n <\/div>\r\n <div class=\"diggbox digg_bad\" onmousemove=\"this.style.backgroundPosition='right bottom';\" onmouseout=\"this.style.backgroundPosition='right top';\" onclick=\"javascript:postDigg('bad',{dede:field.id\/})\">\r\n <div class=\"digg_act\">\u8e29\u4e00\u4e0b<\/div>\r\n <div class=\"digg_num\">({dede:field.badpost\/})<\/div>\r\n <div class=\"digg_percent\">\r\n <div class=\"digg_percent_bar\"><span style=\"width:{dede:field.badper\/}%\"><\/span><\/div>\r\n <div class=\"digg_percent_num\">{dede:field.badper\/}%<\/div>\r\n <\/div>\r\n <\/div>\r\n <\/div>\r\n <script language=\"javascript\" type=\"text\/javascript\">getDigg({dede:field.id\/});<\/script>\r\n <!-- \/\/\u9876\u8e29\u90e8\u4efd\u7684\u6e90\u7801\u7ed3\u675f --><\/code><\/pre>\n <\/p>\n
<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6700\u8fd1\u5728\u505a\u4e00\u4e2a\u7ad9\u65f6\u3002\u8981\u7528\u5230\u9876\u8e29\u529f\u80fd\uff0c\u7f51\u4e0a\u627e\u4e86\u597d\u4e45\uff0c\u6ca1\u6709\u627e\u5230\u5408\u9002\u7684\u3002\u53ea\u597d\u62ff\u9ed8\u8ba4\u6a21\u677f\u91cc\u91cc\u4fee\u6539\u4e86\u3002\u4fee\u6539\u540e\u7684\u6548\u679c\u5982\u4e0b\uff0c\u6709 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,180,1360,1359,1358],"class_list":["post-2792","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-180","tag-1360","tag-1359","tag-1358"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2792"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2792\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}