function comentcheckcode() { document.getElementById('checkcode').src='/SKCMS/code.asp?s='+Math.random(); } function check() { KindEditor.sync('#skcmbcoment'); $.post("/SKCMS/BBS/Comment.asp?Action=WriteSave",{ModeID:$("#ModeID").val(),ID:$("#ID").val(),ClassID:$("#ClassID").val(),username:$("#username").val(),Email:$("#Email").val(),Code:$("#Code").val(),Content:$("#skcmbcoment").val(),score0:$("#score0").val(),score1:$("#score1").val(),score2:$("#score2").val(),score3:$("#score3").val()},resultss); return true; } function resultss(ee) { if (ee == "error") { alert("本栏目禁止发表评论!");} else if(ee == "error1") { alert("本栏目只允许会员发表评论,请注册后再发表!"); } else if(ee == "error2") { alert("验证码有误,请重新输入!"); } else if(ee == "error3") { alert("参数传递有误!"); } else if(ee == "error4") {alert("请填写内容!"); } else if(ee == "error5") { alert("您的账号已被管理员锁定,请与管理员联系或选择游客发表!"); } else if(ee == "error6") { alert("内容过长!"); } else { if (ee == "oncoment") { alert("已经关闭评论系统!"); } else if (ee == "mansuccess1") { SK_success("你的评论发表成功,等待管理员审核!"); } else { $("#skcmsfbpl").hide(); $("#sk_removeadd").hide(); $("#sk_addcontent").show(); KindEditor.remove('textarea[name="skcmbcoment"]'); $('#load_comment').append('
'+ee+'
') ajload('/SKCMS/BBS/js.asp?ModeID=6&ClassID=201303645919&ID=9732&CID='+ee,'load_comment'+ee,'info_comment'); } } } $(function() { $('input[name=sk_addcontent]').click(function() { $("#skcmsfbpl").show(); $("#sk_removeadd").show(); $(".bbsdbtn").hide(); $("#sk_addcontent").hide(); document.getElementById('checkcode').src='/SKCMS/Code.asp?s='+Math.random(); $.getScript('/editor/kindsoft/kindeditor-min.js', function() { KindEditor.basePath = '/editor/kindsoft/'; KindEditor.create('textarea[name="skcmbcoment"]',{ allowImageUpload:false, items : [ 'undo', 'redo', '|', 'image', 'table', 'clearhtml', '|', 'fontsize', 'forecolor', 'hilitecolor', 'bold', 'justifyleft','justifycenter','justifyright','|', 'fullscreen','baidumap', 'emoticons','preview'], width : '100%' } ); }); }); $('input[name=sk_removeadd]').click(function() { $("#skcmsfbpl").hide(); $("#sk_removeadd").hide(); $(".bbsdbtn").show(); $("#sk_addcontent").show(); KindEditor.remove('textarea[name="skcmbcoment"]'); }); }); document.write("
") document.write(" ") document.write("
")