자동으로 창크기 변환
<script language=javascript>
// Handle all the FSCommand messages in a Flash movie.
function mission_DoFSCommand(x, y) {
window.resizeTo(x ,y);
var tempX = (screen.width/2)-(x/2);
var tempY = (screen.height/2)-(y/2);
window.moveTo(tempX,tempY);
if( document.f1.state.value == "up" ){
if( document.f1.x.value > 600 ){
document.f1.state.value = "down"
}else{
document.f1.x.value = eval(x)+10;
document.f1.y.value = eval(y)+10;
}
}else if( document.f1.state.value == "down" ){
if( document.f1.x.value < 400 ){
document.f1.state.value = "up"
}else{
document.f1.x.value = eval(x)-10;
document.f1.y.value = eval(y)-10;
}
}
setTimeout("mission_DoFSCommand(document.f1.x.value, document.f1.y.value)",50);
}
</script>
<body onload="mission_DoFSCommand(400, 400)" >
<form name="f1">
<input type=text name='state' value='up'><br>
<input type=text name='x'><br>
<input type=text name='y'>
</form>
</body><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
// Handle all the FSCommand messages in a Flash movie.
function mission_DoFSCommand(x, y) {
window.resizeTo(x ,y);
var tempX = (screen.width/2)-(x/2);
var tempY = (screen.height/2)-(y/2);
window.moveTo(tempX,tempY);
if( document.f1.state.value == "up" ){
if( document.f1.x.value > 600 ){
document.f1.state.value = "down"
}else{
document.f1.x.value = eval(x)+10;
document.f1.y.value = eval(y)+10;
}
}else if( document.f1.state.value == "down" ){
if( document.f1.x.value < 400 ){
document.f1.state.value = "up"
}else{
document.f1.x.value = eval(x)-10;
document.f1.y.value = eval(y)-10;
}
}
setTimeout("mission_DoFSCommand(document.f1.x.value, document.f1.y.value)",50);
}
</script>
<body onload="mission_DoFSCommand(400, 400)" >
<form name="f1">
<input type=text name='state' value='up'><br>
<input type=text name='x'><br>
<input type=text name='y'>
</form>
</body><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5246 | node.js |
swallow
|
2년 전 | 1105 | |
| 5245 | PHP |
swallow
|
2년 전 | 2527 | |
| 5244 | PHP |
swallow
|
2년 전 | 1286 | |
| 5243 | JavaScript |
swallow
|
2년 전 | 685 | |
| 5242 | node.js |
swallow
|
2년 전 | 666 | |
| 5241 | node.js |
swallow
|
2년 전 | 778 | |
| 5240 | MySQL |
swallow
|
2년 전 | 807 | |
| 5239 | MySQL | 2년 전 | 781 | ||
| 5238 | JavaScript | 2년 전 | 983 | ||
| 5237 | 웹서버 |
swallow
|
2년 전 | 3989 | |
| 5236 | PHP |
swallow
|
2년 전 | 899 | |
| 5235 | PHP |
swallow
|
2년 전 | 1378 | |
| 5234 | 기타 | 2년 전 | 759 | ||
| 5233 | jQuery |
swallow
|
2년 전 | 2036 | |
| 5232 | 2년 전 | 618 | |||
| 5231 | 2년 전 | 1173 | |||
| 5230 | 2년 전 | 1074 | |||
| 5229 | PHP |
swallow
|
2년 전 | 1023 | |
| 5228 | MySQL | 2년 전 | 726 | ||
| 5227 | PHP |
swallow
|
2년 전 | 836 | |
| 5226 | PHP |
swallow
|
2년 전 | 1811 | |
| 5225 | PHP | 2년 전 | 575 | ||
| 5224 | node.js |
swallow
|
2년 전 | 4082 | |
| 5223 | PHP |
swallow
|
2년 전 | 1316 | |
| 5222 | 기타 |
techstar
|
2년 전 | 562 | |
| 5221 | PHP | 2년 전 | 652 | ||
| 5220 |
swallow
|
2년 전 | 904 | ||
| 5219 | 2년 전 | 881 | |||
| 5218 | 2년 전 | 523 | |||
| 5217 | 2년 전 | 999 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기