divボックスをaからbに移動してから、元に戻すのに問題があります。また、マウスがdivボックスから出たときに、posを開始するために戻る必要があります。これは、iveがこれまでに思いついたものです。
<div id="tank" style=" width:344px; height:300px;
background-image:url('images/warning2.png');
box-shadow:0px 0px 100px;
;border-radius:20px; position:relative; left:-180px; top:10px;">
</div>
<script type="text/javascript">
document.getElementById('tank').onmouseover = function() {
var elem = this,
pos = -180,
timer = setInterval(function() {
pos--;
elem.style.left = pos+"px";
if( pos == 500) clearInterval(timer) ;
document.getElementById('plane').onmouseover = null;
},1);
};