87,990
社区成员
发帖
与我相关
我的任务
分享
/*************************************
*描述:根据表情分类,加载该分类的表情列表
*@selecter:当某个表情被点击时,该表情的alt属性值将写入的文本框(多行)的JQuery选择器。
*@classId:该表情分类的id
/************************************/
function fnLoadFaceItems(selecter,classId) {
$.post("/Home/GetFaces.jzking/" + classId, function(result) {
$("#FaceContent").replaceWith(result);
$(".imgFace").unbind("click");//imgFace是,单个表情的class
$(".imgFace").click(function() {
$(selecter).setCaret();
$(selecter).insertAtCaret($(this).attr("alt"));
$(".FaceBoxLayer").hide();
});
});
}
fnLoadFaceItems("#MainTxtBox",this.id);//此方法位于faceDlg.js中
头晕