자동으로 창크기 변환
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 656 | Flash | 19년 전 | 5575 | ||
| 655 | 기타 | 19년 전 | 6031 | ||
| 654 | MySQL | 19년 전 | 4138 | ||
| 653 | JavaScript | 19년 전 | 4448 | ||
| 652 | JavaScript | 19년 전 | 4593 | ||
| 651 | Linux | 19년 전 | 3645 | ||
| 650 | 기타 | 19년 전 | 3710 | ||
| 649 | JavaScript | 19년 전 | 2901 | ||
| 648 | JavaScript | 19년 전 | 3002 | ||
| 647 | 기타 | 19년 전 | 2590 | ||
| 646 | 기타 |
|
19년 전 | 2860 | |
| 645 | 기타 | 19년 전 | 4021 | ||
| 644 | JavaScript | 19년 전 | 4649 | ||
| 643 | 기타 |
|
19년 전 | 3847 | |
| 642 | JavaScript |
|
19년 전 | 3019 | |
| 641 | 기타 | 19년 전 | 4320 | ||
| 640 | 기타 | 19년 전 | 4035 | ||
| 639 | PHP | 19년 전 | 6278 | ||
| 638 | 기타 | 19년 전 | 3836 | ||
| 637 | JavaScript | 19년 전 | 5112 | ||
| 636 | 기타 |
|
19년 전 | 2755 | |
| 635 | 기타 | 19년 전 | 2636 | ||
| 634 | JavaScript | 19년 전 | 4017 | ||
| 633 | 기타 | 19년 전 | 2897 | ||
| 632 | JavaScript | 19년 전 | 2774 | ||
| 631 | 기타 |
|
19년 전 | 3250 | |
| 630 | 기타 |
|
19년 전 | 6362 | |
| 629 | 기타 | 19년 전 | 3525 | ||
| 628 | 기타 | 19년 전 | 4108 | ||
| 627 | 기타 | 19년 전 | 6032 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기