Search code examples
javascripthtmlscroller

Javascript: Delete conflict from two equal script instance


i make a simple scroller but when i create the second scrooler, the first stop working, the code is here http://jsfiddle.net/3aZLE/3/ Thanks so much


Solution

  • Put the functionality into a single method attached to onload.

    Also, refactor--it's essentially identical code.