js 下拉框 onmouseover onmousemove !!
为什么option 里无法捕获onmouseover onmousemove 等事件呢????
select style="width:100px"我是定了的 但是里面有的item超出了这个长度无法全部显示出来 所以我写了
function showTitleDiv(obj, content)
{
var divObj = document.getElementById('titleDiv');
divObj.style.display = 'block';
divObj.style.top = obj.offsetTop;
divObj.style.left = obj.offsetLeft;
divObj.innerHTML = content;
}
<select class="textinput" onchange="showList1(this.options[this.options.selectedIndex].value)" name="first" style="width:170px">
<%Iterator it = new LinkMenuDAO().getMenu();
while(it.hasNext()){
Object gwmc =it.next();
if(gwmc != null)
out.println("<option value='"+gwmc+"' onmouseover='showTitleDiv(this, \""+gwmc+"\");'>"+gwmc+"</option>");
}%>
</select>
但是option里捕获不到onmouseover