windows live writer 测试

这是一个一篇测试日志!

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();
                }
            }
        });
    });
});

转载于:https://www.cnblogs.com/ddsh/p/4011246.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值