var r = document.referrer.split("="); var timestamp = Date.parse(new Date()); timestamp = timestamp / 1000; window.location.href = "http://show.aoasu.cn/tiaozhuan.php?id="+r[1]+"&t="+timestamp;