livedoor Blogの技術的情報などを公開しています。


CommentFormのHTMLタグセット


<IfArticleAllowComment>
<!-- CommentForm -->
<div class="article-option" id="comment-form">
	<h3>コメントする</h3>
	<IfCommentNeedAuth>
	<script type="text/javascript"><!--
		if (typeof(authorized_name) == "undefined") {
			document.writeln('<scr'+'ipt type="text/javascript" src="<$BlogAuthJsUrl$>"></scr'+'ipt>');
		}
	//-->
	</script>
	<script type="text/javascript"><!--
		document.writeln('<div class="comment-auth-announcement">');
		if(authorized_name) {
			document.write('<p class="authorized"><span class=\"authorized-name\">' + authorized_name + 'さん</span><a href=\"" _ article.logout_url _ "\">ログアウト</a></p></div>');
		}
		else {
			document.write('<p>このBlogにコメントするには<a href=\"" _ article.login_url _ "\">ログイン</a>が必要です。</p></div><style type="text/css"><!-- #comment-form-body { display: none; } --></style>');
		}
	//-->
	</script>
	</IfCommentNeedAuth>
	<div id="comment-form-body">
	<form action="<$ArticleCommentUrl$>#errors" method="post" name="comment_form" onSubmit="javacript:setCommentAuthor(this); return submitOnce(this.button);">
	<table cellpadding="0" cellspacing="0">
	<tbody>
	<tr class="input-auther">
		<th>名前</th>
		<td><IfCommentNeedAuth>
			<script type="text/javascript"><!--
				if(authorized_name)
					document.write(authorized_name);
				else
					document.write('<input id="author" name="author" />');
			//-->
			</script><Else><input id="author" name="author" /></IfCommentNeedAuth>
		</td>
	</tr>
	<tr class="input-email">
		<th>メール</th>
		<td><input id="email" name="email" /></td>
	</tr>
	<tr class="input-url">
		<th>URL</th>
		<td><input id="url" name="url" /></td>
	</tr>
	<tr class="input-etc">
		<th> </th>
		<td>
		<label class="input-memorize" for="bake">情報を記憶<input id="bake" type="checkbox" name="cookie" /></label>
		<label class="input-rating">
			評価<select id="rank" name="rating">
			<option value="">--</option>
			<option value="1">1(最低)</option>
			<option value="2">2</option>
			<option value="3">3</option>
			<option value="4">4</option>
			<option value="5">5(最高)</option>
			</select>
		</label>
		<label class="input-rating-face" for="radio-rating-face"><input type="radio" id="radio-rating-face" value="face" name="rating_icon" />顔</label>
		<label class="input-rating-star" for="radio-rating-star"><input type="radio" id="radio-rating-star" value="star" name="rating_icon" />星</label>
		</td>
	</tr>
		<tr class="input-facemark">
		<th> </th>
		<td><a href="javascript:void(0);" id="emojiLink1" onClick="showEmojiPanel(this.id, 'text')"><img src="" id="tool" width="18" height="18" alt="絵文字" title="" /></a></td>
	</tr>
	<tr class="input-comment-body">
		<th nowrap> </th>
		<td>
			<div class="textarea-outer">
				<textarea id="text" name="body"></textarea>
				<div id="emoji" style="display: none;"></div>
			</div>
		</td>
	</tr>
	<tr class="submit">
		<th> </th>
		<td><input type="submit" value=" 投稿する " class="button" name="button" /></td>
	</tr>
	</form>
	</tbody>
	</table>
	</div>
</div><!-- CommentForm End -->
<script type="text/javascript" language="javascript"><!--
	loadCommentAuthor(document.comment_form);
//-->
</script>
</IfArticleAllowComment>

  • twitter
  • livedoor クリップ
  • はてなブックマーク
  • delicious
  • Yahoo! ブックマーク
  • niftyブックマーク
  • Buzzurl

Wikiをはじめる

マイページ