以下の内容はhttp://10plate.blog44.fc2.com///blog-entry-126.htmlより取得しました。


新着記事に新着表示「NEW」マークを付けて目立たせる

キイタ?( ゚д゚)オクサン(゚д゚ )アラヤダワァのちゃんさんが新着記事に「NEW」マークを付けて目立たせる方法を教えてくれたので紹介します。
「NEW」マークが付くとその記事を読んでもらえる確率が上がりそうですね。


HTMLを編集します。

<head>


<!--▼新着記事用newマーク▼-->
<script type="text/javascript"><!--
function nw(u1,u2,u3,u4) {
var today=new Date();
var nt=24; var c=new Date(u1,u2-1,u3,u4);
if (today-c<3600000*nt) {
document.write('<img src="画像URL" border="0">')}
}
--></script>
<!--▲新着記事用newマーク▲-->

</head>



<!--▼▼ メイン表示 ▼▼-->
<!--▼ エントリー(記事)▼-->

<!--▼newマーク▼-->
<script type="text/javascript">
nw(<%topentry_year>,<%topentry_month>,<%topentry_day>,<%topentry_hour>)
</script>
<!--▲newマーク▲-->

<a href="<%topentry_link>" name="entry<%topentry_no>" id="entry<%topentry_no>" title="記事を参照">

<!--/topentry-->
<!--▲ エントリー(記事)▲-->


nt=24;」が時間なので12にすれば12時間だけ付きます。

<img src="画像URL" border="0">
この部分はアイコン画像が無いなら、
<font color="好きな色" size="希望の文字の大きさ">NEW!!</font>
とするとNEW!!の文字を表示します。

新着記事を読んでもらいやすくなることで全体的なアクセスアップに繋がるかも知れませんね。

ちゃんさん有難う御座いました^^

【2009/04/15 追記】
上記はstandardシリーズ向けに書かれた記事です。
lightframeシリーズの場合は下記箇所に挿入してください。

<!--▼ エントリー(記事)▼-->
<!--topentry-->
<div class="ently_outline">
<h2 class="ently_title">
<!--▼newマーク▼-->
<script type="text/javascript">
nw(<%topentry_year>,<%topentry_month>,<%topentry_day>,<%topentry_hour>)
</script>
<!--▲newマーク▲-->

<a href="<%topentry_link>" name="entry<%topentry_no>" id="entry<%topentry_no>" title="記事を参照">
<%topentry_title></a>
</h2>
<div class="ently_body">
<div class="ently_text">
<%topentry_body>

関連記事



以上の内容はhttp://10plate.blog44.fc2.com///blog-entry-126.htmlより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14