<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="style/.css" type="text/css" />
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<style>
.viewbox .newdigg {
clear: both;
height: 51px;
margin: 8px auto;
overflow: hidden;
padding-left: 8px;
width: 406px;
}
.viewbox .diggbox {
cursor: pointer;
float: left;
height: 51px;
margin-right: 8px;
overflow: hidden;
width: 195px;
}
.viewbox .newdigg .digg_good .digg_act {
color: #CC3300;
}
.viewbox .diggbox .digg_act {
float: left;
font-size: 14px;
font-weight: bold;
height: 29px;
line-height: 31px;
overflow: hidden;
text-indent: 32px;
}
.viewbox .newdigg .digg_good .digg_num {
color: #CC6633;
}
.viewbox .diggbox .digg_num {
float: left;
line-height: 29px;
text-indent: 5px;
}
.viewbox .diggbox .digg_percent {
clear: both;
overflow: hidden;
padding-left: 10px;
width: 180px;
}
.viewbox .diggbox .digg_percent .digg_percent_bar {
background: none repeat scroll 0 0 #E8E8E8;
border-right: 1px solid #CCCCCC;
float: left;
height: 7px;
margin-top: 3px;
overflow: hidden;
width: 100px;
}
.viewbox .newdigg .digg_good .digg_percent .digg_percent_bar span {
background: none repeat scroll 0 0 #FFC535;
border: 1px solid #E37F24;
}
.viewbox .diggbox .digg_percent .digg_percent_bar span {
background: none repeat scroll 0 0 #000000;
display: block;
height: 5px;
overflow: hidden;
}
.viewbox .diggbox .digg_percent .digg_percent_num {
float: left;
font-size: 10px;
padding-left: 10px;
}
.viewbox .newdigg .digg_bad .digg_act {
color: #3366CC;
}
.viewbox .diggbox .digg_percent {
clear: both;
overflow: hidden;
padding-left: 10px;
width: 180px;
}
.viewbox .diggbox .digg_percent .digg_percent_bar {
background: none repeat scroll 0 0 #E8E8E8;
border-right: 1px solid #CCCCCC;
float: left;
height: 7px;
margin-top: 3px;
overflow: hidden;
width: 100px;
}
</style>
<script language="javascript" type="text/javascript">
<!--
function CheckLogin(){
var taget_obj = document.getElementById('_ajax_feedback');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
DedeXHTTP = null;
}
function postBadGood(ftype,fid)
{
var taget_obj = document.getElementById(ftype+fid);
var saveid = GetCookie('badgoodid');
if(saveid != null)
{
var saveids = saveid.split(',');
var hasid = false;
saveid = '';
j = 1;
for(i=saveids.length-1;i>=0;i--)
{
if(saveids[i]==fid && hasid) continue;
else {
if(saveids[i]==fid && !hasid) hasid = true;
saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
j++;
if(j==10 && hasid) break;
if(j==9 && !hasid) break;
}
}
if(hasid) { alert('您刚才已表决过了喔!'); return false;}
else saveid += ','+fid;
SetCookie('badgoodid',saveid,1);
}
else
{
SetCookie('badgoodid',fid,1);
}
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
}
function postDigg(ftype,aid)
{
var taget_obj = document.getElementById('newdigg');
var saveid = GetCookie('diggid');
if(saveid != null)
{
var saveids = saveid.split(',');
var hasid = false;
saveid = '';
j = 1;
for(i=saveids.length-1;i>=0;i--)
{
if(saveids[i]==aid && hasid) continue;
else {
if(saveids[i]==aid && !hasid) hasid = true;
saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
j++;
if(j==20 && hasid) break;
if(j==19 && !hasid) break;
}
}
if(hasid) { alert("您已经顶过该帖,请不要重复顶帖 !"); return; }
else saveid += ','+aid;
SetCookie('diggid',saveid,1);
}
else
{
SetCookie('diggid',aid,1);
}
myajax = new DedeAjax(taget_obj,false,false,'','','');
var url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;
myajax.SendGet2(url);
}
function getDigg(aid)
{
var taget_obj = document.getElementById('newdigg');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);
DedeXHTTP = null;
}
-->
</script>
</head>
<body>
<!-- //顶踩 -->
<div id="newdigg">
<div onmousemove="this.style.backgroundPosition='left bottom';" onmouseout="this.style.backgroundPosition='left top';" onclick="javascript:postDigg('good',{dede:field.id/})">
<div>顶一下</div>
<div>({dede:field.goodpost/})</div>
<div>
<div><span style="width:{dede:field.goodper/}%"></span></div>
<div>{dede:field.goodper/}%</div>
</div>
</div>
<div onmousemove="this.style.backgroundPosition='right bottom';" onmouseout="this.style.backgroundPosition='right top';" onclick="javascript:postDigg('bad',{dede:field.id/})">
<div>踩一下</div>
<div>({dede:field.badpost/})</div>
<div>
<div><span style="width:{dede:field.badper/}%"></span></div>
<div>{dede:field.badper/}%</div>
</div>
</div>
</div>
<script language="javascript" type="text/javascript">getDigg({dede:field.id/});</script>
<!-- //顶踩部份的源码结束 -->
</body>
</html>