首页 相关文章 基于jquery的获取mouse坐标插件的实现代码

基于jquery的获取mouse坐标插件的实现代码

代码如下:


/*
* Copyright (c) 2010 刘建华
*
* The above copyright notice shall be
* included in all copies or substantial portions of the Software.
* Example:
divdemo/div
divdemo/div
script type="text/javascript"
var o = $(document);
o.mousemove( function(e){
var d = document.getElementById("demo");
d.style.left = ($.mouse(e).left + 5) + "px";
d.style.top = ($.mouse(e).top + 5) + "px";
});
/script
*/

/*
* mouse Plugin for jQuery
* Version: 1.0
* Release: 2...[ 查看全文 ]

2016-02-19 标签:

基于jquery的获取mouse坐标插件的实现代码的相关文章

手机页面
收藏网站 回到头部