页面中
onclick="TabClick(957,event)"
JS处理方法
function TabClick(colId,e) {
cityTourSortBy(1, 1, colId, 1);
jQuery(".sort").change(function() {
cityTourSortBy(1, this, colId, 1);
});
var targ;
if (!e) var e = window.event;
if (e.target)
{
targ = e.target;
}
else if (e.srcElement)
{
targ = e.srcElement;
}
if (targ.nodeType == 3) // defeat Safari bug
{
targ = targ.parentNode;
}
jQuery(".tourBnbox .choseTab").attr('class', 'tourBnTab');
if (targ.className == "tourBnTab") {
targ.className = "choseTab";
}
}
对于Event ,IE跟FF不同,
具体在:
http://www.w3school.com.cn/htmldom/dom_obj_event.asp
真是折腾。