None.gif<HTML>
None.gif    <HEAD>
None.gif        <title>添加到收藏夹和设置首页代码大全</title>
None.gif        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
None.gif        <meta name="CODE_LANGUAGE" Content="C#">
None.gif        <meta name="vs_defaultClientScript" content="JavaScript">
None.gif        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
ExpandedBlockStart.gifContractedBlock.gif        <script language="javascript">添加到收藏夹和设置首页代码大全_收藏夹_10
InBlock.gif        <!--
InBlock.gif            //添加到收藏夹代码---------------------------------------------
InBlock.gif            function bookmarkit()
ExpandedSubBlockStart.gifContractedSubBlock.gif            添加到收藏夹和设置首页代码大全_收藏夹_10{
InBlock.gif                window.external.addFavorite('','小山的博客园')
ExpandedSubBlockEnd.gif            }
InBlock.gif            //1.离开网页时弹出
InBlock.gif            //<body onunload="bookmarkit()">
InBlock.gif            
InBlock.gif            //2.网页载入时弹出
InBlock.gif            //<body onload="bookmarkit()">
InBlock.gif            
InBlock.gif            //3.右键弹出            
InBlock.gif            document.all.onMouseDown=new Function("if (event.button==2||event.button==3)window.external.addFavorite('/','小山的博客园')")
InBlock.gif            
InBlock.gif            //4.单击文字弹出
InBlock.gif            //5.鼠标滑过文字弹出
InBlock.gif            //----------------------------------------------------
InBlock.gif            
InBlock.gif            //设为主页代码---------------------------            
InBlock.gif            //1.关闭网页时弹出设为主页对话框代码
InBlock.gif            //<BODY id=iehomepage onunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('')))iehomepage.setHomePage('http://singlepine.cnblogs.com/');"> 
InBlock.gif
InBlock.gif            //2.打开网页弹出设为主页对话框代码
InBlock.gif            //<BODY id=iehomepage onload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://singlepine.cnblogs.com/')))iehomepage.setHomePage('http://singlepine.cnblogs.com/');">
InBlock.gif            
InBlock.gif            //3.单击链接设为主页
InBlock.gif            //4.鼠标滑过设定为主页
InBlock.gif            
InBlock.gif        //-->
ExpandedBlockEnd.gif        </script>
None.gif    </HEAD>
None.gif    <body id="iehomepage" MS_POSITIONING="GridLayout">
None.gif        <form id="Form1" method="post" runat="server">
None.gif            <a href="#" onclick="bookmarkit()">加入收藏夹</a><br>
None.gif            <br>
None.gif            <br>
None.gif            <br>
None.gif            <a href="#" onmousemove="bookmarkit()">鼠标滑过文字弹出收藏夹</a>
None.gif            <br>
None.gif            <br>
None.gif            <br>
None.gif            <br>
None.gif            <a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://singlepine.cnblogs.com/');">
None.gif                单击链接设为主页</a>
None.gif            <br>
None.gif            <br>
None.gif            <br>
None.gif            <br>
None.gif            <a href="#" onmousemove="this.style.behavior='url(#default#homepage)';this.setHomePage('http://singlepine.cnblogs.com/');">
None.gif                鼠标滑过设定为主页</a>
None.gif        </form>
None.gif    </body>
None.gif</HTML>