선택 게시판 게시글 작성 버튼 만들기 > 코딩게시판

본문 바로가기
사이트 내 전체검색

코딩게시판

선택 게시판 게시글 작성 버튼 만들기

페이지 정보

작성자 익명 이름으로 검색  (192.2)
조회 183회 작성일 23-09-16 21:03

본문

신고

5baa8178660c7c9f8249cc59a6d92183_1694865788_5469.jpeg

*클릭 전 


5baa8178660c7c9f8249cc59a6d92183_1694865788_613.jpeg
*클릭 후


[code]<style>

            /* 버튼 스타일 */
            #menuButton {
            position: fixed;
            bottom: 70px;
            right: 15px;
            width: 50px;
            height: 50px;
            line-height: 50px;
            border: none;
            border-radius: 50%;
            background: rgba(63, 63, 63);
            color: #ffffff;
            text-align: center;
            font-size: 15px;
            z-index: 99;
            margin-right: 10px;
            cursor: pointer;
        }
        /* 메뉴 스타일 */
        #menu {
            position: fixed;
            bottom: 130px;
            right: 15px;
            display: none;
            z-index: 100;
            background-color: rgba(63, 63, 63);
            border: 1px solid rgba(53, 53, 53, 0.5);
            border-radius: 5px;
            padding: 10px;
        }
        /* 메뉴 버튼 스타일 */
        #menu button {
            display: block;
            width: 100%;
            background: none;
            border: none;
            padding: 5px 0;
            color: #ffffff;
            text-align: left;
            cursor: pointer;
            border-bottom:1px solid #5a5a5a
        }
        /* 메뉴 버튼 호버 스타일 */
        #menu button:hover {
            background-color: rgba(100, 100, 100, 0.5);
        }
    </style>
    <!-- 버튼 -->
    <button type="button" id="menuButton">
        <i class="fa fa-pencil" aria-hidden="true"></i><span class="sound_only">글쓰기</span>
    </button>
    <!-- 메뉴 -->
    <div id="menu">
        <button onclick="navigateTo('https://dsclub.kr/bbs/write.php?bo_table=free')">자유게시판</button>
        <button onclick="navigateTo('https://dsclub.kr/bbs/write.php?bo_table=gallery')">갤러리</button>
        <button onclick="navigateTo('https://dsclub.kr/bbs/write.php?bo_table=code')">코딩 자료실</button>
        <button onclick="navigateTo('https://dsclub.kr/bbs/write.php?bo_table=zip')">자료실</button>
        <button onclick="navigateTo('https://dsclub.kr/bbs/write.php?bo_table=it')">IT</button>
        <button onclick="navigateTo('https://dsclub.kr/bbs/write.php?bo_table=blog')">블로그</button>
    </div>
    <script>
        var menuVisible = false;
        document.getElementById('menuButton').addEventListener('click', function () {
            var menu = document.getElementById('menu');
            if (menuVisible) {
                menu.style.display = 'none';
            } else {
                menu.style.display = 'block';
            }
            menuVisible = !menuVisible;
        });
        function navigateTo(url) {
            window.location.href = url;
        }

    </script>[/code]

좋아요0 싫어요0
url 복사카카오톡 공유라인 공유페이스북 공유트위터 공유

댓글목록

profile_image

2kat님의 댓글

no_profile 2kat 쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (220.2) 작성일

감사합니다.

Total 173건 1 페이지
코딩게시판 목록
번호 제목 작성자 조회수 좋아요 싫어요 날짜
173 tak2 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13 0 0 3일 전
172 익명 이름으로 검색 12 0 0 3일 전
171 익명 이름으로 검색 18 0 0 3일 전
170 익명 이름으로 검색 19 0 0 3일 전
169 익명 이름으로 검색 19 0 0 3일 전
168 익명 이름으로 검색 18 0 0 3일 전
167 tak2 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12 0 0 3일 전
166 tak2 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 51 2 0 1개월 전
165 tak2 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 182 1 0 17일 전
164 이름으로 검색 226 1 0 17일 전
열람중 익명 이름으로 검색 184 0 0 18일 전
162 익명 이름으로 검색 154 0 0 18일 전
161
.php 확장자 댓글1
익명 이름으로 검색 230 0 0 18일 전
160 익명 이름으로 검색 207 0 0 21일 전
159
.sql 확장자 댓글1
익명 이름으로 검색 168 0 0 21일 전

검색


모바일버전서비스이용약관개인정보처리방침이메일 무단수집 거부
Copyright ©www.dsclub.kr All rights reserved.