在下一页上,橙色的“购买地形图”链接将在IE7(以及Firefox和Safari)中打开一个页面,但不会在IE8中打开。链接位于左上角。
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'));
什么事?
答案 0 :(得分:0)
对我来说很好,虽然IE8的devtools表示以下运行时错误:
线:323 错误:'pageTracker'为null或不是对象