서버 점검 안내

dsclub은 서비스의 안정성과 성능 향상을 위해
매일 04시 30분에 정기 점검이 진행됩니다.

점검 시간: 오전 4시 30분 ~ 4시 35분

해당 시간 동안 일시적으로 서비스에 접속이 불가능하오니, 양해 부탁드립니다.

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

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

페이지 정보

작성자 익명 (192.♡.0.1) 작성일 23-09-16 21:03 조회 4,587 댓글 1

본문

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]

좋아요59 이 글을 좋아요하셨습니다
url 복사 카카오톡 공유 라인 공유 페이스북 공유 트위터 공유

2kat님의 댓글

no_profile 2kat 아이피 (220.♡.000.000) 작성일

감사합니다.

전체 269건
게시물 검색

접속자집계

오늘
911
어제
1,445
최대
4,271
전체
291,821