您的位置:首页 > 编程语言 > Go语言

制作 类似 google 下拉框的用户自定义控件的实现思路

2008-04-17 15:31 459 查看
如果做如下效果:
<input name='itemname' autocomplete="off" id='itemname' value='' onkeydown="focusToDropDown('itemsForDropdown')" onkeyup="getItemsForDropdown('itemsForDropdownLayer','itemsForDropdown','itemname','hidXml',this);" />
<div id='itemsForDropdownLayer' onmouseover="MoverToDropDownLayer('itemsForDropdown');" style='display: none; position:absolute; width:120px; left: 120; top: 90; z-index:2'
onmouseout="hideMe('itemsForDropdownLayer','none');">
<select id='itemsForDropdown' class="combo-list" onkeydown="selectOnReturn('itemsForDropdownLayer','itemname',this);" onclick="getSelectedLabel('itemsForDropdownLayer','itemname',this);"
style='width: 100%;' size='16'> <option value=''></option> </select> </div>
部分脚本代码参考:

function getItemsForDropdown(id,idSelect,idText,idFields,obj)

//来源于XMLHTTP异步获取,

E8.Net工作流平台为企业应用开发提供了一个起点,欢迎访问 :http://***/productFlow.htm

E8.Net工作流平台 提升企业战略执行力
http://***

E8在线,打造中小企业一站式管理软件租用平台

http://www.onlinee8.net

E8系列软件又添新成员 E8CRM 带流程管理的CRM : http://www.e8crm.com/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: