.style.cursor只在鼠标移动的时候有效? 随便让一个时间触发不久行啦??<script>document.onkeydown()=function(){oView .style.cursor="wait"}</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function Timer(){ oView.style.cursor=Cursor[nCount]; lTimerID=window.setTimeout("Timer()" ,120); nCount=nCount+1; if (nCount>3) nCount=0;}这个事件怎么不起作用?如何设置整个屏幕的鼠标形状?而不是table的? document.documentElement.style.cursor=Cursor[nCount];可以整个屏幕了,但是如何不需要移动鼠标就可以改变鼠标形状?? 不明白,楼上明示麻烦大家试一下我的代码如下代码,可以旋转鼠标,但是鼠标不移动,鼠标的箭头也不会改变有没有什么办法,不移动鼠标,让鼠标箭头改变?<html><head><title></title></head><body><table id=oView width="80" height="80" border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef><tr><td> </td></tr></table></body></html><script language=javascript>var lTimerID;var Cursor = new Array();var nCount;window.onload=function(){ nCount=0; Cursor[0]="se-resize"; Cursor[1]="ne-resize"; Cursor[2]="nw-resize"; Cursor[3]="sw-resize"; Timer(); }function Timer(){ //oView.style.cursor=Cursor[nCount]; document.documentElement.style.cursor=Cursor[nCount]; lTimerID=window.setTimeout("Timer()" ,120); nCount=nCount+1; if (nCount>3) nCount=0;}</script> 你只须把Timer中的“document.documentElement”换成“document.body”就可以了。IE6。0测试通过。document.documentElement是HTML文档的ROOT,即“<html>”,可能是这个节点对“STYLE”的支持并不太象其它的标记一样原因,不太清楚。 <html><head><title></title></head><body><table id=oView width="80" height="80" border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef><tr><td> </td></tr></table><p id=oShow></p></body></html><script language=javascript>var lTimerID;var Cursor = new Array();var nCount;window.onload=function(){ nCount=0; Cursor[0]="se-resize"; Cursor[1]="ne-resize"; Cursor[2]="nw-resize"; Cursor[3]="sw-resize"; Timer(); }function Timer(){ //oView.innerText ="<table id=oView width=80 height=80 border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef><tr><td>" + Cursor[nCount] +"</td></tr></table>"; document.body.style.cursor=Cursor[nCount]; lTimerID=window.setTimeout("Timer()" ,120); nCount=nCount+1; oShow.innerHTML=nCount; if (nCount>3) nCount=0;}</script>谁帮我up 下,谢谢 jsp页面动态生成元素 请教一个通过IE右键菜单提交表单的问题 function? 如何去掉层的边框? 怎样判断文本输入框中的字符串是否符合日期格式? 求助怪问题:form.submit();的问题? 模式对话框问题! onclick='javascript:window.close();'为什麽IE6老弹出提示,能否去掉这个提示,直接关掉窗口。 引号问题 高分求助!js可以实现随机读取一目录下的图片文件吗? java 与javascript的 区别 下拉菜单中能实现“Alt”效果吗?
{
oView.style.cursor=Cursor[nCount];
lTimerID=window.setTimeout("Timer()" ,120);
nCount=nCount+1;
if (nCount>3) nCount=0;
}这个事件怎么不起作用?如何设置整个屏幕的鼠标形状?而不是table的?
可以整个屏幕了,但是如何不需要移动鼠标就可以改变鼠标形状??
有没有什么办法,不移动鼠标,让鼠标箭头改变?<html>
<head>
<title></title>
</head><body>
<table id=oView width="80" height="80" border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef>
<tr><td> </td></tr>
</table>
</body>
</html>
<script language=javascript>
var lTimerID;
var Cursor = new Array();var nCount;window.onload=function()
{
nCount=0;
Cursor[0]="se-resize";
Cursor[1]="ne-resize";
Cursor[2]="nw-resize";
Cursor[3]="sw-resize";
Timer();
}function Timer()
{
//oView.style.cursor=Cursor[nCount];
document.documentElement.style.cursor=Cursor[nCount];
lTimerID=window.setTimeout("Timer()" ,120);
nCount=nCount+1;
if (nCount>3) nCount=0;
}
</script>
IE6。0测试通过。document.documentElement是HTML文档的ROOT,即“<html>”,可能是这个节点对“STYLE”的支持并不太象其它的标记一样原因,不太清楚。
<head>
<title></title>
</head><body>
<table id=oView width="80" height="80" border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef>
<tr><td> </td></tr>
</table>
<p id=oShow></p>
</body>
</html>
<script language=javascript>
var lTimerID;
var Cursor = new Array();var nCount;window.onload=function()
{
nCount=0;
Cursor[0]="se-resize";
Cursor[1]="ne-resize";
Cursor[2]="nw-resize";
Cursor[3]="sw-resize";
Timer();
}
function Timer()
{
//oView.innerText ="<table id=oView width=80 height=80 border=0 cellspacing=0 cellpadding=0 bgcolor=#5555ef><tr><td>" + Cursor[nCount] +"</td></tr></table>";
document.body.style.cursor=Cursor[nCount];
lTimerID=window.setTimeout("Timer()" ,120);
nCount=nCount+1;
oShow.innerHTML=nCount;
if (nCount>3) nCount=0;
}
</script>谁帮我up 下,谢谢