据统计90%查看本帖的人,都已经注册本站了哦
您需要 登录 才可以下载或查看,没有账号?立即注册
×
首先,找到当前使用模版的目录,我选择在footer.php添加代码 任意位置 script标签 [JavaScript] 纯文本查看 复制代码 var that = $(this);
setTimeout(function(){
var mark = that.index(), /* action = '', */ post_ID = infoid;
ajax_data = { mark: '0', plugin: 'digg', /* action: action, */ id: infoid };
$.post('', ajax_data,function(data){
that.parent().children().eq(0).find('span:last').html( data.split(',')[0] );
that.parent().children().eq(2).find('span:last').html( data.split(',')[1] );
that.find('img').addClass('bounce animated');
that.find('span:first').addClass('flash animated');
if ( that.index() == 0 ) {
that.find('span:last').addClass('bounceInDown animated');
/* that.addClass('niceIn'); */
} else if ( that.index() == 2 ) {
that.find('span:last').addClass('bounceInUp animated');
/* that.addClass('niceIn'); */
}
$('.z_digg').children().eq(0).find('span:first').text('已赞过');
$('.z_digg').children().eq(2).find('span:first').text('不能踩');
})
},1500)
|