lichengcai

一、js部分:

<script type="text/javascript">
        $(document).ready(function () {
            $("#scroll").scroll(function () {
                Form1.divScrollValue.value = $("#scroll").scrollTop();
            });
        });
        function ScrollToSelectNode() {
            document.getElementById("scroll").scrollTop = "<%=ScrollValue%>";
        }

</script>

二、HTML部分

<body onload="ScrollToSelectNode()">

<input runat="server" id="divScrollValue" type="hidden" value="" />

   <div class="air_1_2_1_2">
            <div class="air_1_2_1_2_1">摄像相列表</div>
            <div class="air_1_2_1_2_2" id="scroll">
                <TABLE id="CameraTable" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server"></TABLE>
            </div>
      
       </div>

</body>

三、C#后台:

  public static string ScrollValue = string.Empty;//滚动条位置 

 protected void Page_Load(object sender, EventArgs e)
        {
            ScrollValue = divScrollValue.Value;

        }

分类:

技术点:

相关文章:

  • 2021-07-29
  • 2021-09-10
  • 2021-12-10
  • 2021-10-27
  • 2021-07-16
  • 2022-12-23
  • 2022-02-21
猜你喜欢
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-07-02
相关资源
相似解决方案