博汇彩票

  • <tr id='oeXMUZ'><strong id='oeXMUZ'></strong><small id='oeXMUZ'></small><button id='oeXMUZ'></button><li id='oeXMUZ'><noscript id='oeXMUZ'><big id='oeXMUZ'></big><dt id='oeXMUZ'></dt></noscript></li></tr><ol id='oeXMUZ'><option id='oeXMUZ'><table id='oeXMUZ'><blockquote id='oeXMUZ'><tbody id='oeXMUZ'></tbody></blockquote></table></option></ol><u id='oeXMUZ'></u><kbd id='oeXMUZ'><kbd id='oeXMUZ'></kbd></kbd>

    <code id='oeXMUZ'><strong id='oeXMUZ'></strong></code>

    <fieldset id='oeXMUZ'></fieldset>
          <span id='oeXMUZ'></span>

              <ins id='oeXMUZ'></ins>
              <acronym id='oeXMUZ'><em id='oeXMUZ'></em><td id='oeXMUZ'><div id='oeXMUZ'></div></td></acronym><address id='oeXMUZ'><big id='oeXMUZ'><big id='oeXMUZ'></big><legend id='oeXMUZ'></legend></big></address>

              <i id='oeXMUZ'><div id='oeXMUZ'><ins id='oeXMUZ'></ins></div></i>
              <i id='oeXMUZ'></i>
            1. <dl id='oeXMUZ'></dl>
              1. <blockquote id='oeXMUZ'><q id='oeXMUZ'><noscript id='oeXMUZ'></noscript><dt id='oeXMUZ'></dt></q></blockquote><noframes id='oeXMUZ'><i id='oeXMUZ'></i>
                SEO是什●麽意思?SEO等於搜索引擎優化,它是基於搜索引擎的一種網絡營銷方式,隸屬於SEM!!

                對聯代碼分享

                作者:哥哥 687℃ 0評論

                以下是一個對▓聯代碼,如果大家喜歡,可以粘貼復制。 <!doctype html> <html> <head> <meta charset=”utf-8″& […]

                以下是一個對聯代碼,如果大家喜歡,可以粘貼復制。

                <!doctype html>
                <html>
                <head>
                <meta charset=”utf-8″>
                <title>對聯js</title>
                <style>
                *{ margin:0; padding:0;}
                #content{ width:960px; height:3000px; margin:0 auto; border:1px solid #CCC;}
                #advLeft,#advRight{ position:fixed; top:100px; width:100px; height:400px; background:#CCC;}
                #advLeft{ left:50%; margin-left:-591px;}
                #advRight{ left:50%; margin-left:491px;}
                </style>
                </head>

                <body>
                <div id=”content”>
                </div>
                <a id=”advLeft” href=”javascript:;”>左</a>
                <a id=”advRight” href=”javascript:;”>右</a>
                <script>
                window.onload = function()
                {
                ie6Fixed(‘advLeft’,’advRight’);
                }

                function ie6Fixed(oAdvLeft,oAdvRight)
                {
                if(window.navigator.userAgent.indexOf(‘MSIE 6′)==-1){return ”;}//如果瀏覽器非IE6則返回;
                var oAdvL = document.getElementById(oAdvLeft);//獲取左聯
                var oAdvR = document.getElementById(oAdvRight);//獲取右聯
                var iAdvTop = parseInt(getStyle(oAdvL,’top’));//獲取對聯的初始頂部值
                var iAdvHeight = parseInt(getStyle(oAdvL,’height’));//獲取對聯的初始高度〓值

                oAdvL.style.overflow = oAdvR.style.overflow = ‘hidden’;
                oAdvL.style.position = oAdvR.style.position = ‘absolute’;

                window.onscroll = window.onresize = function()//當頁面滾動或者頁面縮◣放時
                {
                if(document.documentElement.clientHeight <= iAdvHeight + iAdvTop)//如果窗口高度小於等於對聯的初始高度與初始頂部值之和
                {
                setScrollTop(getScrollTop());//設置scrollTop
                oAdvL.style.height = oAdvR.style.height = Math.max(0,document.documentElement.clientHeight-iAdvTop) + ‘px’; //設置對聯的高度,防止頁面滾動到底部時繼續向下滾動
                }
                else
                {
                oAdvL.style.height = oAdvR.style.height = iAdvHeight + ‘px’;//如果窗口高度大於對聯的初始高度與初始頂部值之和還原對聯初始值
                }

                oAdvL.style.top = oAdvR.style.top = getScrollTop()+iAdvTop+’px’;//設置對聯的頂部值
                }

                //獲得scrollTop
                function getScrollTop()
                {
                return document.documentElement.scrollTop || document.body.scrollTop;
                }
                //設置scrollTop
                function setScrollTop(iScrollTop)
                { www.xminseo.com
                document.documentElement.scrollTop = document.body.scrollTop = iScrollTop;
                }
                //獲得計Ψ 算後的樣式
                function getStyle(obj,attr)
                {
                return obj.currentStyle?obj.currentStyle[attr]:getComputedStyle(obj,false)[attr];
                }
                }
                </script>
                </body>
                </html>

                當前位置:博创彩票 » 網站開發技術 »
                本文地址:/14697.html
                喜歡 (7)or分享 (0)
                發表我的評論
                取消評論
                表情

                Hi,您需要填寫昵稱和郵箱!

                • 昵稱 (必填)
                • 郵箱 (必填)
                • 網址