• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

      2. 用 Javascript 實(shí)現(xiàn)錨點(diǎn)(Anchor)間平滑跳轉(zhuǎn)

        時(shí)間:2024-05-26 18:57:55 JavaScript 我要投稿
        • 相關(guān)推薦

        用 Javascript 實(shí)現(xiàn)錨點(diǎn)(Anchor)間平滑跳轉(zhuǎn)


        復(fù)制代碼 代碼如下:

        <script type="text/javascript">

        // 說明:用 Javascript 獲取滾動(dòng)條位置等信息

        // 來源 :ThickBox 2.1

        function getScroll()

        {

        var t, l, w, h;

        if (document.documentElement && document.documentElement.scrollTop) {

        t = document.documentElement.scrollTop;

        l = document.documentElement.scrollLeft;

        w = document.documentElement.scrollWidth;

        h = document.documentElement.scrollHeight;

        } else if (document.body) {

        t = document.body.scrollTop;

        l = document.body.scrollLeft;

        w = document.body.scrollWidth;

        h = document.body.scrollHeight;

        }

        return { t: t, l: l, w: w, h: h };

        }

        </script></p

        【用 Javascript 實(shí)現(xiàn)錨點(diǎn)(Anchor)間平滑跳轉(zhuǎn)】相關(guān)文章:

        JavaScript實(shí)現(xiàn)網(wǎng)頁刷新代碼段08-07

        常用排序算法之JavaScript實(shí)現(xiàn)代碼段06-04

        JavaScript 小型打飛機(jī)游戲?qū)崿F(xiàn)和原理說明08-18

        有關(guān)javascript實(shí)現(xiàn)的多個(gè)層切換效果通用函數(shù)示例10-07

        關(guān)jQuery彈出窗口簡單實(shí)現(xiàn)代碼-javascript編程06-07

        JavaScript類定義原型方法的兩種實(shí)現(xiàn)的區(qū)別07-11

        對javascript的理解08-08

        關(guān)于ASP.NET使用JavaScript顯示信息提示窗口實(shí)現(xiàn)原理及代碼05-09

        常用的JavaScript模式09-22

        Javascript的this用法簡述08-15

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 日本三级香港三级三级人!妇久 | 亚洲精品在线免费 | 亚洲中精品级在线 | 亚洲五月综合缴情在线观看 | 亚洲色中文字幕制服丝袜 | 亚洲国产欧美在线观看片不卡 |

            用 Javascript 實(shí)現(xiàn)錨點(diǎn)(Anchor)間平滑跳轉(zhuǎn)


            復(fù)制代碼 代碼如下:

            <script type="text/javascript">

            // 說明:用 Javascript 獲取滾動(dòng)條位置等信息

            // 來源 :ThickBox 2.1

            function getScroll()

            {

            var t, l, w, h;

            if (document.documentElement && document.documentElement.scrollTop) {

            t = document.documentElement.scrollTop;

            l = document.documentElement.scrollLeft;

            w = document.documentElement.scrollWidth;

            h = document.documentElement.scrollHeight;

            } else if (document.body) {

            t = document.body.scrollTop;

            l = document.body.scrollLeft;

            w = document.body.scrollWidth;

            h = document.body.scrollHeight;

            }

            return { t: t, l: l, w: w, h: h };

            }

            </script></p