창크기 자동 조절
<html>
<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>
</html>
펌 어서 퍼왔는지 오래된거라 기억이 가물가물<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<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>
</html>
펌 어서 퍼왔는지 오래된거라 기억이 가물가물<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 296 | JavaScript |
hwatta
|
20년 전 | 3371 | |
| 295 | JavaScript | 20년 전 | 3911 | ||
| 294 | 기타 | 20년 전 | 3659 | ||
| 293 | JavaScript |
kyodon
|
20년 전 | 3990 | |
| 292 | 기타 |
|
20년 전 | 4240 | |
| 291 | MySQL |
|
20년 전 | 4878 | |
| 290 | 기타 |
|
20년 전 | 4129 | |
| 289 | 기타 |
yesmoa
|
20년 전 | 7370 | |
| 288 | 기타 | 20년 전 | 5018 | ||
| 287 | MySQL |
홀로남은자
|
20년 전 | 6053 | |
| 286 | JavaScript | 20년 전 | 4387 | ||
| 285 | Flash | 20년 전 | 5762 | ||
| 284 | 기타 | 20년 전 | 5951 | ||
| 283 | 기타 | 20년 전 | 8483 | ||
| 282 | 기타 | 20년 전 | 4995 | ||
| 281 | 기타 | 20년 전 | 4123 | ||
| 280 | JavaScript |
크리스탈처럼
|
20년 전 | 6838 | |
| 279 | 기타 | 20년 전 | 3746 | ||
| 278 | 기타 |
|
20년 전 | 5896 | |
| 277 | 기타 | 20년 전 | 5628 | ||
| 276 | 기타 | 20년 전 | 3735 | ||
| 275 | 기타 | 20년 전 | 6243 | ||
| 274 | 기타 |
|
20년 전 | 3995 | |
| 273 | JavaScript | 20년 전 | 5582 | ||
| 272 | Linux | 20년 전 | 5215 | ||
| 271 | MySQL | 20년 전 | 5113 | ||
| 270 | 기타 | 20년 전 | 5805 | ||
| 269 | 기타 |
yesmoa
|
20년 전 | 7323 | |
| 268 | 기타 | 20년 전 | 7517 | ||
| 267 | JavaScript |
|
20년 전 | 3240 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기