//用于决定下拉菜单的代码 function getPos(el,sProp) { var iPos = 0 while (el!=null) { iPos+=el["offset" + sProp] el = el.offsetParent } return iPos } function pozi(sa,left,top){ //menuwenxue.style.visibility="visible" //menuwenxue.style.left=left //menuwenxue.style.top=top sa.style.visibility="visible" sa.style.left=left-7 sa.style.top=top-22 } function mOvr(src, cOvr,item) { if (!src.contains(event.fromElement)) {src.style.cursor = "default";src.bgColor = cOvr;} item.style.color = "#ffffff"; } function mOut(src, cOut,item) {if (!src.contains(event.toElement)) {src.style.cursor = "default";src.bgColor = cOut;} item.style.color = "#000000"; } function showmenu(menu){ menu.style.visibility="visible" } function hidemenu(menu){ menu.style.visibility="hidden" }