Web Analytics Made Easy -
StatCounter Need some advice - CodingForum

Announcement

Collapse
No announcement yet.

Need some advice

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need some advice

    i'm not so confident with my script, is this ok? how to reverse it? thank you in advance....

    <script language="javascript">
    var iNum = 1;
    var oBody = document.getElementsByTagName("body")[0];

    function roll(iVal){
    if(iVal<iNum){
    oBody.innerHTML += "[!]";
    iVal++;
    setTimeout("roll("+iVal+");",10);
    }else{
    oBody.innerHTML += "<br/>";
    iNum++;
    if(iNum>12){
    return;
    }
    return(roll(0));
    }
    }
    roll(0);
    </script>

  • #2
    What exactly do you intend to do? Can you describe?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

    Comment


    • #3
      Late

      Thanks for your replied last week Kor, i intend to do this:

      *
      **
      ***
      **
      *
      and how to reverse it or make them loop. thanks.

      Comment

      Working...
      X