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

< 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:
//singlepine.cnblogs.com/','小山的博客园')
            }

            
//1.离开网页时弹出
            //<body οnunlοad="bookmarkit()">
            
            
//2.网页载入时弹出
            //<body οnlοad="bookmarkit()">
            
            
//3.右键弹出            
            document.all.onMouseDown=new Function("if (event.button==2||event.button==3)window.external.addFavorite('http://singlepine.cnblogs.com/','小山的博客园')")
            
            
//4.单击文字弹出
            //5.鼠标滑过文字弹出
            //----------------------------------------------------
            
            
//设为主页代码---------------------------            
            //1.关闭网页时弹出设为主页对话框代码
            //<BODY id=iehomepage οnunlοad="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://singlepine.cnblogs.com/')))iehomepage.setHomePage('http://singlepine.cnblogs.com/');"> 

            
//2.打开网页弹出设为主页对话框代码
            //<BODY id=iehomepage οnlοad="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://singlepine.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" >
            
< href ="#"  onclick ="bookmarkit()" > 加入收藏夹 </ a >< br >
            
< br >
            
< br >
            
< br >
            
< href ="#"  onmousemove ="bookmarkit()" > 鼠标滑过文字弹出收藏夹 </ a >
            
< br >
            
< br >
            
< br >
            
< br >
            
< href ="#"  onclick ="this.style.behavior='url(#default#homepage)';this.setHomePage('http://singlepine.cnblogs.com/');" >
                单击链接设为主页
</ a >
            
< br >
            
< br >
            
< br >
            
< br >
            
< href ="#"  onmousemove ="this.style.behavior='url(#default#homepage)';this.setHomePage('http://singlepine.cnblogs.com/');" >
                鼠标滑过设定为主页
</ a >
        
</ form >
    
</ body >
</ HTML >
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值