스

창크기 자동 조절

· 2006-03-17 (금) 13:09:04 · 4072
<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건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,747
12-01-11 조회 1.2만
12-01-10 조회 2,847
12-01-08 조회 3,441
12-01-05 조회 5,334
11-12-29 조회 3,051
11-12-27 조회 2,835
11-12-25 조회 3,019
11-12-22 조회 3,454
11-12-14 조회 2,916
11-12-12 조회 3,538
11-11-28 조회 3,377
10-10-19 조회 2,834
08-09-05 조회 3,755
08-09-05 조회 3,569
08-06-14 조회 3,314
08-04-22 조회 3,590
08-04-17 조회 3,594
07-10-03 조회 4,210
07-10-03 조회 3,605
07-10-03 조회 7,288
07-10-03 조회 4,566
07-10-03 조회 3,262
07-10-03 조회 2,853
07-10-02 조회 3,569
07-10-02 조회 3,099
07-09-27 조회 5,017
07-09-27 조회 3,843
06-09-26 조회 3,514
06-09-26 조회 4,731
06-09-22 조회 3,906
06-09-22 조회 3,521
06-09-22 조회 4,268
06-09-21 조회 4,201
06-08-18 조회 3,692
05-11-30 조회 4,740
05-07-15 조회 4,587
05-03-23 조회 4,651
05-03-14 조회 3,320
05-03-13 조회 2,695
04-08-05 조회 5,767