<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">

        var height = 0;

        function previousPage() {
            if (height > 0) {
                height -= 280;
            }
            var e = document.getElementById("content");
            e.scrollTop = height;
        }

        function nextPage() {
            height += 280;
            var e = document.getElementById("content");
            e.scrollTop = height;
        }
    </script>
</head>
<body>
    <div width: 500px; height: 400px; overflow: scroll;
        overflow-x: hidden; overflow-y: hidden;">
    </div>
    <div>
        <input type="button" value="上一页" onclick="previousPage();"  />
        <input type="button" value="下一页" onclick="nextPage();"  />
    </div>
</body>

触摸屏飘过,搞死了

相关文章: