자동으로 창크기 변환
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 686 | 기타 |
|
19년 전 | 3179 | |
| 685 | JavaScript |
|
19년 전 | 3463 | |
| 684 | 기타 |
|
19년 전 | 3034 | |
| 683 | JavaScript |
|
19년 전 | 3075 | |
| 682 | 기타 |
|
19년 전 | 2645 | |
| 681 | 기타 |
|
19년 전 | 2935 | |
| 680 | JavaScript |
|
19년 전 | 3097 | |
| 679 | 기타 |
|
19년 전 | 3013 | |
| 678 | 기타 |
|
19년 전 | 3352 | |
| 677 | 기타 |
|
19년 전 | 4112 | |
| 676 | 기타 |
|
19년 전 | 3248 | |
| 675 | JavaScript |
|
19년 전 | 2787 | |
| 674 | 기타 |
|
19년 전 | 2699 | |
| 673 | 기타 |
|
19년 전 | 3019 | |
| 672 | 기타 |
|
19년 전 | 2568 | |
| 671 | JavaScript |
|
19년 전 | 2538 | |
| 670 | 기타 |
|
19년 전 | 2753 | |
| 669 | 기타 | 19년 전 | 4294 | ||
| 668 | Flash |
pearly
|
19년 전 | 5517 | |
| 667 | Flash |
pearly
|
19년 전 | 6802 | |
| 666 | 기타 |
|
19년 전 | 3288 | |
| 665 | Flash |
pearly
|
19년 전 | 5619 | |
| 664 | JavaScript | 19년 전 | 5584 | ||
| 663 | JavaScript |
|
19년 전 | 2528 | |
| 662 | 기타 |
|
19년 전 | 4389 | |
| 661 | 기타 |
|
19년 전 | 3428 | |
| 660 | JavaScript |
|
19년 전 | 5096 | |
| 659 | 기타 | 19년 전 | 5568 | ||
| 658 | 기타 | 19년 전 | 4690 | ||
| 657 | 기타 | 19년 전 | 5494 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기