設定首頁和添加到收藏夾代碼大全

來源:互聯網
上載者:User

<HTML>
    <HEAD>
        <title>添加到收藏夾和設定首頁代碼大全</title>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" Content="C#">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
        <script language="javascript">
        <!--
            //添加到收藏夾代碼---------------------------------------------
            function bookmarkit()
            {
                window.external.addFavorite('http://www.webjx.com/','網頁教學網')
            }
            //1.離開網頁時彈出
            //<body onunload="bookmarkit()">
           
            //2.網頁載入時彈出
            //<body >
           
            //3.右鍵彈出           
            document.all.onMouseDown=new Function("if (event.button==2||event.button==3)window.external.addFavorite('http://www.webjx.com/','網頁教學網')")
           
            //4.單擊文字彈出
            //5.滑鼠滑過文字彈出
            //----------------------------------------------------
           
            //設為首頁代碼---------------------------           
            //1.關閉網頁時彈出設為首頁對話方塊代碼
            //<BODY id=iehomepage onunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://www.webjx.com/')))iehomepage.setHomePage('http://www.webjx.com/');">

            //2.開啟網頁彈出設為首頁對話方塊代碼
            //<BODY id=iehomepage >
           
            //3.單擊連結設為首頁
            //4.滑鼠滑過設定為首頁
           
        //-->
        </script>
    </HEAD>
    <body id="iehomepage" MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <a href="#" >加入收藏夾</a><br>
            <br>
            <br>
            <br>
            <a href="#" onmousemove="bookmarkit()">滑鼠滑過文字彈出收藏夾</a>
            <br>
            <br>
            <br>
            <br>
            <a href="#" >
                單擊連結設為首頁</a>
            <br>
            <br>
            <br>
            <br>
            <a href="#" onmousemove="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com/');">
                滑鼠滑過設定為首頁</a>
        </form>
    </body>
</HTML>



相關文章

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。