Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

Nest cycle issue

"Center><script>
Function begin () (
I=0;
Qz =document.getid.getid1.value;
Hz =document.getid.getid2.value;
Kkf.innerHTML= "initialization. . . . . . "
SetTimeout ( "bomb ()", 2000) ;}
Bomb function () {i++;
Kkf.innerHTML=qz+ "first cycle" +i+ "sub qz=" +qz + "hz=" +hz;
If (i==6) (
Kkf.innerHTML= "the end of six cycles, since qz +1. . " Document.getid.getid1.value++;
If (qz "hz) (
Alert (qz+ "" +hz);
Kkf.innerHTML= "" Differences color=red> tasks !</font> ";return
              }
SetTimeout ( "begin ()", 2000)
) Else
SetTimeout ( "bomb ()", 1000) ;}

"/script><body Text=#999966 leftMargin=0 topMargin=20 bgcolor=#CCCC99>
"Form name=getid"
Qz:<input name=getid1 value=1 size=5>
Hz:<input name=getid2 value=10 size=5></form> "input type=" button "name="_ftn1"" bomb "

Onclick=begin () value= "start" and "<br><br><br><span id=kkf></span></form>
"/body>
"/html>
Those withdrew from the 2nd cycle, I looked at for a long time but still do not understand. . Please give pointers

Qz =parseInt (document.getid.getid1.value);
Hz =parseInt (document.getid.getid2.value);
Int mandatory conversion

Thank you. . . Is not. . If not, then turn on the comparative value asc code size? ? ?

Js automatic conversion will require the same type of situation might not change the number of the best

However, the first correctly? ? 2nd only wrong? ?

Another delay ask how to use Javascript. . . Non-circulating air
Not setTimeout and setInterval

Never seen the like




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com