试一下新博客

主要是代码

    function topnavMore(e) {
        var hidList = document.getElementById("topnav_hidlist");
        hidList.style.display = hidList.style.display == "block" ? "none" : "block";
        hidList.style.left = e.offsetLeft - 7 + "px";
        e.blur();
        return false;
    }
    document.body.onclick = function (event) {
        event = event || window.event;
        var target = event.target || event.srcElement;
        if (target.id != "topnav_btnmove")
            document.getElementById("topnav_hidlist").style.display = "none";
    };

试一下新博客_第1张图片

大笑


你可能感兴趣的:(试一下新博客)