很多宝贝的父母问浇水器的做法,现在我把浇水器代码发在下边,如果有需要的就把这段代码加到主页特效设置里就可以了。呵呵,别忘了把我们朵朵的小花小树代码(109468|104102)也加上啊,愿我们的宝宝一起快乐成长!
<textarea style='width:500px;border:1px solid #999;' rows=4 id=treeidlist>109468|104102</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=--BLOCKED-->
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>