asp.net dropdownlist onmousehover event fire dropdown display data
I have asp:DropDownList control which i want to display data to user who don't want to click on 开发者_开发技巧it. But user only want to make Mouse hover over asp:DropDownList Control. Is there any possible way to make it without using datalist control or gridview ? If so let me know it please.
<script>
function Open_ddl(ddl) {
document.getElementById(ddl).size = 5
}
function Close_ddl(ddl) {
document.getElementById(ddl).size = 1
}
</script>
...
<asp:DropDownList ID="ddlPostClaim" runat="server" onmouseover="Open_ddl('ddlPostClaim')" onmouseout="Close_ddl('ddlPostClaim')"></asp:DropDownList>
This does however create a new problem where the mouseover over the menu items will not highlight them, at least for me. Nonetheless, it's a start.
精彩评论