您正在使用 IPV4 [3.142.144.40] 访问本站,您本次已经查看了 1 页
用户名: 密 码: 验证码:     用QQ登录本站
首页 软件 编程 笑话 知识 公告 台风 日历 计算器
[公益]保护绿色环境,构建和谐社会       悟空收录网      

【腾讯云】 爆款2核2G3M云服务器首年 61元,叠加红包再享折上折      
[公益] 地球是我家,绿化靠大家      
2024年 劳动节 011
2024年 端午节 051
2025年 元 旦 256
2025年 春 节 284
 
您现在的位置:首页 >> ASP/ASP.net >> 内容
本类新增
本类热门
asp实现类似的浏览记录的功能
内容摘要: !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-equ......
<!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{

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://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>

版权声明:本内容来源于网络,如有侵犯您的版权,请联系站长,本站收到您的信息后将及时处理。
上一篇:asp 页面允许CACHE的方法

 

下一篇:asp 删除数据并同时删除图片的代码

发布日期:2021/6/15
手机扫二维码直达本页
发布时间:12:34:56
点  击:9
录  入:壹家怡园
相关文章
Baidu
YiJiaCMS 7.3.8 build231228(MSSQL) 闽ICP备05000814号-1
本空间由腾讯云(轻量应用服务器)提供,奇安信网站卫士提供加速防护
运行时间载入中.....