<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>简单的鼠标跟随提示</title> </head> <body> <img src="http://www.jb51.net/images/logo.gif" style="position:absolute;z-index:10000;"> <script type="text/javascript"> document.onmousemove = function(e) { var e = e ? e : window.event; var posx = e.clientX; var posy = e.clientY; document.images[0].style.left = posx + "px"; document.images[0].style.top = posy + "px"; } </script> </body> <html>
简单的鼠标跟随一
猜你喜欢
转载自javasam.iteye.com/blog/1777579
今日推荐
周排行