" } else { // insert inner indexes for type 3 document.getElementById("display").innerHTML+=array_name+"["+array_name+".length]=\""+index_values+i+"\"
" } } } if(num<10){num="00"+num} if(num>9&&num<100){num="0"+num} if(num>100){num=num} if(document.f1.t4.value.length>0){ i= num+val2+ext} else{i=num+val2} if(option==0){ // insert last indexes for type 1 document.getElementById("display").innerHTML+="\""+index_values+i+"\")" } else { if(option==1){ // insert last indexes for type 2 document.getElementById("display").innerHTML+=array_name+"["+(j+1)+"]=" document.getElementById("display").innerHTML+="\""+index_values+i+"\"
" } else { // insert last indexes for type 3 document.getElementById("display").innerHTML+=array_name+"["+array_name+".length]=\""+index_values+i+"\"
" } } } index_value=new Array() count= 0 last=0 function make_array2(){ if(!ns){document.f1.cpy.disabled=false} for(r=0;r
" } } } if(option==0){ document.getElementById("display").innerHTML+="\""+index_value[i]+"\")" } else { if(option==2){ document.getElementById("display").innerHTML+=array_name+"["+array_name+".length]=\""+index_value[i]+"\"
" } else { document.getElementById("display").innerHTML+=array_name+"["+i+"]=\""+index_value[i]+"\"
" } } count++ document.f1.t3.select() last=chkrad } function oreset(){ count=0 document.f1.t3.value="" document.getElementById("display").innerHTML="" document.f1.t3.select() } function chk(){ if(document.f1.r2[0].checked==true){ document.f1.t2.disabled=false document.getElementById("sp").disabled=false document.f1.t2.style.backgroundColor="#FFFFFF" document.f1.b1.disabled=false document.f1.b2.disabled=true document.f1.b3.disabled=true document.f1.t3a.disabled=false document.f1.t3a.style.backgroundColor="#FFFFFF" } else { document.f1.t2.disabled=true document.getElementById("sp").disabled=true document.f1.t2.style.backgroundColor="#c0c0c0" document.f1.b1.disabled=true document.f1.b2.disabled=false document.f1.b3.disabled=false document.f1.t3.select() document.f1.t3a.disabled=true document.f1.t3a.style.backgroundColor="#c0c0c0" } } function Copy(id){ if(ns){ alert("Sorry, Netscape does not recongise this function") document.f1.cpy.disabled=true return } copyit=id textRange = document.body.createTextRange(); textRange.moveToElementText(copyit); textRange.execCommand("Copy"); alert("Copying Complete.\n\nPlease Paste into your SCRIPT") } ns=document.getElementById&&!document.all function getKey(e) { pressed_key=(!ns)?event.keyCode:e.which if( pressed_key==13){ init() } } document.onkeypress = getKey; ">
0 Comment "
Array Creator 3
"Đăng nhận xét