English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have so far








And I need it to out put 20 numbers and it is only outputing 16 i need help!!!!!!

2007-05-03 08:51:09 · 2 answers · asked by dylan k 1 in Computers & Internet Programming & Design

2 answers

KISS!

var sList='

  • DylanRocks
  • ';
    var sOutput='';
    for (n=0; n<20; n++) { sOutput+=sList; }
    document.write("
      "+sOutput+"
    ");

    2007-05-03 09:57:27 · answer #1 · answered by fjpoblam 7 · 0 0

    I'd turn "duplicate" into "multiplicate"

    function multiplicate (sInput, no){
    var sOutput;
    for(i = 0; i < no; i++)
    sOutput = sOutput + sInput;
    return sOutput;
    }

    That will create a various number of list items for you.

    2007-05-03 16:01:01 · answer #2 · answered by nightgirl1200 4 · 0 0

    fedest.com, questions and answers