我妈妈终于学会做批量浇水器啦,还是从宸宸妈那学的呢!来做客的朋友留下代码,妈妈会及时加上去的,为朋友们祈福。
顺便说一下批量浇水器的做法:在特效设置中添加如下代码:
</b><br> <textarea style='width:500px;border:1px solid #999;' rows=4 id=treeidlist>138622|138616|98756|99041|112432|117903|138375|99856|99849|133536|133903|140037|140039|</textarea> <br><input type=button class=bi style=width:70px; onclick=startwater(); value=批量浇水> <input type=button class=bi style=width:70px; onclick=clearTimeout(h); value="停 止"> <script language=javascript> var count=0; var list; var h=0; var k; function startwater() { clearTimeout(h); list=treeidlist.value.split("|"); k=0; count=list.length; water(); } function water() { f1.action="http://tree.ci123.com/tree.php?treeid=".concat(list[list.length-count]); f1.submit.click(); count-=k; if(count>0) { if(k==0)k=1; else k=0; h=setTimeout(water,1000); } } </script> <form action="" name=f1 method=POST target=tree> <input type=submit name=submit value="" style=display:none> </form>
在"id=treeidlist>"后面添加上代码(用|隔开)就可以了。