스

창크기 자동 조절

· 2006-03-17 (금) 13:09:04 · 4075
<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>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
05-08-01 조회 4,032
05-07-24 조회 5,405
05-07-16 조회 5,513
bbbking
05-07-08 조회 3,339
bbbking
05-07-08 조회 3,136
bbbking
05-07-08 조회 8,773
05-07-01 조회 3,320
05-06-30 조회 4,700
05-06-24 조회 5,166
05-06-24 조회 3,401
05-06-21 조회 6,807
05-06-17 조회 4,636
05-06-15 조회 5,446
05-05-04 조회 3,689
05-04-11 조회 4,791
05-04-04 조회 5,203
05-04-02 조회 3,595
05-03-30 조회 3,297
05-03-15 조회 3,449
05-03-15 조회 3,128
05-03-14 조회 2,608
05-03-13 조회 2,818
05-03-13 조회 2,965
05-03-13 조회 2,795
05-03-13 조회 3,038
05-03-13 조회 4,632
05-03-13 조회 3,172
05-03-13 조회 2,599
05-03-13 조회 2,629
05-03-13 조회 2,487
05-03-13 조회 3,660
05-03-13 조회 2,694
05-03-13 조회 2,704
05-03-13 조회 3,217
05-03-13 조회 3,488
05-03-13 조회 3,077
05-03-13 조회 3,031
05-03-13 조회 3,709
05-03-13 조회 2,648
05-03-13 조회 4,157
05-03-13 조회 2,871
05-03-13 조회 3,226
05-03-13 조회 2,699
05-03-13 조회 3,880
05-03-13 조회 2,564
05-03-12 조회 4,901
05-02-04 조회 3,480
04-12-13 조회 7,108
04-12-01 조회 3,382
04-11-30 조회 3,453
04-11-30 조회 2,791
04-11-30 조회 2,691
04-11-30 조회 4,093
04-11-29 조회 3,830
04-11-28 조회 3,766
04-11-28 조회 4,128
04-11-28 조회 3,551
04-11-28 조회 3,047
04-11-28 조회 3,586
04-11-24 조회 3,259
04-11-23 조회 3,041
04-11-17 조회 3,048
04-11-12 조회 3,331
04-11-12 조회 2,676
04-11-10 조회 3,905
04-08-23 조회 4,421
04-08-09 조회 5,070
04-08-08 조회 4,809
04-08-05 조회 6,601
03-09-26 조회 5,260