●●● For Amusement ●●●   
携帯閲覧用URL

しげっくんでーす!

♪ここのサイトは知ってるかーい?
携帯閲覧できるんだーっ
いますぐ俺をークリックでぇー
携帯にアドレス送っちゃおーう!
パ・ケ・死・寸前〜♪
QRコードでアクセス

クリックで大きな画像が出ます
 
 


2004年06月27日

月めくりカレンダー

*MT素人日記 || 23:06
きままにポロポロ: 月めくりカレンダー

こちらを参考に月めくりカレンダーにしました。
日付にカーソルを乗せるとその日書いた一番新しい記事のタイトルまで出ちゃうようです。
便利!便利! けど私だけが感じる便利かもしれない(笑)

うちは一行カレンダーなので、calendarテンプレートに書いたソースはこうです。
(広告バナーも消してます)

<!--nobanner--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1./ Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /><title><$MTBlogName$></title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />

<MTBlogIfCCLicense>
<$MTCCLicenseRDF$>
</MTBlogIfCCLicense>

</head>
<body>

<div align="center" class="calendar">

<table style="border-top:1px dotted #666;
border-right:1px dotted #666;
border-left:1px dotted #666;
border-bottom:1px dotted #666;"
align="center" cellpadding="0" cellspacing="4" bgcolor="#ffffff" summary="カレンダー">

<caption class="calendarhead">
<MTArchivePrevious>
<a href="<MTBlogURL>archives/calendar/<MTArchiveDate format="%Y/%m/index">.php"> ≪</a>
</MTArchivePrevious>

<$MTArchiveDate format="%B %Y"$>

<MTArchiveNext>
<a href="<MTBlogURL>archives/calendar/<MTArchiveDate format="%Y/%m/index">.php"> ≫</a>
</MTArchiveNext>
</caption>

<tr><td align="center">
<MTCalendar month="this">
<span class="calendar">
<MTCalendarIfEntries>
<MTEntries lastn="1"><a href="<$MTEntryLink archive_type="Daily"$>" title="[<$MTEntryTitle$>]" target="_top"><$MTCalendarDay$></a></MTEntries>
</MTCalendarIfEntries>
<MTCalendarIfNoEntries><$MTCalendarDay$></MTCalendarIfNoEntries>
</span>
</MTCalendar>
</td>
</tr>
</table>
</div>

</body>
</html>

MainIndexの任意の場所に貼るタグは

<div align="center"> <iframe name="cal-iframe" src="<MTBlogURL>archives/calendar/<MTDate format="%Y/%m/index">.php" width="760" height="80" scrolling="NO" frameborder="0" marginwidth="0" marginheight="0"></iframe> </div>

ところで

hibi: February 2004 アーカイブ

MT月別カレンダー(PHP 版)

こちらを参考に

<? include "<MTBlogURL>archives/calendar/<MTDate format="%Y/%m/index">.php";? >

と書けばphpのファイルが呼び出せるのかなぁと思ったのだけど読み込んでくれないや(笑)
なんにも分からないでただまねっこしただけなので原因が分からないー。
日々精進。


-------


あ〜っ、なんのことはない。ただ余計なブラングがあっただけだった。

<? include "<MTBlogURL>archives/calendar/<MTDate format="%Y/%m/index">.php";?>

これを入れるとちゃんと読み込んでくれます。
今回うちのMTには結局使わなかったけど。



***コメント一覧 || コメントを書く
***トラックバック一覧 || トラックバックURL
横長月移動カレンダー
概要 サイドバーで場所を食っていたカレンダーを、横長スリム型に変更し、ついでにカレンダーの月間移動も出来るように直しました。 HTML構造とStylesheetも分離してあります。
ウェブログ: ぽんたの肉球、にぎにぎしたーい!
時刻: 2004年11月14日 14:48