Chinaunix首页 | 论坛 | 博客
  • 博客访问: 848103
  • 博文数量: 12
  • 博客积分: 10026
  • 博客等级: 上将
  • 技术积分: 2245
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-04 20:15
文章分类

全部博文(12)

文章存档

2010年(2)

2009年(10)

我的朋友

发布时间:2010-08-12 11:14:59

......【阅读全文】

阅读(3497) | 评论(1) | 转发(0)

发布时间:2010-05-17 11:39:52

......【阅读全文】

阅读(918) | 评论(0) | 转发(0)

发布时间:2009-10-21 15:49:27

......【阅读全文】

阅读(1066) | 评论(0) | 转发(0)

发布时间:2009-08-20 10:50:41

......【阅读全文】

阅读(1451) | 评论(0) | 转发(0)

发布时间:2009-08-17 15:33:04

......【阅读全文】

阅读(1985) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

大鬼不动2010-10-22 16:33

回复  |  举报

chinaunix网友2006-10-04 11:34

什么时候你也开始转载小女人散文了?:)

回复 |  删除 |  举报

chinaunix网友2006-03-06 18:08

dd

回复 |  删除 |  举报

chinaunix网友2006-03-06 18:07

</p> <div class="div1"><a href="javascript:void(0);" class="Blog_a10" rel="r:297364, u:8590930, t:0, tn:'chinaunix网友', url:'/member/replyajax.html'">回复</a> |  <a class='comment_del_mark' style='cursor:pointer' url="/member/delreply/id/297364.html">删除</a> |  <a href="javascript:;" onclick="linkto();showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login')">举报</a></div> </div> <div class="Blog_line1"></div> </div> <div class="Blog_right1_8"> <div class="Blog_right_img1"><a href="/uid/0.html"><img src="http://account.chinaunix.net/api/avatar.php?uid=0" /></a></div><br /> <div class="Blog_right_font1"> <p class="Blog_p5"><a href="/uid/0.html"><span>chinaunix网友</span></a>2006-03-06 18:07</p> <p class="Blog_p6"><xmp></p> <div class="div1"><a href="javascript:void(0);" class="Blog_a10" rel="r:297365, u:8590930, t:0, tn:'chinaunix网友', url:'/member/replyajax.html'">回复</a> |  <a class='comment_del_mark' style='cursor:pointer' url="/member/delreply/id/297365.html">删除</a> |  <a href="javascript:;" onclick="linkto();showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login')">举报</a></div> </div> <div class="Blog_line1"></div> </div> <div class="Blog_right1_10"> <div class="Blog_tit3">留言热议</div> <div class="Blog_right1_8"> <div class="nologin_con1"> 请登录后留言。 <p><a href="http://account.chinaunix.net/login" onclick="linkto()">登录</a> <a href="http://account.chinaunix.net/register?url=http%3a%2f%2fblog.chinaunix.net">注册</a></p> </div> </div> </div> </div> </div> </div> <input type='hidden' id='report_url' value='/blog/ViewReport.html' /> <script language="javascript"> /* var Util = {}; Util.calWbText = function (text, max){ if(max === undefined) max = 140; var cLen=0; var matcher = text.match(/[^\x00-\xff]/g), wlen = (matcher && matcher.length) || 0; //匹配url链接正则 http://*** var pattern = /http:\/\/([\w-]+\.)+[\w-]+(\/*[\w-\.\/\?%&=][^\s^\u4e00-\u9fa5]*)?/gi; //匹配的数据存入数组 var arrPt = new Array(); var i = 0; while((result = pattern.exec(text)) != null){ arrPt[i] = result[0]; i++; } //替换掉原文本中的链接 for(var j = 0;j<arrPt.length;j++){ text = text.replace(arrPt[j],""); } //减掉链接所占的长度 return Math.floor((max*2 - text.length - wlen)/2 - 12*i); }; */ //测试字符串的长度 一个汉字算2个字节 function mb_strlen(str) { var len=str.length; var totalCount=0; for(var i=0;i<len;i++) { var c = str.charCodeAt(i); if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) { totalCount++; }else{ totalCount+=2; } } return totalCount; } //举报弹出层 function showJuBao(url, cid){ $.cover(false); asyncbox.open({ id : 'report_thickbox', title : '举报违规', url : url, data : {'cid' : cid,'idtype' : 3,'random' : Math.random(),'blogurl' : window.location.href}, width : 378, height : 240, scroll : 'no', callback : function(action){ if(action == 'close'){ $.cover(false); } } }); } $(document).ready(function(){ $('.span_text1 a, .div1 a').live({ click:function(){ if(isOnLine == '' ) { //showErrorMsg('登录之后才能进行此操作' , '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); return false; } var index = $(this).index(); var rel = $(this).attr('rel'); switch(index){ case 0: $('#replyList > .Blog_right1_8 .Blog_right1_9').remove(); var tpl = '<div class="Blog_right1_9" id="rform">'; tpl += '<div class="div2">'; tpl += '<textarea name="rmsg" id="rmsg" cols="" rows="" class="Blog_ar1_1"></textarea>'; tpl += '</div>'; tpl += '<div class="div3">'; tpl += '<div class="div3_2"></em><button type="button" id="ajsub" class="Blog_a11" rel="' + rel + '"></button><button class="Blog_a12" id="ajcal"></button></div>'; tpl += '<div class="div3_1"><a href="#" class="face" onclick="return false;"><span></span>表情</a></div>'; tpl += '<div class="clear"></div></div></div>'; $(this).parent().after(tpl); return false; break; case 1: return true; break; case 2: break; default: } } }); $('#ajsub').live({ click:function(e){ var rels = eval('({' + $(e.target).attr('rel') + '})'); var tarea = $('#rmsg'); if(tarea.val() == ''){ showErrorMsg('留言内容不能为空!', '消息提示'); return false; } else { if(mb_strlen(tarea.val()) > 1000){ showErrorMsg('留言内容不能超过500个汉字' , '消息提示'); return false; } } $.ajax({ type: "post", url: rels.url, data: {'qid': rels.r, 'uid': rels.u, 'to': rels.t, 'tname': rels.tn, 'text': tarea.val()}, success: function(res, textStatus){ res = eval('(' + res + ')'); var errCode = res.code; var data = res.data; //错误处理 switch(errCode){ case 0://匿名 showErrorMsg('留言失败请重试!', '消息提示'); break; case 1: //模板 var tpl = '<div class="Blog_right1_8">'; tpl += '<div class="Blog_right_img1">'; tpl += '<a href="' + data.fUrl + '">' + data.avatar + '</a>'; tpl += '</div><br>'; tpl += '<div class="Blog_right_font1">'; tpl += '<p class="Blog_p5"><a href="' + data.fUrl + '"><span>' + data.fname + '</span></a>' + data.time + '</p>'; tpl += '<p class="Blog_p7">' + data.qname + ':' + data.qtext+ '</p>'; tpl += '<p class="Blog_p8">' + data.text + '</p>'; tpl += '<span class="span_text1"><a href="#" class="Blog_a10" rel="r:' + data.id + ', u:' + data.u + ', t:' + data.from + ', tn:\'' + data.fname + '\', url:\'' + rels.url + '\'">回复</a>  |  <a class="comment_del_mark" style="cursor:pointer" url="/member/delreply/id/' + data.id + '">删除</a> |  <a href="javascript:showJuBao(\'/blog/ViewReport.html\',' + data.id + ')" class="box_report" cid="' + data.id + '">举报</a></span>'; tpl += '</div><div class="Blog_line1"></div></div>'; //插入到页面 $('#replyList > .Blog_tit3').after(tpl); $('#replyList > .Blog_right1_8 .Blog_right1_9').remove(); if($('#replyList > .Blog_right1_8').size() > 5){ $('#replyList > .Blog_right1_8:last').remove(); } $('#tReplyNum').html(parseInt($('#tReplyNum').html()) + 1); //清空回复框 tarea.val(''); break; case 2: //showErrorMsg('请先登录!', '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); break; case 3: showErrorMsg('缺少参数!', '消息提示'); break; case 4: showErrorMsg('留言中含有违禁词,请重新编辑!', '消息提示'); break; default: } }, error: function(){//请求出错处理 } }); } }); $('#submitmsg').click(function(){ var rels = eval('({' + $(this).attr('rel') + '})'); var tarea = $('#reply'); if(tarea.val() == ''){ showErrorMsg('留言内容不能为空!', '消息提示'); return false; } else { if(mb_strlen(tarea.val()) > 1000){ showErrorMsg('留言内容不能超过500个汉字' , '消息提示'); return false; } } $.ajax({ type: "post", url: rels.url, data: {'qid': 0, 'uid': rels.u, 'to': rels.t, 'tname': rels.tn, 'text': tarea.val()}, success: function(res, textStatus){ res = eval('(' + res + ')'); var errCode = res.code; var data = res.data; //错误处理 switch(errCode){ case 0://匿名 showErrorMsg('留言失败请重试!', '消息提示'); break; case 1: //模板 var tpl = '<div class="Blog_right1_8">'; tpl += '<div class="Blog_right_img1">'; tpl += '<a href="' + data.fUrl + '">' + data.avatar + '</a>'; tpl += '</div><br>'; tpl += '<div class="Blog_right_font1">'; tpl += '<p class="Blog_p5"><a href="' + data.fUrl + '"><span>' + data.fname + '</span></a>' + data.time + '</p>'; tpl += '<p class="Blog_p6">' + data.text+ '</p>'; tpl += '<div class="div1"><a rel="r:' + data.id + ', t:' + data.from + ', tn:\'' + data.fname + '\', url:\'' + rels.url + '\'" class="Blog_a10" href="javascript:void(0);">回复</a>&#12288;| &#12288;<a class="comment_del_mark" style="cursor:pointer" url="' + data.delUrl + '">删除</a>&#12288;| &#12288;<a href="javascript:showJuBao(\'/blog/ViewReport.html\',' + data.id + ')" class="box_report" cid="' + data.id + '">举报</a></div>'; tpl += '</div><div class="Blog_line1"></div></div>'; //插入到页面 $('#replyList > .Blog_tit3').after(tpl); $('#replyList > .Blog_right1_8 .Blog_right1_9').remove(); //去除留言列表最后一行留言 if($('#replyList > .Blog_right1_8').size() > 5){ $('#replyList > .Blog_right1_8:last').remove(); } $('#tReplyNum').html(parseInt($('#tReplyNum').html()) + 1); tarea.val(''); break; case 2: //showErrorMsg('请先登录!', '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); break; case 3: showErrorMsg('缺少参数!', '消息提示'); break; case 4: showErrorMsg('留言中含有违禁词,请重新编辑!', '消息提示'); break; default: } }, error: function(){//请求出错处理 } }); }); $('#canclemsg').click(function(){ $('#reply').val(''); //$('#rerrmsg').html('您还可以输入<span>500</span>字'); }); $('#ajcal').live('click', function(){ $('#rform').remove(); }); //加载表情 $('.face').qqFace({ id : 'facebox', //表情盒子的ID assign:'rmsg', //给那个控件赋值 path:'/image/qqface/' //表情存放的路径 }); //加载表情 $('#face').qqFace({ id : 'facebox1', //表情盒子的ID assign:'reply', //给那个控件赋值 path:'/image/qqface/' //表情存放的路径 }); /* //字数限制 $('#rmsg, #reply').live('keyup', function(){ var id = $(this).attr('id'); var left = Util.calWbText($(this).val(), 500); var eid = '#errmsg'; if(id == 'reply') eid = '#rerrmsg'; if (left >= 0) $(eid).html('您还可以输入<span>' + left + '</span>字'); else $(eid).html('<font color="red">您已超出<span>' + Math.abs(left) + '</span>字</font>'); }); */ //删除文章确认 $('.del_article_id').click(function(){ var delurl = $(this).attr('delurl'); asyncbox.confirm('删除文章','确认', function(action){ if(action == 'ok') { location.href = delurl; } }); }); //删除留言确认 $('.comment_del_mark').live('click' , function(){ var url = $(this).attr('url'); asyncbox.confirm('删除留言','确认', function(action){ if(action == 'ok') { location.href = url; } }); }); //转载文章 var insert_turn_url = "/blog/viewClassPart.html"; $('.turn_class').click(function(){ if(isOnLine == '' ) { //showErrorMsg('登录之后才能进行此操作' , '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); return false; } var dobj = eval('({' + $(this).attr('rel') + '})'); var bid = dobj.bid; asyncbox.open({ id : 'turn_class_thickbox', url : insert_turn_url, title : '转载文章', width : 330, height : 131, scroll : 'no', data : { 'id' : bid }, callback : function(action){ if(action == 'close'){ $.cover(false); } } }); }); /* //转发事件 $('.turn_class').click(function(){ var dobj = eval('({' + $(this).attr('rel') + '})'); var bid = dobj.bid; var url = dobj.url; asyncbox.confirm('转发文章','确认', function(action){ if(action == 'ok'){ $.ajax({ type:"POST", url:url, data: { 'bid' : bid }, dataType: 'json', success:function(msg){ if(msg.error == 0){ showSucceedMsg('转发成功!', '消息提示'); }else if(msg.error == 1){ //showErrorMsg(msg.error_content, '消息提示'); showErrorMsg('操作失败,您需要先登录!', '消息提示', 'http://account.chinaunix.net/login'); }else{ showErrorMsg(msg.error_content, '消息提示'); } } }); } }); }); */ //修改转载文章的分类 var turn_url = "/blog/UpdateClassView.html"; $('.turn_article').click(function(){ var id = $(this).attr('id'); $.cover(false); asyncbox.open({ id : 'update_class_thickbox', title : '修改分类', url : turn_url, data : {'id' : id}, width : 330, height : 131, scroll : 'no', callback : function(action){ if(action == 'close'){ $.cover(false); } } }); }); /*//举报弹出层 $('.box_report').live('click' , function(){ var url = $('#report_url').val(); var cid = $(this).attr('cid'); $.cover(false); asyncbox.open({ id : 'report_thickbox', url : url, title : '举报违规', width : 378, height : 240, scroll : 'no', data : { 'cid' : cid, 'idtype' : 3 }, callback : function(action){ if(action == 'close'){ $.cover(false); } } }); });*/ }); </script> <!-- footer --> <div class="Blog_footer" style='clear:both'> <div><a href="http://www.chinaunix.net/about/index.shtml" target="_blank" rel="nofollow">关于我们</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" target="_blank" rel="nofollow">关于IT168</a> | <a href="http://www.chinaunix.net/about/connect.html" target="_blank" rel="nofollow">联系方式</a> | <a href="http://www.chinaunix.net/about/service.html" target="_blank" rel="nofollow">广告合作</a> | <a href="http://www.it168.com//bottomfile/flgw/fl.htm" target="_blank" rel="nofollow">法律声明</a> | <a href="http://account.chinaunix.net/register?url=http%3a%2f%2fblog.chinaunix.net" target="_blank" rel="nofollow">免费注册</a> <p>Copyright 2001-2010 ChinaUnix.net All Rights Reserved 北京皓辰网域网络信息技术有限公司. 版权所有 </p> <div>感谢所有关心和支持过ChinaUnix的朋友们 <p><a href="http://beian.miit.gov.cn/">16024965号-6 </a></p> </div> </div> </div> </div> <script language="javascript"> //全局错误提示弹出框 function showErrorMsg(content, title, url){ var url = url || ''; var title = title || '消息提示'; var html = ''; html += '<div class="HT_layer3_1 HT_layer3_2"><ul><li><p><span class="login_span1"></span>' + content + '</p></li>'; if(url == '' || url.length == 0){ html += '<li class="HT_li1"><input type="button" class="HT_btn2" onclick=\'close_windows("error_msg")\'></li>'; } else { html += '<li class="HT_li1"><input type="button" class="login_btn1" onclick="location.href=\'' + url + '\'"></li>'; } html += '</ul></div>'; $.cover(true); asyncbox.open({ id: 'error_msg', title : title, html : html, 'callback' : function(action){ if(action == 'close'){ $.cover(false); } } }); } //全局正确提示 function showSucceedMsg(content, title , url ){ var url = url || ''; var title = title || '消息提示'; var html = ''; html += '<div class="HT_layer3_1 HT_layer3_2"><ul><li><p><span class="login_span2"></span>' + content + '</p></li>'; if(url == '' || url.length == 0){ html += '<li class="HT_li1"><input type="button" class="HT_btn2" onclick=\'close_windows("error_msg")\'></li>'; } else { html += '<li class="HT_li1"><input type="button" class="HT_btn2" onclick="location.href=\'' + url + '\'"></li>'; } html += '</ul></div>'; $.cover(true); asyncbox.open({ id: 'error_msg', title : title, html : html, 'callback' : function(action){ if(action == 'close'){ $.cover(false); } } }); } //关闭指定id的窗口 function close_windows(id){ $.cover(false); $.close(id); } //公告 var tID; var tn; // 高度 var nStopTime = 5000; // 不同行间滚动时间隔的时间,值越小,移动越快 var nSpeed = 50; // 滚动时,向上移动一像素间隔的时间,值越小,移动越快 var isMove = true; var nHeight = 25; var nS = 0; var nNewsCount = 3; /** * n 用于表示是否为第一次运行 **/ function moveT(n) { clearTimeout(tID) var noticev2 = document.getElementById("noticev2") nS = nSpeed; // 只在第一次调用时运行,初始化环境(有没有参数) if (n) { // 设置行高 noticev2.style.lineHeight = nHeight + "px"; // 初始化显示位置 tn = 0; // 刚进入时在第一行停止时间 nS = nStopTime; } // 判断鼠标是否指向层 if (isMove) { // 向上移动一像素 tn--; // 如果移动到最下面一行了,则移到顶行 if (Math.abs(tn) == nNewsCount * nHeight) { tn = 0; } // 设置位置 noticev2.style.marginTop = tn + "px"; // 完整显示一行时,停止一段时间 if (tn % nHeight == 0) { nS = nStopTime; } } tID = setTimeout("moveT()", nS); } moveT(1); // 此处可以传入任何参数 </script> <script type="text/javascript"> // var _gaq = _gaq || []; // _gaq.push(['_setAccount', 'UA-20237423-2']); // _gaq.push(['_setDomainName', '.chinaunix.net']); // _gaq.push(['_trackPageview']); // // (function() { // var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; // ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; // var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); // })(); </script> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E")); function link(t){ var href= $(t).attr('href'); href+="?url="+encodeURIComponent(location.href); $(t).attr('href',href); //setCookie("returnOutUrl", location.href, 60, "/"); } </script> </body> </html>