onmouseover事件和cursor <table><tr><td id = myid onmouseover=test()></td></tr></table><script language = javascript>function test(td){ td.style='cursor:hand'} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 最好用CSS定义.myMouse{ cursor:hand;}<td id = myid class="myMouse"> <script language="JavaScript"><!--function test(td){ td.style.cursor='hand'}//--></script><table border=1><tr><td id = myid onmouseover="test(this)">asdfasdf</td></tr></table><script language = javascript>没什么问题啊 <style> .myMouse{ cursor:url('http://whidy.oa.com/meet/images/beam_l.cur')} </style><table border=1> <Tr> <td style="CURSOR: hand"> 直接在td上指定手鼠标,没有问题 </td> </Tr> <Tr> <td style="CURSOR: url('http://whidy.oa.com/meet/images/beam_l.cur')"> 直接在td上指定自定义鼠标,,没有问题 </td> </Tr> <Tr> <td onmouseover='ChangeMouse(this);'> 在td上的onmouseover事件处理函数中不通过CSS指定自定义鼠标,仅在鼠标第一次停留时没问题 </td> </Tr> <Tr> <td onmouseover='ChangeMouseToHand(this);'> 而同样在td上的onmouseover事件处理函数中不通过CSS指定手形鼠标,完全没问题 </td> </Tr> <Tr> <td onmouseover='ChangeMouseByCss(this);'> 在td上的onmouseover事件处理函数中通过CSS指定自定义鼠标,完全没问题 </td> </Tr> </table><script >function ChangeMouseToHand(td){ td.style.cursor="hand"; }function ChangeMouse(td){ td.style.cursor="url('http://whidy.oa.com/meet/images/beam_l.cur')"; }function ChangeMouseByCss(td){ td.className = "myMouse" }</script> <td valign=middle align=center bgcolor='#eeeeee' ONMOUSEOVER="this.bgColor='#DEDFF7';this.style.cursor='hand';" ONMOUSEOUT="this.bgColor='#eeeeee';"</td>我是这样写的,没有问题,"this.bgColor='#DEDFF7;"和"this.bgColor='#eeeeee';"只是换背景色的,没有关系!============================================== 我不是菜鸟,我是很菜很菜的那种!呵呵…… to tearfalls:看我的那个例子 to whidy:呵呵,大哥,不好意思,俺才开始学这个,说实在的,您的代码一开始没太看明白,现在明了了呵呵,多谢指教!============================================== 我不是菜鸟,我是很菜很菜的那种!呵呵…… 【菜鸟求助】条件语句不起作用? struts2+javascript 刷新页面后,输入框中的内容没有被清除 乱码 你们有jquery text焦点集中下拉一个表格,选中后会把ID返回text框中? 有没办法实现ctrl+w 自动在夫窗执行 一个页面返回的问题!?请大家帮帮忙!急 请问下 我做了弹窗 里面调用iframe 百度地图 为什么地图不显示呢 高手看看?在先等待 判断对象的有效性的方法是什么?? 如何让setInterval延时的时间不一样? 怎样获取1-100的一个随机整数? 怎样使一个td的高度等于他的背景图片的高度?
.myMouse
{
cursor:hand;
}<td id = myid class="myMouse">
<!--
function test(td)
{
td.style.cursor='hand'
}//-->
</script>
<table border=1><tr><td id = myid onmouseover="test(this)">asdfasdf</td></tr></table>
<script language = javascript>没什么问题啊
.myMouse
{
cursor:url('http://whidy.oa.com/meet/images/beam_l.cur')
}
</style>
<table border=1>
<Tr>
<td style="CURSOR: hand">
直接在td上指定手鼠标,没有问题
</td>
</Tr>
<Tr>
<td style="CURSOR: url('http://whidy.oa.com/meet/images/beam_l.cur')">
直接在td上指定自定义鼠标,,没有问题
</td>
</Tr>
<Tr>
<td onmouseover='ChangeMouse(this);'>
在td上的onmouseover事件处理函数中不通过CSS指定自定义鼠标,仅在鼠标第一次停留时没问题
</td>
</Tr>
<Tr>
<td onmouseover='ChangeMouseToHand(this);'>
而同样在td上的onmouseover事件处理函数中不通过CSS指定手形鼠标,完全没问题
</td>
</Tr>
<Tr>
<td onmouseover='ChangeMouseByCss(this);'>
在td上的onmouseover事件处理函数中通过CSS指定自定义鼠标,完全没问题
</td>
</Tr>
</table>
<script >function ChangeMouseToHand(td)
{
td.style.cursor="hand";
}function ChangeMouse(td)
{
td.style.cursor="url('http://whidy.oa.com/meet/images/beam_l.cur')";
}function ChangeMouseByCss(td)
{
td.className = "myMouse"
}</script>
</td>
我是这样写的,没有问题,"this.bgColor='#DEDFF7;"和"this.bgColor='#eeeeee';"只是换背景色的,没有关系!==============================================
我不是菜鸟,我是很菜很菜的那种!呵呵……
看我的那个例子
呵呵,大哥,不好意思,俺才开始学这个,说实在的,您的代码一开始没太看明白,现在明了了
呵呵,多谢指教!==============================================
我不是菜鸟,我是很菜很菜的那种!呵呵……