$(document).ready(function(){
$('#ConcernBtn').bind('click',function(){
var cuid = '28456480';
var url = '';
var type = $(this).attr('rel');
if(type == 'addConcern'){
$.ajax({
type : 'get',
url : url,
data : {'op' : 'ajaxadd' , 'cuid' : cuid, 'random' : dom()},
success : function(msg){
if(msg == -1){
shoErrorMsg('参数错误!');
} else if (msg == 0){
shoErrorMsg('关注失败,没有该用户!');
} else if (msg == 1){
shoErrorMsg('关注失败,您已经关注了该用户!');
} else if (msg == 2){
$('#ConcernBtn').val('已关注');
$('#ConcernBtn').attr('rel','delConcern');
shoSucceedMsg('关注成功!');
} else if (msg == 3){
shoErrorMsg('未知错误');
}
}
});
} else if ( type == 'delConcern'){
$.ajax({
type : 'get',
url : url,
data : {'op' : 'ajaxdel' , 'cuid' : cuid, 'random' : dom()},
success : function(msg){
if(msg == 0){
shoErrorMsg('参数错误!','消息提示');
} else if (msg == 1){
shoErrorMsg('操作失败,请尝试刷新页面重试!','消息提示');
} else if (msg == 2){
$('#ConcernBtn').val('加关注');
$('#ConcernBtn').attr('rel','addConcern');
shoSucceedMsg('成功取消关注!','消息提示');
} else if (msg == 3){
shoErrorMsg('未知错误!','消息提示');
}
}
});
}
});
});
//加好友
function addFriend(fuid, url){
if(fuid == '' || == 0){
shoErrorMsg('缺少参数!','信息提示');
return false;
}
$.ajax({
type : 'get',
url : url,
data : {'op' : 'add', 'fuid' : fuid , 'random' : dom()},
success : function(msg){
if(msg == -1){
shoErrorMsg('参数错误!','消息提示');
} else if (msg == -2){
shoErrorMsg('添加好友失败,没有该用户的信息!','消息提示');
} else if (msg == -3){
shoErrorMsg('添加好友失败,你不能添加自己为好友!','消息提示');
} else if (msg == -4){
shoErrorMsg('添加好友未知错误,该错误已被记录!','消息提示');
} else if (msg == -5){
shoErrorMsg('添加好友失败,你之前已经发送过好友请求,请耐心等待对方同意申请!','消息提示');
} else if (msg == -6){
shoErrorMsg('添加好友失败,你们已经是好友了!','消息提示');
} else {
$.cover(true);
({
id : 'addFriend',
title : '添加好友',
url : url,
data : {'op' : 'add', 'fuid' : fuid , 'random' : dom()},
idth : 490,
height : 180,
scroll : 'no',
callback : function(action) {
if (action == 'close'){
$.cover(false);
}
}
});
}
}
});
}
//发送短消息
function postMessage(msguid, url){
if(msguid == '' || == 0){
shoErrorMsg('缺少参数!','信息提示');
return false;
}
$.ajax({
type : 'post',
url : url,
data : {'op' : 'ajaxpost', 'msguid' : msguid , 'random' : dom()},
success : function(msg){
if(msg == -1){
shoErrorMsg('发送失败,缺少收件人对象!','消息提示');
} else if(msg == -2){
shoErrorMsg('发送失败,自己不能给自己发送短消息!','消息提示');
} else {
$.cover(true);
({
id : 'postMessage',
title : '发送短消息',
url : url,
data : {'op' : 'ajaxpost', 'msguid' : msguid , 'random' : dom()},
idth : 510,
height : 255,
scroll : 'no',
callback : function(action) {
if (action == 'close'){
$.cover(false);
}
}
});
}
}
});
}
作品:《极品戒指》
作者:不是蚊子
是否出版:已出版,在当当可以购买。
作品简介:
“戒指!我要变身!”
——看书重磅作品 点击率一路飙升
无数网友急切等待的“神奇戒指”强势来袭
普通少年变为美男小超人,亲情、爱情、友情、激情……一幕幕好戏拉开帷幕,敬请翻阅!
如果人生一直平淡如水,不如用神奇的戒指来个大颠覆。
一个默默无闻、不高不帅、成绩惨不忍睹的普通男生的命运会如何?直到他遇见了自己的“吉祥物”,一切变得不可思议!
无数网友鼎力推荐的好文,用事实证明:大家说好才是真的好。
作者简介:本名文凯,四川眉山人。从小喜欢阅读,尤其是对玄幻、仙侠痴迷之极。因其所喜之书更新缓慢,恼怒之下,走上码字之路。不求闻达于世人,只求满足心愿!主要作品有:《重生之极品公子》、《极品戒指》。
//测试字符串的长度 一个汉字算2个字节
function mb_strlen(str)
{
var len=;
var totalCount=0;
for(var i=0;i= 0x0001 && c 操作原因:广告文章违规内容标题不明文不对题',
title : '选择类型',
idth : 300,
height : 150,
scroll : 'no',
callback : function(action){
if(action == 'close'){
$.cover(false);
}
}
});
});
$('#admin_delete').live('click' , function(){
///blog/logicdel/id/3480184/url/%252Fblog%.html
var type = $('#del_type').val();
var url = '/blog/logicdel/id/3451289/url/%252Fuid%.html';
.href= url + '?type=' + type;
});
//顶 js中暂未添加&过滤
$('#digg').live('click' , function(){
if(isOnLine == '' )
{
//shoErrorMsg('登录之后才能进行此操作' , '消息提示');
shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');
return false;
}
var bid = $('#digg').attr('bid');
var url = $('#digg').attr('url');
var digg_str = $.cookie('digg_id');
if(digg_str != null)
{
var arr= ne Array(); //定义一数组
arr = (","); //字符分割
for( i=0 ; i ';
tpl += '';
tpl += '文明上网,理性发言...';
tpl += '';
tpl += '';
tpl +='';
tpl +='表情';
tpl +='';
tpl += '';
tpl += '';
$('.z_move_comment').html('');
$(this).parents('.Blog_right1_8').find('.z_move_comment').html(tpl).sho();
});
//引用的评论提交
$('#quota_sbumit').live('click' , function(){
if(isOnLine == '' )
{
//shoErrorMsg('登录之后才能进行此操作' , '消息提示');
shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');
return false;
}
var bid = $(this).attr('bid');
var tid = $(this).attr('tid');//被引用人的id
var qid = $(this).attr('cid');//引用的id
var url = $(this).attr('url');
var text = $('#rmsg').val();
var tname = $(this).attr('tname');
if(text == '' || text=='文明上网,理性发言...')
{
shoErrorMsg('评论内容不能为空!' , '消息提示');
return false;
}
else
{
if(mb_strlen(text) > 1000){
shoErrorMsg('评论内容不能超过500个汉字' , '消息提示');
return false;
}
}
$.ajax({
type: "post",
url: url ,
data: {'bid': bid , 'to' : tid , 'qid' : qid , 'text': text , 'tname' : tname },
dataType: 'json',
success: function(data){
if(de == 1){
var tpl = '';
tpl+= '' + der + '';
tpl+= '';
tpl+= '
' + + '' + fo.dateline + '
';
tpl+= '
' + fo. + ':'+ fo. + '
';
tpl+= '
' + + '
回复 | 删除| 举报';
tpl+= '';
tpl+= '';
$('#replyList .Blog_right1_8:first').before(tpl);
$('.z_move_comment').html('').hide();
}
else if(de == -1){
//shoErrorMsg(fo , '消息提示');
shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');
}
},
error: function(){//请求出错处理
}
});
});
//底部发表评论
$('#submitmsg').click(function(){
if(alloComment == 1)
{
shoErrorMsg('该博文不允许评论' , '消息提示');
return false;
}
var bid = $(this).attr('bid');
var toid = $(this).attr('toid');
var text = $('#reply').val();
var url = $(this).attr('url');
if(text == '' || text=='文明上网,理性发言...')
{
shoErrorMsg('评论内容不能为空!' , '消息提示');
return false;
}
else
{
if(mb_strlen(text) > 1000){
shoErrorMsg('评论内容不能超过500个汉字' , '消息提示');
return false;
}
}
$.ajax({
type: "post",
url: url ,
data: {'bid': bid , 'to' : toid ,'text': text},
dataType: 'json',
success: function(data){
if(de == 1)
{
var tpl = '';
tpl += '' + der + '';
tpl += '';
tpl += '
' + + '' + fo.dateline + '
';
tpl += '
' + + '
';
tpl += '回复 | 删除| 举报';
tpl += '';
tpl += '';
$('.Blog_tit3:first').after(tpl);
$('#reply').val('文明上网,理性发言...');
}
else if(de == -1)
{
shoErrorMsg(fo , '消息提示');
}
},
error: function(){//请求出错处理
}
});
});
//底部评论重置
$('#reset_comment').click(function(){
$('#reply').val('文明上网,理性发言...');
});
//取消回复
$('#qx_comment').live('click' , function(){
$('.z_move_comment').html('').hide();
});
$('#rmsg, #reply').live({
focus:function(){
if($(this).val() == '文明上网,理性发言...'){
$(this).val('');
}
},
blur:function(){
if($(this).val() == ''){
$(this).val('文明上网,理性发言...');
}
}
});
//删除留言确认
$('.comment_del_mark').live('click' , function(){
var url = $(this).attr('url');
firm('删除留言','确认', function(action){
if(action == 'ok')
{
f = url;
}
});
});
//删除时间确认
$('.del_article_id').click(function(){
var delurl = $(this).attr('delurl');
firm('删除文章','确认', function(action){
if(action == 'ok')
{
f = delurl;
}
});
});
/*
//字数限制
$('#rmsg, #reply').live('keyup', function(){
var id = $(this).attr('id');
var left = bText($(this).val(), 500);
var eid = '#errmsg';
if(id == 'reply') eid = '#rerrmsg';
if (left >= 0)
$(eid).html('您还可以输入' + left + '字');
else
$(eid).html('您已超出' + bs(left) + '字 ');
});
*/
//加载表情
$('#face').qqFace({id : 'facebox1', assign : 'reply', path : '/image/qqface/'});
$('#mface').qqFace({id : 'facebox', assign : 'rmsg', path:'/image/qqface/'});
/*
$('#class_one_id').change(function(){
alert(123213);
var id = parseInt($(this).val() , 10);
if(id == 0) return false;
$('.hidden_son_class span').each(function( index , dom ){
if( ('cid') == id )
{
}
});
});
*/
//转载文章
var turn_url = "";
$('#repost_bar').click(function(){
if(isOnLine == '' )
{
//shoErrorMsg('登录之后才能进行此操作' , '消息提示');
shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');
return false;
}
var id = $(this).attr('bid');
({
id : 'turn_class_thickbox',
url : turn_url,
title : '转载文章',
idth : 330,
height : 131,
scroll : 'no',
data : {
'id' : id
},
callback : function(action){
if(action == 'close'){
$.cover(false);
}
}
});
});
/*
//转发文章
$('#repost_bar').live('click' , function(){
if(isOnLine == '' )
{
//shoErrorMsg('登录之后才能进行此操作' , '消息提示');
shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');
return false;
}
var bid = $(this).attr('bid');
var url = $(this).attr('url');
firm('转载文章','确认', function(action){
if(action == 'ok'){
$.ajax({
type:"POST",
url:url,
data: {
'bid' : bid
},
dataType: 'json',
success:function(msg){
if( == 0){
shoSucceedMsg('转发成功!', '消息提示');
}else if( == 1){
//f = '/?r=site/login';
shoErrorMsg('操作失败,您需要先登录!', '消息提示', '');
}else{
shoErrorMsg(_content, '消息提示');
}
}
});
}
});
});
*/
});
http://www.xvipxs.net/43_43464/18492801.html
请记住本书首发域名:www.xvipxs.net。VIP中文手机版阅读网址:m.xvipxs.net