Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>跟随鼠标移动的图片</title>
</head>
<body onload="makesnake()">
<div id="tdiv" style='position:absolute'>
<img src='//ku.shouce.ren/files/images/201601/56a36d225232f.gif' width='32' height='32' class="spanstyle">
</div>
<script language="javascript">
var x,y
function handlerMM(){
x = window.event.x + document.body.clientLeft
y =window.event.y + document.body.clientTop;
}
function makesnake() {
if (document.all) {
var ob = document.all("tdiv")
ob.style.posLeft=x
ob.style.posTop=y
var timer=setTimeout("makesnake()",10)
document.onmousemove = handlerMM;
</script>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx