Jump to content

yugiorima123

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by yugiorima123

  1. <script > var vLeftButton = document.getElementById("iconL"); //var t = setInterval(leftAction,1000); function leftAction(){ var myImgs = document.getElementById("divImg"); var child = myImgs.children[0]; //alert(child.src); myImgs.removeChild(child); myImgs.appendChild(child); } var vRightButton = document.getElementById("iconR"); function rightAction(){ var myImgs = document.getElementById("divImg"); var child = myImgs.children[0]; //alert(child.src); myImgs.removeChild(child); myImgs.appendChild(child); } </script> mean: but right button don't move to right I'm amateuršŸ˜¢
  2. How can we create carousel image slider using Javascript ? i Im used <script > var vLeftButton = document.getElementById("iconL"); //var t = setInterval(leftAction,1000); function leftAction(){ var myImgs = document.getElementById("divImg"); var child = myImgs.children[0]; //alert(child.src); myImgs.removeChild(child); myImgs.appendChild(child); } var vRightButton = document.getElementById("iconR"); function rightAction(){ var myImgs = document.getElementById("divImg"); var child = myImgs.children[0]; //alert(child.src); myImgs.removeChild(child); myImgs.appendChild(child); } </script> I mean: leftbutton move to left but right button don't move to right I'm amateuršŸ˜¢
×
×
  • Create New...