按照JS动画课程改了下链式动画,但为什么这个会无法执行?只有第一组的width能够运动,后面的都不行,这是为什么?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>链式运动</title>
<style>
* {
margin: 0;
padding: 0;
}
ul,li{
list-style: none;
}
ul li {
width: 200px;
height: 100px;
background:yellow;
margin-bottom: 20px;
border: 4px solid #000;
filter: alpha(opacity: 30);
opacity: 0.3;
}
</style>
<script src="move.js"></script>
</head>
<body>
<ul>
<li id="li1"></li>
</ul>
<script>
window.onload = function(){
var Li = document.getElementById("li1");
Li.onmouseover = function(){
//startMove(oLi,{width:400,height:200,opacity:100});
//function startMove(obj,json,fn);
startMove(Li,{width:400},startMove(Li,{height:200},startMove(Li,{opacity:100})));
};
Li.onmouseout = function(){
}
}
</script>
</body>
</html>