<select style="width:50" onmouseover=showtitle(this)>
<option>rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</option>
</select>
<script>
function showtitle(obj)
{
obj.title=obj.options(obj.selectedIndex).text
}
</script>
<option>rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrqwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</option>
</select>
<script>
function showtitle(obj)
{
obj.title=obj.options(obj.selectedIndex).text
}
</script>
当鼠标移上去时
div1.style.display="block"
div1.innerText=sel1.innerText
div1.width=100%
开始我也这样想
可是后来发现
select 没有title这个属性
就是 <div name=div1 ></div>
放在select下面就可以了,当然记住 onmouseout 时候要
div1.style.display="none"