http://www.csdn.net/expert/topic/802/802480.xml?temp=.4789545要先disabled了才能显示title。
其实selected的文本本来就能看得见啊。
其实selected的文本本来就能看得见啊。
解决方案 »
- 如何在EASYUI DATAGRID中进行查询?从页面文本框获取条件,不是从DATAGRID中获取条件。
- setTimeout 传参数的问题
- 浏览器兼容的问题
- 如何学好javascript
- 图片链接
- 求救.关于一个特殊效果显示隐藏层的问题.
- 连接数据库的二级联动
- 我用了几个层,我想把它们并排显示在一行,但是每一个层总是要换一行,怎么才能控制??
- var oXL = new ActiveXObject("Excel.Application")这句话有什么问题?
- footerFormatter中如果return的值包含'.'就不显示怎么办
- showModalDialog传参数的简单问题
- 谁有类似的编辑器源码,高分求
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body><select onmouseout="hideTitle()" style="width:100" onmousemove="showTitle()">
<option>aaaaaaaaaaaaaaaaaaaaaaaaaaa</option>
<option>bbbbbbbbbbbbbbbbbbbbbbbbbbb</option>
<option>ccccccccccccccccccccccccccc</option>
</select>
<select onmouseout="hideTitle()" style="width:100" onmousemove="showTitle()">
<option>111111111111111111111111</option>
<option>22222222222222222222222</option>
<option>33333333333333333333333333</option>
</select><span style="display:none;position:absolute;background-color=#F8F9DF;" id=titleSpan></span>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showTitle()
{
var elm = event.srcElement;
titleSpan.innerText = elm.options[elm.selectedIndex].text;
titleSpan.style.top=event.y+20
titleSpan.style.left=event.x+20
titleSpan.style.display="";
}
function hideTitle()
{
titleSpan.style.display="none";
}
//-->
</SCRIPT>
</body>
</html>
实际的title处理的是onmouseover事件,我故意用了onmousemove是因为个人爱好。<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body><select onmouseout="hideTitle()" style="width:100" onmousemove="showTitle()">
<option>aaaaaaaaaaaaaaaaaaaaaaaaaaa</option>
<option>bbbbbbbbbbbbbbbbbbbbbbbbbbb</option>
<option>ccccccccccccccccccccccccccc</option>
</select>
<select onmouseout="hideTitle()" style="width:100" onmousemove="showTitle()">
<option>111111111111111111111111</option>
<option>22222222222222222222222</option>
<option>33333333333333333333333333</option>
</select><table style="display:none;position:absolute;font-size:14" id=titleTable bgcolor=black cellspacing=1><td bgcolor=#FAFBEA></td></table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showTitle()
{
var elm = event.srcElement;
titleTable.firstChild.firstChild.firstChild.innerText = elm.options[elm.selectedIndex].text;
titleTable.style.top=event.y+20
titleTable.style.left=event.x
titleTable.style.display="";
}
function hideTitle()
{
titleTable.style.display="none";
}
//-->
</SCRIPT>
</body>
</html>