JavaScript help

  • Started
  • Last post
  • 1 Response
  • ********

    Hi Guys, I need some help with Javascript;

    I have list of elements and I need to apply z-index for every item, but next item always should have smaller value, here is the JS:

    changeIndex = function() {
    var progressItems = document.getElementById("progres...

    for(var i=0; i<progressItems.length; i++) {

    progressItems[i].style.zIndex=10...
    }
    }

    window.onload = function() {
    changeIndex;
    }

    But it does not work. Don't know what is wrong.

    Cheers...

    ********
  • ********
    0

    ok, fixed :)