ASP.NET中怎么样将页面设为首页,加入收藏夹

<span onClick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.*****.com');" style="CURSOR: hand">//
<a
href="#"
onClick="window.external.addFavorite('http://www.****.com','你的公司名称')"title=你的公司名称' >

 

<input type=button value=导入收藏夹 οnclick=window.external.ImportExportFavorites(true,"http://localhost");>
<input type=button value=导出收藏夹 οnclick=window.external.ImportExportFavorites(false,"http://localhost");>
<input type=button value=整理收藏夹 οnclick="window.external.ShowBrowserUI('OrganizeFavorites', null)">
<input type=button value=查看源文件 οnclick="window.location = 'view-source:'+ window.location.href">
<input type=button value=语言设置 οnclick="window.external.ShowBrowserUI('LanguageDialog', null)">
<input type=button value=加入收藏夹 οnclick="window.external.AddFavorite('http://www.****.com/', '风闪下载')">
<input type=button value=加入到频道 οnclick="window.external.addChannel('http://www..****..com/')">
<input type=button value=设成主页 οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www..****..com/')">

 

给一个网站上设置"设为主页"和"加入收藏夹"的代码应该怎么写?(在一个小图片上面加)


<A href="#" οnmοuseοver="window.external.addFavorite('http://www.****.com/','e时区特色论坛')" target="_self" >收藏本页</A>
<a href="#" οnmοuseοver="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.****.com/');" target="_self">设为主页</a>


设为主页
<A href=# οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');">图片</A>
-----------------------------------------
加如收藏
<A href="javascript:window.external.AddFavorite('http://www.baidu.com','百度')">图片</A>


加入收藏
<a href="javascript:window.external.AddFavorite('http://www.baidu.com','百度')">加入收藏</a>
首页
<span οnclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');" style="CURSOR: hand"><br>设为首页</br></span>


<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage
('http://www....../');">设为首页</a> <IMG height=11
src="images/dot.gif" width=12 border=0> <a href=# onClick="window.external.addFavorite('http://www....../','****');return(false)">收藏本站</a>

 

将其中"www......"换成你的网页地址
"****"换成你的网站名字

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值