창크기 자동 조절
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 116 | MySQL | 20년 전 | 5875 | ||
| 115 | PHP | 20년 전 | 5418 | ||
| 114 | MySQL | 20년 전 | 6568 | ||
| 113 | 기타 | 20년 전 | 15263 | ||
| 112 | 기타 | 20년 전 | 4527 | ||
| 111 | 기타 | 20년 전 | 5208 | ||
| 110 | 기타 | 20년 전 | 4787 | ||
| 109 | 기타 | 20년 전 | 4377 | ||
| 108 | 기타 | 20년 전 | 4217 | ||
| 107 | JavaScript | 20년 전 | 4446 | ||
| 106 | 기타 | 20년 전 | 4323 | ||
| 105 | MySQL |
|
20년 전 | 4893 | |
| 104 | 기타 | 20년 전 | 7087 | ||
| 103 | 기타 | 20년 전 | 5703 | ||
| 102 | JavaScript | 21년 전 | 7987 | ||
| 101 | 기타 | 21년 전 | 10109 | ||
| 100 | 기타 | 21년 전 | 24895 | ||
| 99 | PHP | 21년 전 | 8946 | ||
| 98 | MySQL | 21년 전 | 4956 | ||
| 97 | 기타 | 21년 전 | 5825 | ||
| 96 | JavaScript |
prosper
|
21년 전 | 3901 | |
| 95 | PHP |
prosper
|
21년 전 | 5859 | |
| 94 | 기타 |
아우겐나이스
|
21년 전 | 4475 | |
| 93 | 기타 | 21년 전 | 4118 | ||
| 92 | 기타 | 21년 전 | 3813 | ||
| 91 | 기타 | 21년 전 | 3924 | ||
| 90 | JavaScript | 21년 전 | 4987 | ||
| 89 | 기타 | 21년 전 | 3687 | ||
| 88 | 기타 | 21년 전 | 3243 | ||
| 87 | 기타 | 21년 전 | 3457 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기