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

<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>
 
 

阅读更多
上一篇c#调用dll
下一篇一个简单的Struts +ajax 的例子
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭