<script type=”text/javascript”> <!– if(navigator.userAgent.indexOf(“MSIE”) > -1){ //Internet Explorer document.write(‘<!-‘+’-[if IE]>’); document.write(‘<input type=”button” value=”お気に入りに追加“‘); document.write(‘ onclick=”window.external.AddFavorite(‘サイトURL‘,’サイト名‘)”>’); document.write(‘<![endif]-‘+’->’); } else if(navigator.userAgent.indexOf(“Firefox”) > -1){ //Firefox document.write(‘<input type=”button” value=”ブックマークに追加“‘); document.write(‘ onclick=”window.sidebar.addPanel(‘サイト名‘,’サイトURL‘,”);”>’); } else if(navigator.userAgent.indexOf(“Opera”) > -1){ //Opera document.write(‘<a href=”サイトURL” rel=”sidebar” title=”サイト名“>ブックマークに追加</a>’); } else { //該当なし void(0); //何もしない } //–> </script>

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

supplied argument is not a valid MySQL result resource

2009年11月27日 過去Blog
supplied argument is not a valid MySQL result resource 直前に記述したSQLクエリに問題があるということ。 たとえば、存在しないフィールドを指定していたり・・・。 私の場合は、なぜか全角スペースが入っていて気付かないままでした・・・。(_ _。)・・・シュン atlanta life insurance…
「supplied argument is not a valid MySQL result resource」をはてなブックマークに追加

[2]:Interface Builder のみで Hello World

2010年11月19日 過去Blog
前回は、UITableViewを使って”HelloWorld”を表示しましたが、今回は、Interface Builderを使って、コードを書かずに"HelloWorld"を表示させてみます。 非常に簡単なアプリではありますが、Interface Builderを理解する最初のステップです。 今回の流れ: View Based Projectの新規作成 iPhone シュミレータで確認 UIの要素をホーム画面に追加 コードを実行 …
「[2]:Interface Builder のみで Hello World」をはてなブックマークに追加

jQueryの基本

2011年06月16日 過去Blog
ここでは、jQuery初心者の方へ向けに、jQueryの基本的な使い方、使うメリットなどをまとめていきます。jQueryは簡単なコードで、サイトに大きな効果をつけることが可能ですので、デザイナーさんやコーダーの方も是非、試してみてください☆…
「jQueryの基本」をはてなブックマークに追加

PHP 配列の要素を指定し、キーを取り出す

2010年04月14日 過去Blog
配列の要素の値から、そのキーを取り出す場合。 <?php $array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red'); $key = array_search('green', $array); // $key = 2; $key = array_search('red', $array); // $key = …
「PHP 配列の要素を指定し、キーを取り出す」をはてなブックマークに追加

お名前.com VPS サーバでphp アップデート

2011年04月25日 過去Blog
まず、ファイアーウォールからSSHを許可 http://guide.onamae-server.com/vps/3/31/81/124/ ステム設定 > セキュリティー > アップデートからアップデートなし(上級者向け)に変更。これでyumコマンドが使えるようになる。 サーバ管理画面上から システム設定>ユーザ>一般アカウント で一般ユーザのアカウントを作成。 Macのターミナ…
「お名前.com VPS サーバでphp アップデート」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy