0
在下一页中,橙色的“Buy Topo Map”链接将在IE7(以及Firefox和Safari)中打开一个页面,但不会在IE8中打开。该链接位于左上角。在onclick事件之后,IE8中未遵循的HREF?
http://www.trailbehind.com/node/1148091/
我使用下面的代码来创建链接:
var a = dec('a');
a.className = 'jLink';
a.style.fontWeight = 'bold';
a.style.color = '#CC5500';
a.style.fontSize = '.8em';
a.target = '_blank';
a.href = 'http://www.mytopo.com/searchgeo.cfm?lat=' + map.target.la + '&lon=' + map.target.lo+'&pid=trailbehind';
a.onclick = function() {
pageTracker._trackEvent("Orange Link", "Buy Topo Map", this.href);
return true;
}
a.appendChild(dct('Buy Topo Map'));
出了什么事?
感谢,以pageTracker其实罪魁祸首。 – 2009-07-01 00:45:47