modify_cmd_.html

来自「自己实现一个实用的商店应用系统」· HTML 代码 · 共 47 行

HTML
47
字号
<html>
<head>
<title>树伟之家正在改造此段代码</title>
<script>
var timer;
var win = window.createPopup();
var cmdIndex = 0;
var closeMe = 0;
var currentCmdWindow;

function OpenCmdWindow(height)
{
    if (height < window.screen.availHeight)
    {
        height += 50;
        if (height >= window.screen.availHeight)
        {
            height = window.screen.availHeight;
            win.show(0, 0, window.screen.availWidth, window.screen.availHeight);
        }
        else
        {
            win.show(0, 0, window.screen.availWidth, height);
        }
    }
    else if (!win.isOpen)
    {
        win.show(0, 0, window.screen.availWidth, window.screen.availHeight);
    }
    timer = setTimeout("OpenCmdWindow(" + height + ")", 50);
}

window.onload = function()
{
    win.document.body.innerHTML = "<div id=\"Frame\" onselectstart=\"return false;\"></div>";
    win.document.appendChild(win.document.createElement("STYLE"));
    // win.document.styleSheets[0].addRule("body", "padding: 0px; margin: 0px;");
    win.document.styleSheets[0].addRule("#Frame", "width: 100%; height: 100%; background: #3A6EA5;"); // BgColor
    // win.document.styleSheets[0].addRule(".Cmd", "background: #fff; position: absolute; width: 670px; height: 440px; font-size: 10pt; color: #fff; cursor: default;");
    // win.document.styleSheets[0].addRule(".Title", "filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#6B79B8,endColorStr=#8C9ADB,GradientType=1); height: 24px; font-weight: bold;");
    OpenCmdWindow(0);
}
</script>
</head>
<body>TEST TEST</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?