<select name="fdCostTime" onmouseover="getselVal(this)" isChannel="true">
<script>
function getselVal(obj){
obj.onchange=null;
obj.onchange=function(){
obj.options.selectedIndex=9;
}
}
</script>
本文介绍了一个使用JavaScript实现的下拉菜单功能,该功能能够在鼠标悬停时获取当前选择的值,并通过JavaScript函数自动将选项设置为指定的索引。
<select name="fdCostTime" onmouseover="getselVal(this)" isChannel="true">
<script>
function getselVal(obj){
obj.onchange=null;
obj.onchange=function(){
obj.options.selectedIndex=9;
}
}
</script>

被折叠的 条评论
为什么被折叠?