日期:2014-05-18 浏览次数:20695 次
var oldClassName = ""; var oldtrObj; var oldtrCss = ""; function onMouseOver(cssSelect,cssOver,cssOut) { try{ var trObj = event.srcElement.parentElement; if (trObj.className != cssSelect){ oldClassName = trObj.className; trObj.className = cssOver; } }catch(e){ e.description; } } function onMouseOut(cssSelect,cssOver,cssOut){ try{ var trObj = event.srcElement.parentElement; if (trObj.className != cssSelect){ trObj.className = oldClassName; } }catch(e){ e.description; } } function onClick(cssSelect,cssOver,cssOut){ try{ var trObj = event.srcElement; if (oldtrObj){ oldtrObj.className = oldtrCss; } if (oldClassName == ""){ oldClassName = trObj.className; } trObj.className = cssSelect; oldtrCss = oldClassName; oldtrObj = trObj; }catch(e){ e.description; } }