<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>htmlmemo</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/" />
    <link rel="self" type="application/atom+xml" href="http://www.ayabin.jp/htmlmemo/atom.xml" />
    <id>tag:www.ayabin.jp,2011-05-04:/htmlmemo//15</id>
    <updated>2011-05-04T02:04:19Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 5.04</generator>

<entry>
    <title>IE8ハック</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2011/03/ie8.html" />
    <id>tag:www.ayabin.jp,2011:/htmlmemo//15.239</id>

    <published>2011-03-13T04:29:06Z</published>
    <updated>2011-05-04T02:04:19Z</updated>

    <summary><![CDATA[html&gt;/**/body h3.hack { margin-top /*...]]></summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>html&gt;/**/body h3.hack { margin-top /*\**/: -30px\9 }</p>]]>
        
    </content>
</entry>

<entry>
    <title>css,phpラベル</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/04/css.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.238</id>

    <published>2010-04-24T13:45:37Z</published>
    <updated>2011-05-04T02:04:19Z</updated>

    <summary>/* alpha--------------------------------...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p class="coding">/* alpha<br />--------------------------------------------------*/</p>]]>
        
    </content>
</entry>

<entry>
    <title>ime-mode</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/03/imemode.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.237</id>

    <published>2010-03-21T13:34:39Z</published>
    <updated>2011-05-04T02:04:19Z</updated>

    <summary>テキスト入力時のIME状態を指定するスタイルシートのプロパティ。IE独自仕様のプ...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>テキスト入力時のIME状態を指定するスタイルシートのプロパティ。<br />IE独自仕様のプロパティだが、FireFox3は対応しているもよう。</p><ul class="coding"><li>auto <ul><li>特に指定しません。</li></ul></li><li>active <ul><li>初期値が日本語入力モードになります。</li></ul></li><li>inactive <ul><li>初期値が英数字入力モードになります。</li></ul></li><li>disabled <ul><li>英数字入力モードになります。ユーザーの操作によるモードの変更はできません。</li></ul></li></ul><p>&nbsp;</p>]]>
        
    </content>
</entry>

<entry>
    <title>アクセス制限（Basic認証）</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/03/basic.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.236</id>

    <published>2010-03-06T00:45:49Z</published>
    <updated>2011-05-04T02:04:19Z</updated>

    <summary>新規のウェブサイトを構築中はアクセス制限をかけて、ユーザーにさらさないほうがよい...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>新規のウェブサイトを構築中はアクセス制限をかけて、ユーザーにさらさないほうがよいだろう。</p><p>【.htaccess】</p><p class="coding">AuthUserFile /home/<span style="color: #ff0000">hogehoge</span>/.htpasswd<br />AuthGroupFile /dev/null<br />AuthName &quot;Please enter your ID and password&quot;<br />AuthType Basic<br />require valid-user</p><p>【.htpasswd】</p><p class="coding">ayabin:ayin/JoUF/2w.</p><p>「<span style="color: #ff0000">hogehoge</span>」の部分を自分のユーザー名に変更し、「.htaccess」をDocumentRootに設置。<br />「.htpasswd」は<span style="color: #800080">DocumentRootの上に</span>設置。「.htpasswd」のパーミッションは「604」。</p><p>なお、「.htpasswd」のユーザー名とパスワードは以下のサイトで生成してくれる。</p><p><a target="_blank" href="http://www.shtml.jp/htaccess/make_htpasswd.html">http://www.shtml.jp/htaccess/make_htpasswd.html</a></p><p>PHPのcrypt関数を使うと、簡単に生成してくれるらしい（まだ試してない）</p>]]>
        
    </content>
</entry>

<entry>
    <title>clearfix</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/02/clearfix.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.235</id>

    <published>2010-02-15T05:44:02Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary><![CDATA[.clearfix:after {&nbsp;content:&quot;.&q...]]></summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p class="coding">.clearfix:after {<br />&nbsp;content:&quot;.&quot;;<br />&nbsp;display:block;<br />&nbsp;clear:both;<br />&nbsp;height:0<br />&nbsp;visibility:hidden;<br />}<br />.clearfix{<br />&nbsp;min-height:1px;<br />}<br />*html .clearfix{<br />&nbsp;height:1px;<br />&nbsp;/*\*//*/<br />&nbsp;height:auto;<br />&nbsp;overflow:hidden;<br />&nbsp;/**/<br />}</p>]]>
        
    </content>
</entry>

<entry>
    <title>互換表示</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/02/post-2.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.234</id>

    <published>2010-02-07T12:33:06Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>IE8などのモダンブラウザで、意図した通りスタイルシートを反映しない場合（ブラウ...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>IE8などのモダンブラウザで、意図した通りスタイルシートを反映しない場合（ブラウザ特有のバグを除く）、「互換表示」が「on」になっている可能性が高い。</p><p>「互換表示」を解除するには、IEの「ツール」から「互換表示」の設定を外す。<br />それでもうまくいかない場合は、その下の「互換表示設定」をクリックし、「互換表示に追加したWebサイト」から、エントリしているサイトを削除する。</p>]]>
        
    </content>
</entry>

<entry>
    <title>Cookie保存場所[Vista]</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/02/cookievista.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.233</id>

    <published>2010-02-07T11:43:33Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>Cookieの保存場所を確認するには、IEの「ツール」から「インターネットオプシ...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>Cookieの保存場所を確認するには、IEの「ツール」から「インターネットオプション」を選択。<br />「全般」タブの「閲覧の履歴」から「設定」をクリック。<br />「インターネット一時ファイルと履歴の設定」がポップアップ。<br />中央右下にある「ファイルの表示」をクリックすると、現在ＰＣに保存されているCookieを確認することができる。</p>]]>
        
    </content>
</entry>

<entry>
    <title>GoogleMap基本コード</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/01/googlemap.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.232</id>

    <published>2010-01-23T14:09:16Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary><![CDATA[GoogleMapをHP上に表示させる基本コード。&lt;!DOCTYPE ht...]]></summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
        <category term="JAVASCRIPT" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>GoogleMapをHP上に表示させる基本コード。</p><p class="coding">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />&lt;title&gt;緯度経度表示&lt;/title&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://maps.google.com/maps?file=api&amp;amp;v=2.s&amp;amp;key=ABQIAAAAKQHe2kxOnui3CAk1Lt49PxSIdwo4cTgpwSR1ZDc05_p9KmU5mBRXAB9pEgxgJHXEIMxAIENd0RkLiA&quot;&gt;&lt;/script">http://maps.google.com/maps?file=api&amp;amp;v=2.s&amp;amp;key=<span style="color: #ff0000">APIキー</span>&quot;&gt;&lt;/script</a>&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />//&lt;![CDATA[<br />function load(){<br />&nbsp;if(GBrowserIsCompatible()){<br />&nbsp;&nbsp;var map=new GMap2(document.getElementById(&quot;map&quot;));<br />&nbsp;&nbsp;map.setCenter(new GLatLng(37.4419,-122.1419),13);<br />&nbsp;}<br />}<br />//]]&gt;<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body onload=&quot;load()&quot;&gt;<br />&lt;div id=&quot;map&quot; style=&quot;width:400px;height:300px&quot;&gt;&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;&nbsp;</p><p>【注意点】<br />GoogleMapオブジェクトに「setCenter」メソッドで中央位置を指定してあげないと何も表示されない。</p>]]>
        
    </content>
</entry>

<entry>
    <title>IE6ハック</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/01/ie6.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.231</id>

    <published>2010-01-09T13:31:15Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>スターハック * html #hack { color:#000000; } セ...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>スターハック</p>
<p class="coding">* html #hack { color:#000000; }</p>
<p>セレクタの前に「*html」をつける。【対応ブラウザ：IE4～6、MacIE4～5】</p>
<p>アンダースコアハック</p>
<p class="coding">#hack { _color:#000000; }</p>
<p>プロパティの前に「_」（アンダースコア）をつける。【対応ブラウザ：IE4～6】</p>]]>
        
    </content>
</entry>

<entry>
    <title>フォントファミリー</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/01/post-1.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.230</id>

    <published>2010-01-09T13:01:09Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>きれいにみえる（流行の？）フォントファミリー。 スタイルシートの「body」に設...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>きれいにみえる（流行の？）フォントファミリー。<br />
スタイルシートの「body」に設定する。</p>
<p class="coding">body{<br />
&nbsp;&nbsp; font-family: &quot;ヒラギノ角ゴ Pro W3&quot;, &quot;Hiragino Kaku Gothic Pro&quot;, Osaka, &quot;メイリオ&quot;, Meiryo, &quot;ＭＳ Ｐゴシック&quot;, sans-serif;<br />
}</p>]]>
        
    </content>
</entry>

<entry>
    <title>文字の大きさを変更する</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/01/post.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.229</id>

    <published>2010-01-08T02:30:35Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>フォントサイズ変更スクリプトを以下のサイトからダウンロードする。 http://...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
        <category term="JAVASCRIPT" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>フォントサイズ変更スクリプトを以下のサイトからダウンロードする。</p>
<p><a href="http://insomnia.jp/workshop/">http://insomnia.jp/workshop/</a></p>
<p><a blank="_target" href="http://insomnia.jp/workshop/fontsize_changer_A/fscA.js">fscA.js（フォントサイズ変更スクリプト）</a></p>
<p>&nbsp;ダウンロードしたファイルを開き、以下のようｊに初期設定を行う。</p>
<p class="coding">============ :::初期設定::: ===========<br />
/*<br />
<br />
//値の単位を設定（必ずダブルクオートかクオートで括る）<br />
var fontSizeUnit=&quot;%&quot;;<br />
<br />
//一回の操作で変更させる値を設定（ダブルクオートやクオートで括らない）<br />
var perOrder=10;<br />
<br />
//初期状態の値を設定（ダブルクオートやクオートで括らない）<br />
var defaultSize=85;<br />
<br />
/*</p>
<p>&nbsp;設定が終わったら、目的のサイトの任意のディレクトリへ設置し、「&lt;head&gt;」内で読み込む。</p>
<p class="coding">&lt;script type=&quot;text/javascript&quot; src=&quot;../../js/fscA.js&quot;&gt;&lt;/script&gt;</p>
<p>最後に「フォントサイズ変更ボタン」を設置したい箇所に、以下のコードを埋め込む</p>
<p class="coding">&lt;div id=&quot;text-size&quot; class=&quot;clearFix&quot;&gt;<br />
&nbsp; &lt;ul&gt;<br />
&nbsp;&nbsp; &lt;li class=&quot;btn01&quot;&gt;&lt;span&gt;&lt;a href=&quot;#&quot; onclick=&quot;fsc('smaller');return false;&quot; onkeypress=&quot;fsc('smaller');return false;&quot;&gt;-&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;<br />
&nbsp;&nbsp; &lt;li class=&quot;btn02&quot;&gt;&lt;span&gt;&lt;a href=&quot;#&quot; onclick=&quot;fsc('larger');return false;&quot; onkeypress=&quot;fsc('larger');return false;&quot;&gt;+&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;<br />
&nbsp; &lt;/ul&gt;<br />
&lt;/div&gt;</p>]]>
        
    </content>
</entry>

<entry>
    <title>WEB製作基本フロー</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2010/01/web.html" />
    <id>tag:www.ayabin.jp,2010:/htmlmemo//15.228</id>

    <published>2010-01-08T02:14:25Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>目的企画設計製作目的達成の手段としてWEBサイトが出来上がる。...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<ol><li>目的</li><li>企画</li><li>設計</li><li>製作</li></ol><p>目的達成の手段としてWEBサイトが出来上がる。</p>]]>
        
    </content>
</entry>

<entry>
    <title>IE7ハック</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2009/10/ie7.html" />
    <id>tag:www.ayabin.jp,2009:/htmlmemo//15.227</id>

    <published>2009-10-25T02:36:17Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>該当セレクタの前に*:first-child+htmlを記述する。*:first...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
        <category term="HTML" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>該当セレクタの前に</p><p class="coding">*:first-child+html</p><p>を記述する。</p><p class="coding"><span class="af">*:first-child+html</span> #banner {<br />　　　　　　：<br />　　[IE7用のスタイルを記述]<br />　　　　　　：<br />}</p><p>な感じ。</p>]]>
        
    </content>
</entry>

<entry>
    <title>チラシの表裏をPDFで表示</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2009/10/pdf.html" />
    <id>tag:www.ayabin.jp,2009:/htmlmemo//15.226</id>

    <published>2009-10-18T12:33:20Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>まず、表と裏にあたるPDF（サンプルでは、「k-a.pdf&apos;」と「k-b.pdf...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>まず、表と裏にあたるPDF（サンプルでは、「k-a.pdf'」と「k-b.pdf'」）をそれぞれ用意する。<br />次に、メインとなるhtml「main.html」を準備し、「frameset」で２つのフレームを用意する。<br /><span style="color: #800080"><span>「frameset」は、「body」よりも前であることに注意</span>。</span><br />最初のフレームでは、PDFの読み込み、次のフレームでは、表裏を制御するボタンのついたhtml「bottom.html」を読み込む。</p><p>「main.html」</p><p class="coding">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot; &quot;<a href="http://www.w3.org/TR/html4/frameset.dtd">http://www.w3.org/TR/html4/frameset.dtd</a>&quot;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=x-sjis&quot;&gt;<br />&lt;meta http-equiv=&quot;Expires&quot; content=0&gt;<br />&lt;title&gt;&lt;/title&gt;<br />&lt;style&gt;<br />BODY<br />{<br />&nbsp;margin-left:0px;<br />&nbsp;margin-right:0px;<br />&nbsp;margin-top:0px;<br />&nbsp;margin-bottom:0px;<br />&nbsp;background-color:#FFFFFF;<br />&nbsp;color:#000000;<br />&nbsp;font-family:&quot;ＭＳ Ｐゴシック&quot;;<br />&nbsp;font-size:9pt;<br />}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/style&gt;<br />&lt;/head&gt;<br />&nbsp;&nbsp;&nbsp; &lt;frameset rows=&quot;*,75&quot; cols=&quot;*&quot; frameBorder=&quot;no&quot; framespacing=&quot;0&quot; border=&quot;0&quot; bordercolor=&quot;#FFFFFF&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000">&lt;frame&nbsp; name=&quot;_top&quot; scrolling=&quot;no&quot; border=&quot;0&quot; src=&quot;../../pdf/k-a.pdf&quot;&gt;</span><span style="color: #3366ff"><span>&lt;!--&nbsp;PDF領域 --&gt;</span></span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff9900">&lt;frame src=&quot;bottom.html&quot; name=&quot;bottom&quot; scrolling=&quot;no&quot; border=&quot;0&quot;&gt;<span style="color: #3366ff">&lt;!--&nbsp;表裏ボタン」 --&gt;</span><br /></span>&nbsp;&nbsp;&nbsp; &lt;/frameset&gt;<br />&nbsp;&nbsp;&nbsp; &lt;noframes&gt;<br />&nbsp;&nbsp;&nbsp; &lt;body&gt;<br />&nbsp;&nbsp;&nbsp; &lt;p&gt;エラー&lt;/p&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/body&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/noframes&gt;<br />&lt;/html&gt;<br />&nbsp;</p><p>「bottom.html」</p><p class="coding">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;<br />&quot;<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>&quot;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=shift_jis&quot;&gt;<br />&lt;title&gt;無題ドキュメント&lt;/title&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />&lt;!--<br />.TEXT_1 {&nbsp;FONT-SIZE: 12PX; LINE-HEIGHT: 130%<br />}<br />body {<br />&nbsp;margin-left: 0px;<br />&nbsp;margin-top: 0px;<br />&nbsp;margin-right: 0px;<br />&nbsp;margin-bottom: 0px;<br />}<br />--&gt;<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;table border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;3&quot;&gt;<br />&nbsp; &lt;tr&gt;<br />&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;div align=&quot;center&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr align=CENTER&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width=&quot;92&quot;&gt;&lt;div align=&quot;center&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;BUTTON&quot; value=&quot;　おもて面　&quot;&nbsp; onClick=&quot;window.parent._top.location.href='../../pdf/k-a.pdf'&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width=&quot;92&quot;&gt;&lt;div align=&quot;center&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;BUTTON&quot; value=&quot;　&nbsp; うら面&nbsp; 　&quot;&nbsp; onClick=&quot;window.parent._top.location.href='../../pdf/k-b.pdf'&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width=&quot;92&quot;&gt;&lt;div align=&quot;center&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;BUTTON&quot; value=&quot;ページを閉じる&quot; onClick=&quot;window.parent.close()&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/table&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/body&gt;<br />&lt;/html&gt;<br />&nbsp;</p>]]>
        
    </content>
</entry>

<entry>
    <title>FORM内でのEnter無効化</title>
    <link rel="alternate" type="text/html" href="http://www.ayabin.jp/htmlmemo/2009/06/formenter.html" />
    <id>tag:www.ayabin.jp,2009:/htmlmemo//15.225</id>

    <published>2009-06-17T01:06:08Z</published>
    <updated>2011-05-04T02:04:18Z</updated>

    <summary>FORM内テキストフィールドで、テキスト確定後、「Enter」を入力すると、ユー...</summary>
    <author>
        <name>webmaster</name>
        
    </author>
    
        <category term="HTML" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://www.ayabin.jp/htmlmemo/">
        <![CDATA[<p>FORM内テキストフィールドで、テキスト確定後、「Enter」を入力すると、ユーザーの意図に関係なく「action」で指定したファイルへサブミットする。<br />一般の人が使うアンケートフォームなどでは、ユーザーを惑わすことになり、解除したほうがいいだろう。</p><p>解除するには、２つのイベントハンドラを、フォームとボタンに加え、ボタンのタイプを「send」から「button」に変更することで実現できる。<br />以下、その方法。</p><p style="border-right: #ccc 1px solid; padding-right: 10px; border-top: #ccc 1px solid; padding-left: 10px; background: #eee; padding-bottom: 10px; border-left: #ccc 1px solid; padding-top: 10px; border-bottom: #ccc 1px solid">&lt;form action=&quot;xxx.php&quot; method=&quot;post&quot;&nbsp;&nbsp;<strong>onsubmit=&quot;return false;&quot;</strong>&gt;</p><p style="border-right: #ccc 1px solid; padding-right: 10px; border-top: #ccc 1px solid; padding-left: 10px; background: #eee; padding-bottom: 10px; border-left: #ccc 1px solid; padding-top: 10px; border-bottom: #ccc 1px solid">&lt;input type=&quot;<strong>button</strong>&quot;&nbsp; value=&quot;send&quot; <strong>onclick=&quot;submit();&quot;</strong> /&gt;</p>]]>
        
    </content>
</entry>

</feed>

