자동으로 창크기 변환
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5336 | 1년 전 | 954 | |||
| 5335 | 1년 전 | 976 | |||
| 5334 | 1년 전 | 886 | |||
| 5333 | 1년 전 | 714 | |||
| 5332 |
바다클라우드
|
1년 전 | 3644 | ||
| 5331 |
뽕엄능브라
|
1년 전 | 1671 | ||
| 5330 | 1년 전 | 1330 | |||
| 5329 |
|
1년 전 | 2650 | ||
| 5328 | 1년 전 | 2454 | |||
| 5327 | 1년 전 | 3644 | |||
| 5326 | 1년 전 | 1548 | |||
| 5325 | JavaScript |
|
1년 전 | 687 | |
| 5324 | OS | 1년 전 | 752 | ||
| 5323 | PHP |
|
1년 전 | 894 | |
| 5322 | PHP |
|
1년 전 | 791 | |
| 5321 | PHP |
|
1년 전 | 654 | |
| 5320 | PHP |
|
1년 전 | 754 | |
| 5319 | PHP |
techstar
|
1년 전 | 799 | |
| 5318 | JavaScript |
|
1년 전 | 667 | |
| 5317 | PHP |
|
1년 전 | 612 | |
| 5316 | PHP |
|
1년 전 | 576 | |
| 5315 | PHP |
|
1년 전 | 686 | |
| 5314 | PHP |
|
1년 전 | 665 | |
| 5313 | PHP |
techstar
|
1년 전 | 764 | |
| 5312 | 정규표현식 |
|
1년 전 | 642 | |
| 5311 | JavaScript |
|
1년 전 | 706 | |
| 5310 | PHP |
|
1년 전 | 2120 | |
| 5309 | PHP |
techstar
|
1년 전 | 1608 | |
| 5308 | PHP |
techstar
|
1년 전 | 673 | |
| 5307 | node.js |
swallow
|
1년 전 | 1428 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기