下拉菜单当鼠标经过的时候如何能显示提示信息? 对于selectie6不支持title属性但ie7里已经支持这个属性了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 先建一个div,style="position:absolute"里面写提示的内容!起始的坐标可以随便设只要页面上看不见就行!再在控件上写一个onmouseover事件找到鼠标所在坐标,定位div的坐标在鼠标的坐标之下!别忘了onmouseout事件去还原原来的div属性! 忘了下拉菜单了,自己写个类似下拉的div里面套table!td里面加onmouseover! 试试下面的代码,应该可以满足你的要求,:)<HTML> <style type="text/css"> .coolButton {background: buttonface;border-top: 1px solid buttonhighlight;border-left: 1px solid buttonhighlight;border-bottom: 1px solid buttonshadow; border-right: 1px solid buttonshadow; padding: 0px; font: menu;line-height:9pt} </style> <script> function closeit(){ document.all.tbl.style.visibility='hidden'; } </script> <body> <table style="border:2 inset buttonface; width:160;" cellpadding=0 cellspacing=0 onclick="document.all.tbl.style.visibility='visible'"> <tr> <td height=12>请选择下面的选项</td><td class=coolButton width=16><span style="font-size:11px;font-family: webdings; padding-left:3;padding-top:0px;width: 100%;cursor:hand">6</span></td> </tr> </table> <div id=tbl style="position:relative;visibility:hidden"> <table border=0 cellspacing=0 cellpadding=0 width=160> <tr> <td title="测试文字1" style="border-left:1px #000000 solid;border-right:1px #000000 solid;border-bottom:0px;border-top:1px #000000 solid;" onmouseover="this.bgColor='#000099'" onmouseout="this.bgColor='#ffffff'" onclick="window.open('http://lucky.myrice.com','_blank');closeit()">测试文字 </td> </tr> <tr> <td title="测试文字2" style="border-left:1px #000000 solid;border-right:1px #000000 solid;border-bottom:0px;border-top:0px;border-bottom:1px #000000 solid;" onmouseover="this.bgColor='#000099'" onmouseout="this.bgColor='#ffffff'" onclick="window.open('http://lucky.myrice.com','_blank');closeit()">测试文字 </td> </tr> </table> </div> </HTML> 请问 Extjs tabpanel关闭后再打开的问题 浏览器屏蔽谈出窗口的解决办法? 如何取得一列在一行中的索引,一行在一個table中的索引 超级难题,如何在javascript中运行javascript代码 如何让html标记内的js代码在server端运行?? 关于javascript调用xml的问题 [请教老手]如何嵌入sina新闻 如何将当前网页右击处的URL传递给应用程序?(急) js内存为何没能回收没用的对象 javascript 数组中的数据有逗号 ,怎样还能正确取得各个数组中的元素! 简单的字符串操作
再在控件上写一个onmouseover事件找到鼠标所在坐标,
定位div的坐标在鼠标的坐标之下!
别忘了onmouseout事件去还原原来的div属性!
<HTML>
<style type="text/css">
.coolButton {background: buttonface;border-top: 1px solid buttonhighlight;border-left: 1px solid buttonhighlight;border-bottom: 1px solid buttonshadow; border-right: 1px solid buttonshadow; padding: 0px; font: menu;line-height:9pt}
</style>
<script>
function closeit(){
document.all.tbl.style.visibility='hidden';
}
</script>
<body>
<table style="border:2 inset buttonface; width:160;" cellpadding=0 cellspacing=0 onclick="document.all.tbl.style.visibility='visible'">
<tr>
<td height=12>请选择下面的选项</td><td class=coolButton width=16><span style="font-size:11px;font-family: webdings; padding-left:3;padding-top:0px;width: 100%;cursor:hand">6</span></td>
</tr>
</table>
<div id=tbl style="position:relative;visibility:hidden">
<table border=0 cellspacing=0 cellpadding=0 width=160>
<tr>
<td title="测试文字1" style="border-left:1px #000000 solid;border-right:1px #000000 solid;border-bottom:0px;border-top:1px #000000 solid;" onmouseover="this.bgColor='#000099'" onmouseout="this.bgColor='#ffffff'" onclick="window.open('http://lucky.myrice.com','_blank');closeit()">测试文字
</td>
</tr>
<tr>
<td title="测试文字2" style="border-left:1px #000000 solid;border-right:1px #000000 solid;border-bottom:0px;border-top:0px;border-bottom:1px #000000 solid;" onmouseover="this.bgColor='#000099'" onmouseout="this.bgColor='#ffffff'" onclick="window.open('http://lucky.myrice.com','_blank');closeit()">测试文字
</td>
</tr>
</table>
</div>
</HTML>