<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style>
*{margin:0;padding:0;}
#box{position: absolute;bottom:50px;;text-align:center;width:100%;}
</style>
<body>
<div id="box">
<img src="images/1.png" alt="" />
<img src="images/2.png" alt="" />
<img src="images/3.png" alt="" />
<img src="images/4.png" alt="" />
<img src="images/5.png" alt="" />
</div>
<script>
var getPo = document.getElementsByTagName("img"); //获取img
var getDiv = document.getElementById("box"); //获取div
//添加事件,确定鼠标的范围
document.onmousemove = function(ev){
var e = ev || event;//获取鼠标位置
for(var i=0;i