<a class="topother" href="javascript:window.external.addFavorite('http://www.url.com','显示的名字')" onclick="this.blur();">添加收藏</a>
<a class="topother" href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.url.com');this.blur();">设为首页</a>
<a class="topother" href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.url.com');this.blur();">设为首页</a>
解决方案 »
- javascript中继续组合继承的问题
- 请教一个在js中调用jsr问题
- script里的src动态赋值
- 还是响应鼠标单击与双击的问题,求助各位了?
- 一个提取网页部分内容的一个特殊要求(可能有点难度哈),在线等!
- 判断日期输入是否合法的正则,要匹配:2004-8-1,2004-08-01,2004-8-12,2004-11-1(2004-22-42为不合法!)急用!!!
- 新手上路,简单的问题却也报错。
- 急急!请大家帮忙!!
- js中能否控制textarea的大小
- [求助]arcgis js调用天地图服务问题
- 问题简单,但是想弄透彻...望大家来解疑...
- Js responseText返回值处理问题
function AddFavorite(strUrl,strTitle){
if (document.all){
window.external.addFavorite(strUrl,strTitle);
}else if (window.sidebar) {
window.sidebar.addPanel(strTitle,strUrl,'');
}
}