게시글 색상코드 여분필드
1. write.skin.php 의 적당한 위치에 넣어줍니다.
2. 예제는 wr_1 로 하였습니다. 다른 여분필드를 사용하려면 그 부분만 찾아서 바꾸세요.
3. css 는 본인이 원하는대로 바꾸세요.
4. 코드복사 기능은 https 보안주소에서만 적용됩니다.
5. 기본값은 #000000 입니다.
6. https://wittazzurri.com/editor/html_editor.php 에서 확인해 보세요.
[code]
<style>
@font-face { font-family:'NEXON Lv1 Gothic OTF'; src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff') format('woff'); }
#colorDiv div { width:100px; font-weight:bold; padding:5px; margin-right:5px; font-size:16px; font-family:'NEXON Lv1 Gothic OTF'; text-align:center; cursor:pointer; border:1px solid #cccccc; border-radius:5px; box-shadow:#dddddd 2px 2px 4px; box-sizing:border-box; }
#colorDiv input { display:none; }
</style>
<div id="colorDiv">
<label for="wr_1"><div id="colorCode"></div></label>
<input type="color" id="wr_1" name="wr_1">
</div>
<script>
wr_1.onchange = function() {
colorCode.innerText = colorCode.style.color = wr_1.value;
navigator.clipboard.writeText(wr_1.value);
alert("색상코드가 복사되었습니다");
}
wr_1.value = "<?php echo $write['wr_1']; ?>";
colorCode.innerText = colorCode.style.color = wr_1.value;
</script>
[/code]
댓글 1개
역시....좋은자료입니다.
감사합니다
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4402 | ||
| 2484 | 1년 전 | 1262 | ||
| 2483 | 1년 전 | 863 | ||
| 2482 | 1년 전 | 712 | ||
| 2481 | 1년 전 | 1082 | ||
| 2480 | 1년 전 | 1184 | ||
| 2479 | 1년 전 | 840 | ||
| 2478 | 1년 전 | 1177 | ||
| 2477 | 1년 전 | 780 | ||
| 2476 | 1년 전 | 1587 | ||
| 2475 | 1년 전 | 923 | ||
| 2474 |
|
1년 전 | 934 | |
| 2473 | 1년 전 | 1519 | ||
| 2472 | 1년 전 | 861 | ||
| 2471 | 1년 전 | 918 | ||
| 2470 | 1년 전 | 788 | ||
| 2469 | 1년 전 | 1373 | ||
| 2468 | 1년 전 | 2958 | ||
| 2467 | 1년 전 | 853 | ||
| 2466 |
|
1년 전 | 1481 | |
| 2465 | 1년 전 | 803 | ||
| 2464 | 1년 전 | 1181 | ||
| 2463 | 1년 전 | 1352 | ||
| 2462 | 1년 전 | 1146 | ||
| 2461 |
|
1년 전 | 1171 | |
| 2460 | 1년 전 | 759 | ||
| 2459 | 1년 전 | 948 | ||
| 2458 | 1년 전 | 1345 | ||
| 2457 | 1년 전 | 1267 | ||
| 2456 |
|
1년 전 | 771 | |
| 2455 |
블랙캣77
|
1년 전 | 1496 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기