zoukankan      html  css  js  c++  java
  • 添加到收藏夹和设置首页代码大全

    <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">
                   <script language="javascript">
            <!-- //添加到收藏夹代码---------------------------------------------
                function bookmarkit()
                {
                    window.external.addFavorite('http://www.baidu.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.baidu.com /','百度')")
               
                //4.单击文字弹出
                //5.鼠标滑过文字弹出
                //----------------------------------------------------
               
                //设为主页代码---------------------------           
                //1.关闭网页时弹出设为主页对话框代码
                //<BODY id=iehomepage onunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://www.baidu.com/')))iehomepage.setHomePage('http://www.baidu.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.baidu.com/');">
                    鼠标滑过设定为主页</a>
            </form>
        </body>
    </HTML>

  • 相关阅读:
    Day2----Python常用模块
    Day1--Python基础知识
    AES加密
    MOS管基本MOS管基本认识(快速入门)认识(快速入门)
    printf定义宏方便调试
    ESP8266上电透传与手动透传AT指令设置笔记
    三态门与高阻态
    步进电机原理
    关于stm32 MCU申请动态内存malloc的认识
    高低位数据分离的两种方法
  • 原文地址:https://www.cnblogs.com/bohanfu/p/5752074.html
Copyright © 2011-2022 走看看