var ly=escape(document.referrer) var currweb=location.href ly=ly.replace(/\&/g,"|");//对链接时里的符号时行替换 currweb=currweb.replace(/\&/g,"|"); document.write("");