Windows live writerテスト

5146 ワード

これはテストログです!
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();

                }

            }

        });

    });

});