글 삭제

작성자 본인만 삭제할 수 있습니다

← 홈으로
익명 · 2023.09.16 · 조회 9,132
선택 게시판 게시글 작성 버튼 만들기
<p><img src="https://dsclub.kr/data/editor/2309/5baa8178660c7c9f8249cc59a6d92183_1694865788_5469.jpeg" title="5baa8178660c7c9f8249cc59a6d92183_1694865788_5469.jpeg" alt="5baa8178660c7c9f8249cc59a6d92183_1694865788_5469.jpeg"></p><p><span>*</span><span>클릭 전</span>&nbsp;</p><p><span><br></span></p><p><img src="https://dsclub.kr/data/editor/2309/5baa8178660c7c9f8249cc59a6d92183_1694865788_613.jpeg" title="5baa8178660c7c9f8249cc59a6d92183_1694865788_613.jpeg" alt="5baa8178660c7c9f8249cc59a6d92183_1694865788_613.jpeg"><br style="clear:both;">*클릭 후</p><p><br></p><p>[code]&lt;style&gt;</p><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* 버튼 스타일 */</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #menuButton {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; position: fixed;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bottom: 70px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right: 15px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 50px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height: 50px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; line-height: 50px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border: none;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border-radius: 50%;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; background: rgba(63, 63, 63);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; color: #ffffff;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align: center;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font-size: 15px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z-index: 99;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; margin-right: 10px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor: pointer;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /* 메뉴 스타일 */</div><div>&nbsp; &nbsp; &nbsp; &nbsp; #menu {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; position: fixed;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bottom: 130px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right: 15px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display: none;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; z-index: 100;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; background-color: rgba(63, 63, 63);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border: 1px solid rgba(53, 53, 53, 0.5);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border-radius: 5px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding: 10px;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /* 메뉴 버튼 스타일 */</div><div>&nbsp; &nbsp; &nbsp; &nbsp; #menu button {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display: block;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 100%;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; background: none;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border: none;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding: 5px 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; color: #ffffff;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text-align: left;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cursor: pointer;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; border-bottom:1px solid #5a5a5a</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; /* 메뉴 버튼 호버 스타일 */</div><div>&nbsp; &nbsp; &nbsp; &nbsp; #menu button:hover {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; background-color: rgba(100, 100, 100, 0.5);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &lt;/style&gt;</div><div>&nbsp; &nbsp; &lt;!-- 버튼 --&gt;</div><div>&nbsp; &nbsp; &lt;button type="button" id="menuButton"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;i class="fa fa-pencil" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="sound_only"&gt;글쓰기&lt;/span&gt;</div><div>&nbsp; &nbsp; &lt;/button&gt;</div><div>&nbsp; &nbsp; &lt;!-- 메뉴 --&gt;</div><div>&nbsp; &nbsp; &lt;div id="menu"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button onclick="navigateTo('<a href="https://dsclub.kr/bbs/write.php?bo_table=free" rel="nofollow">https://dsclub.kr/bbs/write.php?bo_table=free</a>')"&gt;자유게시판&lt;/button&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button onclick="navigateTo('<a href="https://dsclub.kr/bbs/write.php?bo_table=gallery" rel="nofollow">https://dsclub.kr/bbs/write.php?bo_table=gallery</a>')"&gt;갤러리&lt;/button&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button onclick="navigateTo('<a href="https://dsclub.kr/bbs/write.php?bo_table=code" rel="nofollow">https://dsclub.kr/bbs/write.php?bo_table=code</a>')"&gt;코딩 자료실&lt;/button&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button onclick="navigateTo('<a href="https://dsclub.kr/bbs/write.php?bo_table=zip" rel="nofollow">https://dsclub.kr/bbs/write.php?bo_table=zip</a>')"&gt;자료실&lt;/button&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button onclick="navigateTo('<a href="https://dsclub.kr/bbs/write.php?bo_table=it" rel="nofollow">https://dsclub.kr/bbs/write.php?bo_table=it</a>')"&gt;IT&lt;/button&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;button onclick="navigateTo('<a href="https://dsclub.kr/bbs/write.php?bo_table=blog" rel="nofollow">https://dsclub.kr/bbs/write.php?bo_table=blog</a>')"&gt;블로그&lt;/button&gt;</div><div>&nbsp; &nbsp; &lt;/div&gt;</div><div>&nbsp; &nbsp; &lt;script&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; var menuVisible = false;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('menuButton').addEventListener('click', function () {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var menu = document.getElementById('menu');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (menuVisible) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.style.display = 'none';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu.style.display = 'block';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menuVisible = !menuVisible;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; });</div><div>&nbsp; &nbsp; &nbsp; &nbsp; function navigateTo(url) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; window.location.href = url;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><p>&nbsp; &nbsp; &lt;/script&gt;[/code]</p>
삭제된 게시글은 복구할 수 없습니다