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:呵呵,大哥,不好意思,俺才开始学这个,说实在的,您的代码一开始没太看明白,现在明了了呵呵,多谢指教!============================================== 我不是菜鸟,我是很菜很菜的那种!呵呵…… 求个正则谢谢谢谢!!!! 计算机科学概论下载 关于使用htmlfile对象长连接的问题 帮我分析下这段代码,顺便教教我用帮助文档 iframe刷新,导致 父页面函数失效,请大家指点 急等高手指点》》》》》》》 javascript如何使用引用型参数? 请问用JavaScript怎样得到客户端的计算机名称??谢谢!! 关于在表单中使用数组,在JavaScript中使用表单元素的问题 js 中当Array作为一个dict时应该如何求其长度 怎样获取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';"只是换背景色的,没有关系!==============================================
我不是菜鸟,我是很菜很菜的那种!呵呵……
看我的那个例子
呵呵,大哥,不好意思,俺才开始学这个,说实在的,您的代码一开始没太看明白,现在明了了
呵呵,多谢指教!==============================================
我不是菜鸟,我是很菜很菜的那种!呵呵……