关闭

添加到收藏夹和设置首页代码大全

标签: javascriptmicrosoftgeneratorfunctionurlserver
2188人阅读 评论(1) 收藏 举报

<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://skyblue.cnblogs.com/','天纯蓝的博客园')
            }
            //1.离开网页时弹出
            //<body onunload="bookmarkit()">
           
            //2.网页载入时弹出
            //<body onload="bookmarkit()">
           
            //3.右键弹出           
            document.all.onmousedown=new function("if (event.button==2||event.button==3)window.external.addfavorite('http://skyblue.cnblogs.com/','天纯蓝的博客园')")
           
            //4.单击文字弹出
            //5.鼠标滑过文字弹出
            //----------------------------------------------------
           
            //设为主页代码---------------------------           
            //1.关闭网页时弹出设为主页对话框代码
            //<body id=iehomepage onunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.ishomepage('http://skyblue.cnblogs.com/')))iehomepage.sethomepage('http://singlepine.cnblogs.com/');">

            //2.打开网页弹出设为主页对话框代码
            //<body id=iehomepage onload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.ishomepage('http://skyblue.cnblogs.com/')))iehomepage.sethomepage('http://singlepine.cnblogs.com/');">
           
            //3.单击链接设为主页
            //4.鼠标滑过设定为主页
           
        //-->
        </script>
    </head>
    <body id="iehomepage" ms_positioning="gridlayout">
        <form id="form1" method="post" runat="server">
            <a href="#" onclick="bookmarkit()">加入收藏夹</a><br>
            <br>
            <br>
            <br>
            <a href="#" onmousemove="bookmarkit()">鼠标滑过文字弹出收藏夹</a>
            <br>
            <br>
            <br>
            <br>
            <a href="#" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://singlepine.cnblogs.com/');">
                单击链接设为主页</a>
            <br>
            <br>
            <br>
            <br>
            <a href="#" onmousemove="this.style.behavior='url(#default#homepage)';this.sethomepage('http://singlepine.cnblogs.com/');">
                鼠标滑过设定为主页</a>
        </form>
    </body>
</html>
 
 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:67186次
    • 积分:1175
    • 等级:
    • 排名:千里之外
    • 原创:46篇
    • 转载:3篇
    • 译文:1篇
    • 评论:9条
    文章分类
    最新评论