<html>
<body>
<p><a href="http://www.sohu.com.cn" id="p">sohu</a></p>
</body>
<script language="javascript">
var path = location.href;
var i = 0;
if(path.indexOf("?") != -1)
{
i = 1;
path = path.replace(/[^\?]*\?/gi,"");
}
if(i == 1)
{
var n = document.all.length;
for(i=1;i<n;i++)
{
if(document.all[i].tagName == "A")document.all[i].href = document.all[i].href + "?" + path;
}
}
</script>
</html>
<body>
<p><a href="http://www.sohu.com.cn" id="p">sohu</a></p>
</body>
<script language="javascript">
var path = location.href;
var i = 0;
if(path.indexOf("?") != -1)
{
i = 1;
path = path.replace(/[^\?]*\?/gi,"");
}
if(i == 1)
{
var n = document.all.length;
for(i=1;i<n;i++)
{
if(document.all[i].tagName == "A")document.all[i].href = document.all[i].href + "?" + path;
}
}
</script>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货