<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>knowledge !!</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/" />
   <link rel="self" type="application/atom+xml" href="http://know-web.com/knowledge01/atom.xml" />
   <id>tag:know-web.com,2007:/knowledge01//2</id>
   <updated>2007-06-10T15:51:45Z</updated>
   <subtitle>web関連備忘録</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.35</generator>

<entry>
   <title>よく使いそうなものリスト。</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/post.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.11</id>
   
   <published>2007-06-10T15:30:51Z</published>
   <updated>2007-06-10T15:51:45Z</updated>
   
   <summary>■別窓でOPEN ■常に同じ窓でOPEN ■戻る ■ジャンプメニュー ■Wind...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00102Javascript" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="13" label="JavaScript" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      <![CDATA[■<a href="#a001">別窓でOPEN</a>
■<a href="#a002">常に同じ窓でOPEN</a>
■<a href="#a003">戻る</a>
■<a href="#a004">ジャンプメニュー</a>
■<a href="#a005">Window閉じる</a>
■<a href="#a006">画像入れ替え</a>
■<a href="#a007">ボタンでリンク</a>
■<a href="#a008">日時取得(IEのみ！？)</a>

]]>
      <![CDATA[------------------------------------------
<a name="a001"></a>
<strong>■別窓でOPEN</strong>

&lt;script&nbsp;type=&quot;text/javascript&quot;&gt;&nbsp;
&lt;!--//&nbsp;
function&nbsp;disp1(url){&nbsp;nWin&nbsp;=&nbsp;window.open
(url,&nbsp;&quot;&quot;,&nbsp;&quot;width=500,height=550,scrollbars=yes,resizable=yes,
menubar=no,toolbar=no,location=no,directories=no,status=no&quot;);&nbsp;}&nbsp;
//&nbsp;--&gt;&nbsp;
&lt;/script&gt;

&lt;a&nbsp;href=&quot;javascript:disp1('---.html')&quot;&gt;・・・・・&lt;/a&gt;

********************
<a name="a002"></a>
<strong>■常に同じ窓でOPEN</strong>
&lt;script&nbsp;type=&quot;text/JavaScript&quot;&gt;
&lt;!--//&nbsp;
function&nbsp;disp1(url){&nbsp;nWin&nbsp;=&nbsp;window.open
(url,&nbsp;&quot;nWin&quot;,&nbsp;&quot;width=540,height=350,scrollbars=no,resizable=no,
menubar=no,toolbar=no,location=no,directories=no,status=no&quot;);nWin.focus();&nbsp;}
//--&gt;
&lt;/script&gt;

&lt;a&nbsp;href=&quot;javascript:disp1('---.html')&quot;&gt;・・・・・&lt;/a&gt;

********************
<a name="a003"></a>
<strong>■戻る</strong>

&lt;form&gt;&nbsp;
&lt;input&nbsp;type=&quot;button&quot;&nbsp;value=&quot;戻る&quot;&nbsp;onClick=&quot;javascript:history.back()&quot;&gt;&nbsp;
&lt;/form&gt;

&lt;p&gt;&lt;a&nbsp;href=&quot;javascript:history.back()&quot;&gt;前のページにもどる&lt;/a&gt;&lt;/p&gt;&nbsp;
&lt;p&gt;&lt;a&nbsp;href=&quot;javascript:history.go(-2)&quot;&gt;2つ前のページにもどる&lt;/a&gt;&lt;/p&gt;


********************
<a name="a004"></a>
<strong>■ジャンプメニュー</strong>

&lt;script&nbsp;language=&quot;JavaScript&quot;&gt;
&lt;!--
function&nbsp;jumpMenu(){
myElement&nbsp;=&nbsp;document.myForm.mySel;
iFrameB.location=myElement.options[myElement.selectedIndex].value;
}
//--&gt;
&lt;/script&gt;

&lt;form&nbsp;name=&quot;myForm&quot;&gt;
&lt;select&nbsp;name=&quot;mySel&quot;&nbsp;onChange=&quot;jumpMenu()&quot;&gt;
&lt;option&nbsp;value=&quot;1.html&quot;&nbsp;selected&gt;ページ1&lt;/option&gt;
&lt;option&nbsp;value=&quot;2.html&quot;&gt;ページ2&lt;/option&gt;
&lt;option&nbsp;value=&quot;3.html&quot;&gt;ページ3&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;


********************
<a name="a005"></a>
<strong>■Window閉じる</strong>

&lt;a&nbsp;href=&quot;javascript:window.close()&quot;&gt;ウィンドウを閉じる&lt;/a&gt;&nbsp;
or
&lt;input&nbsp;type=&quot;button&quot;&nbsp;value=&quot;ウィンドウを閉じる&quot;&nbsp;onClick=&quot;window.close()&quot;&gt;


********************
<a name="a006"></a>
<strong>■画像入れ替え</strong>



********************
<a name="a007"></a>
<strong>■ボタンでリンク </strong>
&lt;Form&gt;&lt;Input&nbsp;type=&quot;button&quot;&nbsp;value=&quot;ほげほげ&quot;&nbsp;onClick=&quot;location.href='http://hoge.com/'&quot;&gt;&lt;/Form&gt;


********************
<a name="a008"></a>
<strong>■日時取得(IEのみ！？)</strong>

&lt;SCRIPT&nbsp;language=&quot;JavaScript&quot;&gt;
&lt;!--
if&nbsp;(navigator.appName&nbsp;==&nbsp;&quot;Microsoft&nbsp;Internet&nbsp;Explorer&quot;)&nbsp;myApp=&quot;IE&quot;;
else&nbsp;if&nbsp;(navigator.appName&nbsp;==&nbsp;&quot;Netscape&quot;)&nbsp;myApp=&quot;NN&quot;;
else&nbsp;myApp=&quot;&quot;;

myVer&nbsp;=&nbsp;navigator.appVersion.charAt(0);

function&nbsp;myFunc(){
myWeek=new&nbsp;Array(&quot;日&quot;,&quot;月&quot;,&quot;火&quot;,&quot;水&quot;,&quot;木&quot;,&quot;金&quot;,&quot;土&quot;);
myD=new&nbsp;Date();
myYear=(myD.getYear()&lt;2000)?1900+myD.getYear()&nbsp;:&nbsp;myD.getYear();
myMonth=myD.getMonth()+1;
myDate=myYear&nbsp;+&nbsp;&quot;年&quot;&nbsp;+&nbsp;myMonth&nbsp;+&nbsp;&quot;月&quot;&nbsp;+&nbsp;myD.getDate()&nbsp;+&nbsp;&quot;日&nbsp;&quot;;
myDay=&quot;(&quot;&nbsp;+&nbsp;myWeek[myD.getDay()]&nbsp;+&nbsp;&quot;曜日)&nbsp;&quot;;
myTime=myD.getHours()+&quot;時&quot;+myD.getMinutes()+&quot;分&quot;+myD.getSeconds()+&quot;秒&quot;;
myMsg&nbsp;=&nbsp;myDate&nbsp;+&nbsp;myDay&nbsp;+&nbsp;myTime;

if&nbsp;((myApp&nbsp;==&nbsp;&quot;IE&quot;)&nbsp;&amp;&amp;&nbsp;(myVer&nbsp;&gt;=&nbsp;4)){
document.all(&quot;myIDdate&quot;).innerHTML&nbsp;=&nbsp;myMsg;
}else&nbsp;if&nbsp;((myApp&nbsp;==&nbsp;&quot;NN&quot;)&nbsp;&amp;&amp;&nbsp;(myVer&nbsp;&gt;=&nbsp;4))&nbsp;{
document.layers[&quot;myIDdate&quot;].document.open();
document.layers[&quot;myIDdate&quot;].document.write(myMsg);
document.layers[&quot;myIDdate&quot;].document.close();
}
setTimeout(&quot;myFunc()&quot;,1000);
}
//&nbsp;--&gt;&lt;/script&gt;
&lt;div&nbsp;ID=&quot;myIDdate&quot;&nbsp;STYLE=&quot;position:absolute&quot;&gt;&lt;/div&gt;

]]>
   </content>
</entry>
<entry>
   <title>カテゴリを並べ替えちまう。その2</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/mt_002.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.4</id>
   
   <published>2007-06-10T15:00:00Z</published>
   <updated>2007-06-10T09:12:07Z</updated>
   
   <summary>これまた、ほぼ転載 ------------------------------...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00301MovableType" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      これまた、ほぼ転載
--------------------------------------------------
      <![CDATA[MTタグで表示されるカテゴリー名などの先頭部分に付けた数字を任意の文字列に置き換えるプラグインです。実験的に作ったもので、内容はPerlで置換してるだけの至って簡単なものですが、これを使うとカテゴリーの順番を自分の好きなように並び替えることが出来ます。

--------------------------------------------------
転載元：<a href="http://pmlabo.com/archives/2004/12/post_21.html">pmLabo.</a>　さんのサイト
--------------------------------------------------

↑に設置方法、利用方法などあり！]]>
   </content>
</entry>
<entry>
   <title>Alex Sancho　さん</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/alexsancho.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.10</id>
   
   <published>2007-06-10T10:20:17Z</published>
   <updated>2007-06-10T10:31:06Z</updated>
   
   <summary>http://alexsancho.name/ ページのTOPに戻す機能がすばら...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00502Foreign" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="9" label="cool" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="8" label="green" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="11" label="海外のWebサイト" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      <![CDATA[<a href="http://alexsancho.name/">http://alexsancho.name/</a>

ページのTOPに戻す機能がすばらしい！
戻され感がGood！]]>
      
   </content>
</entry>
<entry>
   <title>Google Sitemapsを自動作成しちまう。</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/mt_006.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.9</id>
   
   <published>2007-06-10T10:08:49Z</published>
   <updated>2007-06-10T10:18:41Z</updated>
   
   <summary>以下、記事ほぼ転載。 -----------------------------...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00301MovableType" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MovableType" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="7" label="SEO" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="4" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3" label="転載" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      以下、記事ほぼ転載。
--------------------------------------------------
      <![CDATA[Google Sitemaps（サイトマップ）とは、Googleがサイト運営者向けに提供しているウェブマスター ツールの機能で、サイトの更新情報やページの一覧を規定のXMLファイルにして、Googleのクローラーに知らせるものです。

より確実に取りこぼし無く、Googleにインデックスしてもらうための仕組みです。

Google Sitemaps は、対応にさほど手間もかかりませんし、Googleから少しでも多くの訪問者を得たいと思う方は、ぜひ対応してください。

簡単なテンプレートの追加だけで、後は自動で更新されますので、ぜひ対応してみてください。


--------------------------------------------------
転載元：<a href="http://www.total-web.jp/technical/000064.php">トータルWEB</a>　さんのサイト
--------------------------------------------------
↑に設置方法、利用方法などあり！]]>
   </content>
</entry>
<entry>
   <title>管理画面にfaviconを設定しちまう。</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/mt_005.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.8</id>
   
   <published>2007-06-10T09:41:05Z</published>
   <updated>2007-06-10T09:46:11Z</updated>
   
   <summary>【プラグイン】　Cmsfavicon 以下、記事ほぼ転載。 ----------...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00301MovableType" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MovableType" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="4" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="5" label="プラグイン" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3" label="転載" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      <![CDATA[【プラグイン】　<a href="http://blog.aklaswad.com/2006/000063.html">Cmsfavicon</a>

以下、記事ほぼ転載。
--------------------------------------------------
]]>
      <![CDATA[Movable Type の管理画面にfaviconを設定するtransformerプラグインです。3.3系でしか動作しないはずです。
pluginsディレクトリに展開したら、システム・メニューのプラグインからfaviconのURLを指定してください。上手く行けば、即座に反映されるはずです。Firefox2.0で動作を確認しました。


--------------------------------------------------
転載元：<a href="http://blog.aklaswad.com/2006/000063.html">blog.aklaswad.com</a>　さんのサイト
--------------------------------------------------
↑に設置方法、利用方法などあり！]]>
   </content>
</entry>
<entry>
   <title>ソースコードをエントリしちまう。</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/mt_004.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.6</id>
   
   <published>2007-06-10T08:28:48Z</published>
   <updated>2007-06-10T08:50:54Z</updated>
   
   <summary>【プラグイン】EntityRefButton 以下、記事ほぼ転載。 ------...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00301MovableType" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MovableType" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="4" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="5" label="プラグイン" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3" label="転載" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      <![CDATA[【プラグイン】<a href="http://labs.m-logic.jp/2006/12/movabletypeentityrefbutton_v00.html">EntityRefButton</a>

以下、記事ほぼ転載。
--------------------------------------------------]]>
      <![CDATA[エントリー編集画面およびクイック投稿画面に追加される「＆（アンパサンド）」ボタンを押すだけで、選択した文字列を実体参照化してくれる便利なプラグインです。

--------------------------------------------------
転載元：<a href="http://labs.m-logic.jp/2006/12/movabletypeentityrefbutton_v00.html">エムロジック放課後プロジェクト</a>　さんのサイト
--------------------------------------------------
↑に設置方法、利用方法などあり！

【利用方法】
<a href="http://labs.m-logic.jp/plugins/entityrefbutton/docs/entityrefbutton.html">EntityRefbuttonプラグイン　説明ページ</a>]]>
   </content>
</entry>
<entry>
   <title>SCodeでコメントスパム対策やっちまう。</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/mt_003.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.7</id>
   
   <published>2007-06-10T00:19:29Z</published>
   <updated>2007-06-10T09:36:23Z</updated>
   
   <summary>【プラグイン】　SCode 1.0 以下、記事ほぼ転載。 -----------...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00301MovableType" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MovableType" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="4" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="5" label="プラグイン" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3" label="転載" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      <![CDATA[【プラグイン】　<a href="http://plugins.movalog.com/scode/index.php">SCode 1.0</a>

以下、記事ほぼ転載。
--------------------------------------------------
]]>
      <![CDATA[このプラグインはいわゆる「コメントスパム防止プラグイン」で、スクリーンショットのようにコメントフォームにランダムな数字（セキュリティコード）を画像で表示し、その数字をテキストエリアに設定・認証することで、手動で送信されたコメントとスパムロボットが送信したコメントを区別します（CAPTCHAという技術）。

--------------------------------------------------
転載元：<a href="http://www.koikikukan.com/archives/2006/04/17-011020.php">小粋空間</a>　さんのサイト
--------------------------------------------------
↑に設置方法、利用方法などあり！


※ダウンロードまでの道のりが変わったっぽい。
名前とメールアドレスを入力して、
プラグインDownload先をメールでお知らせしてくるー。


↓こっちもチェック！（同じく　小粋空間　さんのサイト）
<a href="http://www.koikikukan.com/archives/2006/04/28-003052.php">SCode プラグインでコメントスパムを制限する（その2：Typekeyサイン・インとの競合制御）</a>
↑む、難しそうだから、、、後々やろ。。]]>
   </content>
</entry>
<entry>
   <title>カテゴリを並べ替えちまう。</title>
   <link rel="alternate" type="text/html" href="http://know-web.com/knowledge01/2007/06/mt_001.html" />
   <id>tag:know-web.com,2007:/knowledge01//2.3</id>
   
   <published>2007-06-09T15:00:00Z</published>
   <updated>2007-06-10T08:51:17Z</updated>
   
   <summary>以下、記事ほぼ転載。 -----------------------------...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="00301MovableType" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="MovableType" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="4" label="カスタマイズ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3" label="転載" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://know-web.com/knowledge01/">
      以下、記事ほぼ転載。
--------------------------------------------------
      <![CDATA[Movable Typeでは記事をカテゴリーに分類することができますが、カテゴリー一覧を表示すると、文字コード順に並んでしまい、そのままでは任意の順番に並べることができません。

Webで検索してみると、「カテゴリー名の先頭に番号をつけておいて、カテゴリー名（MTCategoryLabelなど）の代わりに、カテゴリーの説明（MTCategoryDescription）を表示する」という手法が紹介されています。ただ、この方法だと、「カテゴリーの説明を本来の用途に使えなくなってしまう」という問題があります。

そこで、「カテゴリー名の先頭に番号をつけて、それを表示する際に番号をカットする」という手法を考えてみました。

これは簡単なプラグインで作ることができました。以下のリンクをクリックすると、プラグインをダウンロードすることができます。
--------------------------------------------------
転載元：<a href="http://www.h-fj.com/blog/archives/2004/12/19-113315.php">The blog of H.Fujimoto</a>　さんのサイト
--------------------------------------------------
【利用方法】
ダウンロードしたファイルを、Movable Typeのディレクトリの中の「plugins」ディレクトリにアップロードします。これで、プラグインがインストールされます。
この後、カテゴリー名を表示するタグに、「cutfirstchar="n"」の属性を指定します。nは、カテゴリー名の先頭からカットする文字数です。

例えば、カテゴリー名を「001カテゴリーA」のようにして、先頭3文字を番号にした場合だと、<$MTCategoryLabel$ >等のカテゴリー名表示タグを、<$MTCategoryLabel cutfirstchar="3"$>等に書き換えます。]]>
   </content>
</entry>

</feed>
