什么效果都没有
<style>
*{margin:0;padding:0;}
#div1{width:300px;height:300px;background:#ccc;position:relative;left:-300px;}
#div1 span{display:block;width:50px;height:100px;position:absolute;left:300px;background:#06F;}
</style>
</head>
<body>
<div id="div1"><span>分享</span></div>
<script>
window.onload = function(){
var oDiv = document.getElementById("div1");
oDiv.onmouseover = function(){
startMove();
}
}
function starMove(){
var oDiv = document.getElementById("div1");
setInterval(function(){
oDiv.style.left = ODiv.offsetLeft+10+'px';
},30)
}
</script>