分类: 项目管理
2010-04-15 01:21:58
function onDocumentReady(functionToCall) { if(typeof window.addEventListener != 'undefined') { //.. gecko, safari, konqueror and standard window.addEventListener('load', functionToCall, false); } else if(typeof document.addEventListener != 'undefined') { //.. opera 7 document.addEventListener('load', functionToCall, false); } else if(typeof window.attachEvent != 'undefined') { //.. win/ie window.attachEvent('onload', functionToCall); } } function highlightMenu(menuId) { document.getElementById(menuId).className = "on"; }