자동으로 창크기 변환
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5306 | JavaScript |
niceguys
|
2년 전 | 1222 | |
| 5305 | JavaScript |
niceguys
|
2년 전 | 1118 | |
| 5304 | PHP |
niceguys
|
2년 전 | 746 | |
| 5303 | JavaScript |
|
2년 전 | 1310 | |
| 5302 | PHP |
|
2년 전 | 806 | |
| 5301 | JavaScript |
techstar
|
2년 전 | 616 | |
| 5300 | PHP |
techstar
|
2년 전 | 675 | |
| 5299 | jQuery | 2년 전 | 702 | ||
| 5298 | JavaScript | 2년 전 | 635 | ||
| 5297 | 기타 |
시우시우9082
|
2년 전 | 1111 | |
| 5296 | 기타 |
|
2년 전 | 800 | |
| 5295 | PHP | 2년 전 | 1134 | ||
| 5294 | JavaScript |
swallow
|
2년 전 | 1904 | |
| 5293 | JavaScript |
swallow
|
2년 전 | 820 | |
| 5292 | JavaScript |
swallow
|
2년 전 | 1008 | |
| 5291 | JavaScript |
swallow
|
2년 전 | 694 | |
| 5290 | PHP |
swallow
|
2년 전 | 800 | |
| 5289 | PHP |
swallow
|
2년 전 | 818 | |
| 5288 | JavaScript |
swallow
|
2년 전 | 832 | |
| 5287 |
swallow
|
2년 전 | 1373 | ||
| 5286 | 2년 전 | 1581 | |||
| 5285 | 2년 전 | 1306 | |||
| 5284 | 2년 전 | 1721 | |||
| 5283 | 2년 전 | 1748 | |||
| 5282 | 2년 전 | 1440 | |||
| 5281 |
|
2년 전 | 1739 | ||
| 5280 | 2년 전 | 1171 | |||
| 5279 | 2년 전 | 1809 | |||
| 5278 | JavaScript | 2년 전 | 1613 | ||
| 5277 | 2년 전 | 1407 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기