紧急,在线等:为什么我的这段代码onmousemove不生效,onmouseover都可以的。 本帖最后由 hasending 于 2011-07-24 20:45:43 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title></head><Body> <img src="SSL23891.jpg" width="100" height="90" style="cursor:hand"><script language="javascript">function Imgs_OnMouseMove(){ alert("move");return;}function attachImgsMouseEvent(){ var Imgs=document.getElementsByTagName('img'); for(var i=0;i<Imgs.length;i++) { if(!(Imgs[i].onmousemove)) { Imgs[i].onmousemove=this.Imgs_OnMouseMove; } }}window.onload=attachImgsMouseEvent;</script></html> onmousemove小写你写的是onmouseMove M大写了 不能采用<img src="SSL23891.jpg" width="100" height="90" style="cursor:hand" onmousemove=“func()”> 的方法,需要在javascript里面控制,很奇怪,我添加onmouseover都可以,为什么onmousemove就不行呢? Javascript 获取控件在整个屏幕的坐标 ++ 对函数参数的 操作 之疑惑 请问,如何将子页面option值全部传递给父页面的text? firefox里的xml处理问题(高分) web打印报表时列数太多一页横向放不下怎么解决? javascript中能不能得到页面在服务器上的绝对路径 树形菜单 2 如何通过用网页上的时间更改本地的时间?急需 chrome扩展2个iframe之间如何通信? 为什么我用bootstarp3 但是不兼容IE6,7,8,求大神指点 我想mysql中插入datetime类型的字段时,在查询是空值。 JavaScript编程的一个问题
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title></head>
<Body>
<img src="SSL23891.jpg" width="100" height="90" style="cursor:hand">
<script language="javascript">
function Imgs_OnMouseMove()
{
alert("move");
return;
}function attachImgsMouseEvent()
{
var Imgs=document.getElementsByTagName('img');
for(var i=0;i<Imgs.length;i++)
{
if(!(Imgs[i].onmousemove))
{
Imgs[i].onmousemove=this.Imgs_OnMouseMove;
}
}
}
window.onload=attachImgsMouseEvent;
</script>
</html>