追記の開閉2
■参照元
http://webbingstudio.blog10.fc2.com/blog-entry-278.html
<head>〜</head>内に以下のスクリプトを...
<script language="javascript">
<!--
// 表示・非表示切り替えスクリプト
function Extended(ID)
{
ID = document.getElementById(ID).style;
if (ID.display == 'none') ID.display = "block";
else ID.display = "none";
}
// -->
</script>
<!--more_link-->〜<!--/more_link--> <!--more-->〜<!--/more-->をごっそり
<!--more_link-->
<p class="entry-more"><a href="<%topentry_link>#more<%topentry_no>" onclick="Extended('more<%topentry_no>'); return false;" title="「<%topentry_title>」の続きを読む">続きを読む</a></p>
<!--/more_link-->
<!--not_permanent_area-->
<div id="more<%topentry_no>" class="more">
<%topentry_more>
</div>
<!--/not_permanent_area-->
<!--permanent_area-->
<div class="permanent_more">
<%topentry_more>
</div>
<!--/permanent_area-->
に書き換える
スタイルシートの最後に
.more {
display: none;
margin-top: 1em;
}
/* 追記を隠す */
.permanent_more {
margin-top: 1em;
}
/* 個別記事ページの追記 */
を入れる
2回クリックしないと開かない場合
スクリプト内の「none」と「block」を全て逆にする

















