JS獲取鼠標坐標,獲取鼠標像素點的典型實例,運行本頁面後,隨意移動鼠標的位置,可適時顯現鼠標的坐標點,不佔用系統資源。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><h2><head> <title>JavaScript獲取鼠標坐標</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">.tip { width: 200px; border:2px solid #ddd; padding:8px; background:#f1f1f1; color:#666; } </style> </h2><body>源碼愛好者</body></html> [Ctrl+A 全選注:如需引入外部Js需刷新才能執行]