비밀글 넣기
<script>
var password = '8642'
password = prompt('비밀번호를 입력해주세요:','');
if ( password != '8642' ) {
location.href = '';
}
</script>
글 요약
(게시글이 너무 길어서 목록에서 1개만 보일 때)
<!--more--><br />
더보기 버튼 추가
<div>
<input value="더보기" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != ''){this.parentNode.getElementsByTagName('div')[0].style.display = '';this.value = '숨기기';}else{this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; this.value = '더보기';}" type="button" />
<div style="display: none;">
내용이 나옵니다.
</div>
</div>