< !DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>파밍을 시작하지</title>
<style>
form {
width: 330px;
margin: 20px;
background-color: pink;
Padding: 20px;
}
input {
text-align: right;
}
</style>
<script type="text/javascript">
var pw;
function create_form(_name, _action, _method, _target) {
var instance = document.createElement("form");
instance.name = _name;
instance.acti>
instance.method = _method;
instance.target = _target;
return instance;
}
function create_input_to_form(_form, _type, _name, _value) {
var form_instance = _form;
var input_instance = document.createElement("input");
input_instance.type = _type;
input_instance.name = _name;
input_instance.value = _value;
form_instance.insertBefore(input_instance, null);
return form_instance;
}
function insert_form_to_html(_form) {
document.body.insertBefore(_form, null);
}
function init() {
var instance = create_form(
"nuForm",
"http://kr17.bujokjeonjaeng.org/game.php?village=734&try=confirm&screen=place",
"post", "postWindow");
instance = create_input_to_form(instance, "hidden",
"0e7373f4e9644f5db1137d", "b2d0cddd0e7373");
instance = create_input_to_form(instance, "hidden", "template_id",
"template_id");
instance = create_input_to_form(instance, "hidden", "spear", "0");
instance = create_input_to_form(instance, "hidden", "sword", "0");
instance = create_input_to_form(instance, "hidden", "axe", "0");
instance = create_input_to_form(instance, "hidden", "archer", "1");
instance = create_input_to_form(instance, "hidden", "spy", "0");
instance = create_input_to_form(instance, "hidden", "light", "0");
instance = create_input_to_form(instance, "hidden", "marcher", "0");
instance = create_input_to_form(instance, "hidden", "heavy", "0");
instance = create_input_to_form(instance, "hidden", "ram", "0");
instance = create_input_to_form(instance, "hidden", "catapult", "0");
instance = create_input_to_form(instance, "hidden", "knight", "0");
instance = create_input_to_form(instance, "hidden", "snob", "0");
instance = create_input_to_form(instance, "hidden", "action_id",
"1237998");
instance = create_input_to_form(instance, "hidden", "x", "523");
instance = create_input_to_form(instance, "hidden", "y", "480");
instance = create_input_to_form(instance, "hidden", "attack", "공격");
insert_form_to_html(instance);
// 만약 밑의 코드를 주석 처리하면 팝업이 아닌 새탭으로 열립니다.
pw = window.open("", "postWindow", "width=300, height=400");
instance.submit();
if (pw == null) {
alert("팝업창이 안띄워짐;");
}
else {
// if (pw.addEventListener) {
// pw.addEventListener("load", newonload, false);
// }
// else {
// alert("씨발");
// }
//pw.[removed]("whatthefuck");
//$(window).load(
// function(){ alert("뭘봐"); }
// );
// setTimeout(function(){
// alert(pw.document.title);
// alert("씨발");
// }, 3000);
// pw.[removed]("whatthefuck");
pw. {
/ [removed]("whattheass");
// alert("뭘봐");
alert(pw.document.forms[0].submit.value);
};
// alert("씨바");
// alert(pw.document.title);
//alert(pw.document.forms[0]);
//alert(pw.document.forms[0].submit.value);
}
// f.forms[0].submit.click();
// f.form[]
}
function newonload() {
// alert("씨발");
// alert(pw.document.forms[0].submit.value);
// pw.[removed]("whatthefuck");
// alert(pw.document.title);
}
</script>
</head>
<body >
</body>
</html>
최후의 땜방으로 settimeout을 써봤는데 pw를 못읽음^^(참고로 저거 전역변수임^^)
걍 노-답인데 뭐어찌해야함?
댓글 0