⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numericscrollexample2.htm

📁 这是javascript高级程序设计的源码
💻 HTM
字号:
<html>
    <head>
        <title>Numeric Scroll Example</title>
        <script type="text/javascript" src="detect.js"></script>
        <script type="text/javascript" src="eventutil.js"></script>
        <script type="text/javascript" src="textutil.js"></script>
    </head>
    <body>
        <p>Type a number into the textbox, then press the up or down arrow. The value won't
        decrement below 0 and won't increment above 100.</p>
        <form method="post" action="javascript:alert('Submitted')">
                <input type="text" onkeypress="return TextUtil.allowChars(this, event)" 
                    validchars="0123456789" onblur=" TextUtil.blurAllow(this)" 
                    onkeydown=" TextUtil.numericScroll(this, event)" 
                    max="100" min="0" />
            <input type="submit" value="Submit Form" />
        </form>
    </body>
</html>

⌨️ 快捷键说明

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