添加到收藏夹的代码
怎么样将代码添加到收藏夹?
<HTML><HEAD>
<title>添加到收藏夹和设置首页代码大全</title>
<metaname="GENERATOR"Content="MicrosoftVisualStudio.NET7.1">
<metaname="CODE_LANGUAGE"Content="C#">
<metaname="vs_defaultClientScript"content="JavaScript">
<metaname="vs_targetSchema"content="http://schemas.microsoft.com/intellisense/ie5">
<scriptlanguage="javascript">
<!--
//添加到收藏夹代码---------------------------------------------
functionbookmarkit()
{
window.external.addFavorite('http://singlepine.cnblogs.com/','小山的博客园')
}
//1.离开网页时弹出
//<bodyonunload="bookmarkit()">
//2.网页载入时弹出
//<bodyonload="bookmarkit()">
//3.右键弹出
document.all.onMouseDown=newFunction("if(event.button==2||event.button==3)window.external.addFavorite('http://singlepine.cnblogs.com/','小山的博客园')")
//4.单击文字弹出
//5.鼠标滑过文字弹出
//----------------------------------------------------
//设为主页代码---------------------------
//1.关闭网页时弹出设为主页对话框代码
//<BODYid=iehomepageonunload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://singlepine.cnblogs.com/')))iehomepage.setHomePage('http://singlepine.cnblogs.com/');">
//2.打开网页弹出设为主页对话框代码
//<BODYid=iehomepageonload="iehomepage.style.behavior='url(#default#homepage)';if(!(iehomepage.isHomePage('http://singlepine.cnblogs.com/')))iehomepage.setHomePage('http://singlepine.cnblogs.com/');">
//3.单击链接设为主页
//4.鼠标滑过设定为主页
//-->
</script>
</HEAD>
<bodyid="iehomepage"MS_POSITIONING="GridLayout">
<formid="Form1"method="post"runat="server">
<ahref="#"onclick="bookmarkit()">加入收藏夹</a><br>
<br>
<br>
<br>
<ahref="#"onmousemove="bookmarkit()">鼠标滑过文字弹出收藏夹</a>
<br>
<br>
<br>
<br>
<ahref="#"onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://singlepine.cnblogs.com/');">
单击链接设为主页</a>
<br>
<br>
<br>
<br>
<ahref="#"onmousemove="this.style.behavior='url(#default#homepage)';this.setHomePage('http://singlepine.cnblogs.com/');">
鼠标滑过设定为主页</a>
</form>
</body>
</HTML>