能不能在html页面里图片载入的时候控制鼠标指针一直为箭头而不是变成沙漏+箭头? @,@
比如我的一个button触发js的一个function是改变页面的一个图片
我一点这个button图片就会换,这时候鼠标会有那么不到一秒是沙漏状态
我想没有这个状态
可行否.
问题点数:0、回复次数:6Top
1 楼yaohai(【→☆烟客居☆↑】)回复于 2004-11-04 10:58:33 得分 0
以下是光标所能实现的不同形状,你把鼠标移上去看看它的不同效果。</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>Top
2 楼ttyp(@http://www.cnblogs.com/ttyp/)回复于 2004-11-04 11:05:25 得分 0
try
<img src="a.gif" onreadystatechange = "this.style.cursor = 'default';">Top
3 楼foolfish(呆鱼)回复于 2004-11-04 11:06:57 得分 0
cursor:xxx我会用
我一个 div A是 cursor:hand,另一个B也是cursor:hand B在A之上
移动到A和B有不同的图片效果出现,就在 A移动到B的时候鼠标总会变那么一下Top
4 楼foolfish(呆鱼)回复于 2004-11-07 02:27:44 得分 0
upTop
5 楼Jorger(Pr.)回复于 2004-11-07 14:14:17 得分 0
http://www.cy00.com/web/Jorger/cursor/cursor.htmlTop
6 楼cuixiping(无心●愚公)回复于 2004-11-07 17:36:00 得分 0
方法就是先预载那两个要用到的图片,以后就不会了。
预载的脚本DW可以自动生成,也可以手写一个简单的,类似:
var img1=new Image()
img1.src="images/1.jpg"
var img2=new Image()
img1.src="images/2.jpg"
Top




