.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 下,谢谢 怎么用js动态改变圆的半径 大家帮帮忙 看看这这函数实现一个什么功能呀? js实现一个效果 在某些搜索网站上当输入相应的字符时自动向下列出匹配的搜索字符 关于鼠标事件获取坐标的问题和图片大小的问题?加急 怎样向iframe中的表单传值? JS把复选框的值传递到另外一个页面并接收。 超连接可以用title显示信息,<a href="tt.htm" title=欢迎进入>进入</a>请问select下拉表单可以吗?如何做? 如何知道下拉框的选择总数~~ [求助]网站BUG就指点. 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 下,谢谢