不会javascript,但是我想应该是先得到鼠标所在位置的X值,带到画图的函数里去,求出来的Y跟鼠标现在所在的Y相等就算是在曲线上了。顶!
解决方案 »
- 求助:关于from表单滚动条的问题
- div+js问题求助
- window.open()
- htmltext<img><p>texttttt123htmlsjfkfkasf</p>htmlt,如何在123的位置分为两段?
- 问个FORM的问题
- 如何做伸缩菜单!
- 在一个字符串a中寻找另一个字符串b,若有将a字符串中的b去掉,若没有在a的后面加上b,使用JS脚本有没有什么好的方法?
- 如何用javascript调用本地的一个exe文件?
- javascript中的dropdown控件的问题 有分送的
- 如何把打开的新窗口所取得值返回父窗口?
- 谁有阿信树的代码啊,他的网站好象没有用了,发我一个不胜感谢
- javascript验证 动态单选框
v:line而且有他自己事件 onmouseover 和onmouseout
这2个事件分别在 鼠标移到线上方时和离开线上方是触发 你只要处理一下这2个事件就可以了
lastPoint.x = x1;
lastPoint.y = y1;
points.push( {x:x1,y:y1} );
var o=document.createElement(s);
o.onmouseover = function(){aaa();}
o.onmouseout = function(){bbb();}
var where = "";
function checkwhere(e) {
if (document.layers){
xCoord = e.x;
yCoord = e.y;
}
else if (document.all){
xCoord = event.clientX;
yCoord = event.clientY;
}
else if (document.getElementById){
xCoord = e.clientX;
yCoord = e.clientY;
}
window.status = "X座标值= "+ xCoord + " Y座标值= " + yCoord ; }
document.onmousemove = checkwhere;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
</script>