date: 2015-08-24 08:39
onfocus onblur
获得 失去焦点
function $(ID){return document.getElementById(ID)}function showTab(ID){for(var i=1;i<4;i++){if(ID==i){$('tab'+i).blur();$("tab"+i).className="on";$("cont"+i).style.display="block";}else{$("tab"+i).className="off";$("cont"+i).style.display="none";}}return false;}