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