style="cursor: url(custom.cur)"
document.all.theTop.style.cursor = "url(custom.cur)";
custom.cur为cur文件 自定义网页里的鼠标形状(IE6.0+)
document.all.theTop.style.cursor = "url(custom.cur)";
custom.cur为cur文件 自定义网页里的鼠标形状(IE6.0+)
解决方案 »
- 请教高人 本人写了一个简单的循环语句为什么就不行呢
- 求避免js变量名和函数名跟别人冲突的最佳方案
- javascript的sin30有误差
- JS问题....这个东西没有反应.不知道那里出问题了..有人会吗???
- MyEclipse6.6使用js引入一个js文件报错,但是直接在html页面没问题
- 急!myeclipse中错把项目导入另一个项目,原项目被覆盖,怎么恢复原来的web项目
- setTimeout函数的使用问题
- 在客户端打开一个加密的Excel文件???
- '在画面上看是单引号,可是,作为参数在javascript中传递时,出错误,请教。
- Extjs 可编辑表格 在输入数据之后 按enter键保存数据
- 超级简单!怎么取得一个元素的上级元素。顶者有分!
- 选择select的时候如何转向
body{cursor:url(ant_logo.ico)}
</style>
提示页面有错误啊!
case "zoomout":
// zoom out mode
toolMode = 2;
panning=false;
selectBox=false;
if (isIE) {
style="cursor: url(3dwmove.cur)"
document.all.theTop.style.cursor = "url(3dwmove.cur)";
// document.all.theTop.style.cursor ="crosshair";
theCursor = document.all.theTop.style.cursor;
}
modeBlurb = modeList[1];
//if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
break;
function change(mouse)
{
document.getElementById("map").style.cursor = mouse;
}
</script><div id=map></div>
<input type=button onclick=change("mouse.cur") value="Change">
</body>
<SCRIPT LANGUAGE="JavaScript">
document.body.style.cursor = "url(ant_logo.ico)"
</SCRIPT>
case "zoomout":
// zoom out mode
toolMode = 2;
panning=false;
selectBox=false;
if (isIE) {
alert(document.all.theTop.style.cursor);<------显示情况见下面
document.all.theTop.style.cursor = "url(3dwmove.cur)";
theCursor = document.all.theTop.style.cursor;
}第一次光标正常显示时:显示crosshair
第二次光标不正常显示时:显示url('3dwmove.cur')
第三次再执行的时候显示:url('url(3dwmove.cur')
那位大哥知道这是为什么阿?
document.all.theTop.style.cursor = "3dwmove.cur";
直接这样写就可以了