<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


ピックアップ記事

iphoneアプリ開発に役立つリンク集

2010年11月19日 過去Blog
iOS Reference Library 日本語に翻訳されたiOSのドキュメントです。 スタンフォードiPhone Application Programming アップルの現役社員による講義(スタンフォード大学の授業)が見られます。 iPhone Application Programming Course (CS 193P) 2010 Winter 講義動画…
「iphoneアプリ開発に役立つリンク集」をはてなブックマークに追加

PHP strstr stristr ある文字列が含まれるかどうか調べる

2010年06月11日 過去Blog
$string = 'Hello World!'; if(stristr($string, 'earth') === FALSE) { echo '"earth" not found in string'; } // 出力は "earth" not found in string となります 参照元:http://www.php.net/manual/ja/function.st…
「PHP strstr stristr ある文字列が含まれるかどうか調べる」をはてなブックマークに追加

ユーザーエージェントを調べる方法

2009年11月24日 過去Blog
ユーザーエージェントを調べる方法 javascript:alert(navigator.userAgent) http://katozyun.web.fc2.com/urawaza/ua02.html http://somethinweb.jp/test123/useragent.php また,UAは以下のサイトでも確認することができます. * 診断くん:http://www.t…
「ユーザーエージェントを調べる方法」をはてなブックマークに追加

iPhone用のアイコンなどを配布しているサイト

2011年01月27日 過去Blog
以下のサイトによくまとめられているので、参考に。 http://phpjavascriptroom.com/?t=mobile&p=iphoneandroidmockup#a_iphone_icon 高画質のiconがダウンロード出来るサイト http://www.iconspedia.com/ iconのサイズや設置方法について https://developer.apple.…
「iPhone用のアイコンなどを配布しているサイト」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy