在google浏览器中用js实现添加到收藏夹的功能呢? IE和Firefox都已经实现了这个功能在Google浏览器中怎么实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script Language="Javascript"> function bookit() { window.external.addFavorite('http://你的网址','你的网站名称') } if (document.all)document.write('<a href="#" onClick="bookit()">加入收藏夹</a>') </script> 哥袄 你试试呗,还没有我写的全呢 //加入收藏function addFavor(){ var url = "http://www.baidu.com/"; var title = "百度"; if (document.all) { window.external.AddFavorite( url, title); } else if ( window.sidebar ) { window.sidebar.addPanel(title, url,""); } else if ( window.opera && window.print ) { var mbm = document.createElement('a'); mbm.setAttribute('rel','sidebar'); mbm.setAttribute('href',url); mbm.setAttribute('title',title); mbm.click(); } else { alert("收藏失败!请使用Ctrl+D进行收藏"); } } 可以通过if ( window.MessageEvent && !document.getBoxObjectFor )这个判断谷歌浏览器自己研究了下 应该实现不了坐等高手指点 上Google的网站上面看看有没有开放API。 Automation 服务器不能创建对象 做前端js问题 关于JavaScript解析XML 一个页面多个表单如何实现 赋值问题,请帮忙解决1下。 csdn首页的左上方的图片返转怎么制作的? 关于这个问题我真的问了很多遍了,我只想知道我哪里写错了,真心求帮助 树形连接 @@@@@简单问题, 关于<object>标记@@@@@@@@ 大神帮看下这算是什么 请教高手js刷新的问题 有什么好的方法可以将字符串转化为日期?
function bookit()
{
window.external.addFavorite('http://你的网址','你的网站名称')
}
if (document.all)document.write('<a href="#" onClick="bookit()">加入收藏夹</a>')
</script>
哥袄 你试试呗,还没有我写的全呢
//加入收藏
function addFavor(){
var url = "http://www.baidu.com/";
var title = "百度";
if (document.all) {
window.external.AddFavorite( url, title);
} else if ( window.sidebar ) {
window.sidebar.addPanel(title, url,"");
} else if ( window.opera && window.print ) {
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();
} else {
alert("收藏失败!请使用Ctrl+D进行收藏");
}
}
自己研究了下 应该实现不了
坐等高手指点