5:27 PM 网页鼠标坐标显示 |
另存的时候 编码是 UTF-8编码 。 方法用记事情本另存为****.htm 鼠标移动时,下属框 将会显示出 x,y的坐标。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Coordinate v1.0</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Keywords" content="CMP,Flash,MP3,FLV,H264,Video,Music,Player,Blog,Zone,BBS,CenFun" /> <meta name="Description" content="CenFun Music Player v3.0 - bbs.cenfun.com" /> <meta name="copyright" content="2006-2008 Cenfun.Com" /> <style type="text/css"> html, body { height:100%; margin:0px 0px; } </style> </head> <body> <script language="javascript"> var where = ""; // which link function checkwhere(m) { if (document.layers){ xTuifei = m.x; yTuifei = m.y; } else if (document.all){ xTuifei = event.clientX; yTuifei = event.clientY; } else if (document.getElementById){ xTuifei = m.clientX; yTuifei = m.clientY; } self.status = "X座标值= "+ xTuifei + " Y座标值= " + yTuifei; } document.onmousemove = checkwhere; if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);} </script> <object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1004" height="612"> <param name="movie" value="http://lomom.cn/mp3/cmp.swf" /> <param name="quality" value="high" /> <embed src="http://lomom.cn/mp3/cmp.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="980" height="612"></embed> </object> </body> </html> |
|
Total comments: 0 | |