js获取收藏夹内容 我想实现这样的功能:在网页中显示用户收藏夹中的网站,这样就不用再进收藏夹访问网站了。js中有找到加入收藏夹的方法,而读取收藏夹的目前还没有答案。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 读不到了,浏览器把这种API全部关了 只能acx来弄了,js没有权利读取用户的收藏夹 虽然获取不到收藏夹的内容,给你一段最近访问过的网址的代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>看看你上过哪些网站</title></head><body><style>a{display:none}a:visited{display:none; font-size:60px}</style><script>function hasVisted(url){ var lnk = document.createElement("a"); lnk.href = url; document.body.appendChild(lnk); try{ var sty = lnk.currentStyle || getComputedStyle(lnk, null); return sty.fontSize == "60px"; } catch(e){} finally{ document.body.removeChild(lnk); }}</script><p>你最近浏览过:</p><script>var demo = [ "http://www.google.com", "http://www.baidu.com", "http://tieba.baidu.com", "http://hi.baidu.com", "http://www.qq.com", "http://qzone.qq.com", "http://www.163.com", "http://www.sina.com", "http://www.sohu.com", "http://www.cnblogs.com", "http://www.csdn.com", "http://community.csdn.net", "http://bbs.blueidea.com"];var url;for(var i=0; i<demo.length; i++){ url = demo[i]; if(hasVisted(url)) document.write("<img src='" + url + "/favicon.ico' /> " + url + "<br />");}</script></body></html> 求教 关于Jquery 无刷新分页插件问题 ,求解 js在Firefox中报错 javascript怎么做个倒计时啊?精确到秒 转换问题 各位帮我看看这窗口是咋回事呢? 求用JavaScript代码写的:在5秒钟后自动转到另一个页面 有NS的朋友请帮忙测试一下我的代码,看是否只是我的NS有问题才是这样?熟悉NS的希望也能帮忙看看! 如何通过JavaScript把一段比较长的HTML格式的信息传到HTML编辑器中? 请问如何做拼图游戏? 指定对象边框闪烁 js或JQ控制显示隐藏
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>看看你上过哪些网站</title>
</head>
<body>
<style>
a{display:none}
a:visited{display:none; font-size:60px}
</style>
<script>
function hasVisted(url)
{
var lnk = document.createElement("a"); lnk.href = url;
document.body.appendChild(lnk); try{
var sty = lnk.currentStyle || getComputedStyle(lnk, null);
return sty.fontSize == "60px";
}
catch(e){}
finally{
document.body.removeChild(lnk);
}
}
</script><p>你最近浏览过:</p><script>
var demo = [
"http://www.google.com",
"http://www.baidu.com",
"http://tieba.baidu.com",
"http://hi.baidu.com",
"http://www.qq.com",
"http://qzone.qq.com",
"http://www.163.com",
"http://www.sina.com",
"http://www.sohu.com",
"http://www.cnblogs.com",
"http://www.csdn.com",
"http://community.csdn.net",
"http://bbs.blueidea.com"
];var url;
for(var i=0; i<demo.length; i++)
{
url = demo[i];
if(hasVisted(url))
document.write("<img src='" + url + "/favicon.ico' /> " + url + "<br />");
}
</script>
</body>
</html>