請(qǐng)問:我照著敲了以后 點(diǎn)擊箭頭切換按鈕為什么沒有反應(yīng)?
<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綁定函數(shù)
?? ??? ??? ?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>
2017-01-06
window.onload ?不是?winndow.onload