Contents

조회 수 7028 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

큐 형식의 배열 사용 샘플..

<html>
<head>
<title>JS test</title>

<script>
var map = new Array();

function view(){
    while(map.length>0){
        v = map.shift() + "<br>";
        document.write( v );
    }
}

function add(){
    form = document.manage;

    if(form.memo.value!="")
    {
        map.push( form.memo.value );
        form.memo.value = "";
        form.memo.focus();
    }
    return false;
}

</script>

</head>

<body>

<form name=manage onSubmit="return add();">
    <input type=text name=memo>
    <input type=button value=ADD onClick="add();">
    <input type=button value=VIEW onClick="view();">
</form>

<script> document.manage.memo.focus(); </script>

</body>

</html>


?

  1. [js] 이미지 미리 로딩하기

  2. 도메인 관련 솔루션 분석할 거.. ㅋㄷ

  3. [js] 큐 형식으로 배열사용.. ㅋㅋ

  4. [c][java] 소켓 프로그래밍(채팅 서버 C, 클라이언트 Java)

  5. [php] 메모장 - 웅지학원 ([c] mysql 백업프로그램 포함)

  6. [js] 점점 커지는 새창..

  7. [c++] 템플릿(Template) 예제 소스..

  8. [c] 소켓 프로그래밍 요약..

  9. [web] 웹 연동 프로그램 모음..

  10. [c] 단기과정[01/24] 정렬 알고리즘

  11. [c] 패킷 에널라이저 예제 소스(성안당)

  12. [c++] 트리컨트롤 스텝 2 예제..

Board Pagination Prev 1 ... 42 43 44 45 46 47 48 49 50 51 ... 71 Next
/ 71