最近没有项目,闲来无聊,写了个内网自动灌水的代码。
<script language="javascript">
var obj ;
function go() { obj = window.setInterval("s()",15000); }
function stop() { window.clearInterval(obj); }
function s() {
document.zyzForm.message.value += ":shaxiao:" ;
document.zyzForm.submit();
}
</script>
<form name="zyzForm" target="_zyzWin" action="http://202.107.*.*:8088/posting.php" method="post">
<table>
<tr><td>subject</td><td>
<input type="text" name="subject" size="45" maxlength="60" style="width:450px" value="" />
</td></tr>
<tr><td>message</td><td>
<textarea name="message" rows="15" cols="35" style="width:450px" >DING every 15s ! </textarea>
</td></tr>
<tr><td>type</td><td>
<select name="mode">
<option value="newtopic">newtopic</option>
<option selected value="reply">reply</option>
</select>
</td></tr>
<tr><td>forum No.</td><td>
<input name="f" value="" />
</td></tr>
<tr><td>topic No.</td><td>
<input name="t" value="112494" />
</td></tr>
<tr><td></td><td>
<!--
<input type="submit" name="preview" value="Preview"/>
<input type="submit" name="post" value="Submit" />
-->
<!-- hidden parameter for auto submit -->
<input type="hidden" name="post" value="Submit" />
<!-- controll buttons -->
<input type="button" value="go" onclick="go()"/>
<input type="button" value="stop" onclick="stop()"/>
</td></tr>
</table>
</form>
posted on 2007-05-30 11:07
apai 阅读(186)
评论(0) 编辑 收藏 所属分类:
web