能不能在html页面里图片载入的时候控制鼠标指针一直为箭头而不是变成沙漏+箭头? @,@

foolfish 2004-11-04 10:49:46
比如我的一个button触发js的一个function是改变页面的一个图片

我一点这个button图片就会换,这时候鼠标会有那么不到一秒是沙漏状态
我想没有这个状态
可行否.
...全文
246 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cuixiping 2004-11-07
  • 打赏
  • 举报
回复
方法就是先预载那两个要用到的图片,以后就不会了。
预载的脚本DW可以自动生成,也可以手写一个简单的,类似:
var img1=new Image()
img1.src="images/1.jpg"
var img2=new Image()
img1.src="images/2.jpg"
foolfish 2004-11-07
  • 打赏
  • 举报
回复
up
Jorger 2004-11-07
  • 打赏
  • 举报
回复
http://www.cy00.com/web/Jorger/cursor/cursor.html
foolfish 2004-11-04
  • 打赏
  • 举报
回复
cursor:xxx我会用

我一个 div A是 cursor:hand,另一个B也是cursor:hand B在A之上

移动到A和B有不同的图片效果出现,就在 A移动到B的时候鼠标总会变那么一下
ttyp 2004-11-04
  • 打赏
  • 举报
回复
try
<img src="a.gif" onreadystatechange = "this.style.cursor = 'default';">
yaohai 2004-11-04
  • 打赏
  • 举报
回复
以下是光标所能实现的不同形状,你把鼠标移上去看看它的不同效果。</p>
<table bgColor="#ffcccc" border="0" cellPadding="5" cellSpacing="0" width="100%">
<tbody>
<tr class="line">
<td>
<div style="CURSOR: auto">
<font color="#990066">auto   </font>
</div>
<div style="CURSOR: crosshair">
<font color="#990066">crosshair   </font>
</div>
<div style="CURSOR: default">
<font color="#990066">default   </font>
</div>
<div style="CURSOR: hand">
<font color="#990066">hand   </font>
</div>
<div style="CURSOR: help">
<font color="#990066">help   </font>
</div>
<div style="CURSOR: move">
<font color="#990066">move   </font>
</div>
<div style="CURSOR: e-resize">
<font color="#990066">e-resize   </font>
</div>
<div style="CURSOR: ne-resize">
<font color="#990066">ne-resize   </font>
</div>
</td>
<td>
<div style="CURSOR: nw-resize">
<font color="#990066">nw-resize   <br>
</font>
</div>
<div style="CURSOR: n-resize">
<font color="#990066">n-resize   <br>
</font>
</div>
<div style="CURSOR: s-resize">
<font color="#990066">s-resize   <br>
</font>
</div>
<div style="CURSOR: sw-resize">
<font color="#990066">sw-resize   <br>
</font>
</div>
<div style="CURSOR: se-resize">
<font color="#990066">se-resize   <br>
</font>
</div>
<div style="CURSOR: w-resize">
<font color="#990066">w-resize   </font>
</div>
<div style="CURSOR: text">
<font color="#990066">text   </font>
</div>
<div style="CURSOR: wait">
<font color="#990066">wait   </font>
</div>
</td>
</tr>
</tbody>

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧