| Discussion: | Developer's Area |
| Topic: | JavaScript Question |
| Post a new topic to the Developers Discussion discussion |
| ||||||||
| Subject: | RE: JavaScript Question |
| Author: | dgrissom |
| Date: | Dec 6 2004 |
should work...
///////////////////////////////////////////////////////////////
//==================1===================
if (checkloop <= 1){loopend=loop1;}
if (checkloop > 1){loopend = looper;}
for(n=1; n<=loopend; n++){
for(m=1; m<=div; m++){
pic=pic + "|" ;
}
pic = pic +n+" ";
quotient=quotient+1;
}
display = display +pic;
pic="";
//=============== 2 ============================
if (checkloop <=2 ){loopend = loop1;}
if (checkloop > 2 ){loopend = (looper*2);}
for(n=(looper+1); n<=loopend; n++){
for(m=1; m<=div; m++){
pic=pic + "|" ;
}
pic = pic+n+" ";
quotient=quotient+1;
}
display = display +pic;
pic="";
//=============== 3 ============================
if (checkloop > 2 ){loopend = loop1;}
for(n=(looper*2+1); n<=loopend; n++){
for(m=1; m<=div; m++){
pic=pic + "|" ;
}
pic = pic+n+" ";
quotient=quotient+1;
}
display = display +pic;
pic="";
//////////////////////////////////////////////////////
Hope this works for you.
| |||||||
| Post a new topic to the Developers Discussion discussion | |||||||