| 本帖最后由 木瓜 于 2015-9-6 23:01 编辑 
 复制代码<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Match</title>
</head>
<body>
<form method="post" name="form" onsubmit="return Check(document.form);">
<textarea rows="8" type="text" name="row" placeholder=" ... One By One"></textarea>
<br />
<input type="submit" name="submit" />
</form>
<br />
<?php
if(isset($_POST["submit"])){
        $v = "http://busi.vip.kankan.com/pay/useTicket?ticketId=";
        $arr = explode("\r\n",$_POST["row"]);
        echo "<script>\r\n";
        echo "document.write("任务将在5秒后开始!");\r\n";
        for($i=0;$i<count($arr);$i++){
                $res = $v . $arr[$i];
                echo "setTimeout("go" . $i . "()"," . $i . "*500);";
                echo "function go" . $i . "(){document.write("" . $arr[$i] . ": <iframe frameborder='0' height='22' width='50%' src='" . $res . "'></iframe><br />");}\r\n";
        }
        echo "</script>";
}
?>
<script>
function Check(obj){
        if(obj.row.value=='')
        {
                alert('不能为空');
                return false;
        }
        return true;
}
</script>
</body>
</html>
500 = 500毫秒,数值随便改。
 先登录卵巢看看,然后将激活码复制进文本框,一行一个,点击提交。
 |