javascript - How do I set the Select All "checkbox" iMacros Without using the button "Play (Loop)" -
how set select "checkbox" imacros without using button "play (loop)" , without making tag 50 lines since our site visited no key select , need choose 50 categories. here's code use , try
this version javascript imacros:
var macro; macro = "code:"; macro += "tag pos={{i}} type=input:checkbox form=id:post_form attr=name:category[] content=yes" + "\n"; macro += "wait seconds=0" + "\n"; for(i=1;i<=50;i++){ iimset("i",i); iimplay(macro); }
this version imacros
tag pos=1 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=2 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=3 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=4 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=5 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=6 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=7 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=8 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=9 type=input:checkbox form=id:post_form attr=name:category[] content=yes tag pos=10 type=input:checkbox form=id:post_form attr=name:category[] content=yes --------- tag pos=50 type=input:checkbox form=id:post_form attr=name:category[] content=yes
i want 1 line version of imacros
maybe you:
url goto=javascript:{var<sp>chkboxes=document.getelementsbyname("category[]");for(i=0;i<chkboxes.length;i++)chkboxes[i].checked=true;undefined;}
Comments
Post a Comment