这是一个一篇测试日志!
Technorati 标记: 1
<a onClick="alert();">text</a>
$(document).ready(function() { //鼠标移到新增消息层绑定事件 $("#messageListDiv").delegate(".singleMessageDiv,.multiMsgDiv", "mouseover", function() { var className = this.className; var arrivalOffset = $(this).offset(); $("#mouseoverDiv").css({ height: $(this).outerHeight(), width: $(this).outerWidth() + "px", left: arrivalOffset.left + "px", top: arrivalOffset.top + "px", }).css("z-index", "2").show(); $("#currentDivID").val($(this).attr("id")); }); //鼠标移出填出层事件 $("#mouseoverDiv").mouseout(function() { hideMouseoverDiv(); }); //隐藏弹出层事件 function hideMouseoverDiv() { if ($("#mouseoverDiv")) $("#mouseoverDiv").hide(); } //图文消息编辑 $("#edit_").click(function() { var currentDivID = $("#currentDivID").val(); var appMessageType = $("#" + currentDivID + " .appMessageType").val(); window.location.href = "<%=utb.getURL("wxAppMessageModify.do ") %>&appMessageId=" + currentDivID + "&appMessageType=" + appMessageType + "&platformFakeId=<%=platformFakeId %>"; }); //图文消息删除 $("#remove_").click(function() { sendAjaxRequest("post", "<%=utb.getURL("wxAppMessageDeleteBefore.do ")%>", "platformFakeId=<%=platformFakeId%>&appMessageId=" + $("#currentDivID").val(), function(data) { var count = data.count; if (count > 0) { alert("本图文已被选择,请解除后再删除。"); return; } else { document.messageDeleteForm.appMessageId.value = $("#currentDivID").val(); if (confirm("此操作不可恢复,确认删除此图文消息?")) { window.ly.style.display = "block"; window.ly.style.width = window.screen.availWidth * 68.6 / 100; window.ly.style.height = document.body.scrollHeight * 100 / 85; deleteAuth.checkAuth(); } } }); }); });