日期:2014-05-20  浏览次数:20385 次

设为主页 加入收藏 联系我们
设为主页 加入收藏 联系我们 用C#怎么写? 不用JAVA脚本 谢谢!

------解决方案--------------------
C#代码都是在服务器端执行,把结果发到客户端,把以用C#不好实现吧!
------解决方案--------------------
用js吧。
设为首页:
<a class= "chlnk " style= "cursor:hand " HREF onClick= "this.style.behavior=&apos;&apos;url(#default#homepage)&apos;&apos;; this.setHomePage(&apos;&apos;你的网站名称); "> <font color= "000000 " size= "2 " face= "宋体 "> 设为首页 </font> </a>
加入收藏:
<INPUT name=Button2 onclick= "window.external.AddFavorite(location.href, document.title) " type=button value=加入收藏夹>