请问:我照着敲了以后 点击箭头切换按钮为什么没有反应?
<script type="text/javascript">
winndow.onload=function(){
var container=document.getElementById('container');
var list=document.getElementById('list');
var buttons=document.getElementById('buttons').getElementsByTagName('span');
var prev=document.getElementById('prev');
var next=document.getElementById('next');
//js绑定函数
next.onclick=function(){
list.style.left = parseInt(list.style.left) - 600 + 'px';
}
prev.onclick=function(){
list.style.left = parseInt(list.style.left) + 600 + 'px';
}
}
</script>