<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


ピックアップ記事

UITextView キーボード処理

2011年05月01日 過去Blog
http://d.hatena.ne.jp/keitanxkeitan/20110117/1295276262
「UITextView キーボード処理」をはてなブックマークに追加

zencart META内のauthor、generatorの設定

2010年06月29日 過去Blog
includes/templates/テンプレート名/common 内のhtml_header.phpを編集。 What is Darvocet?…
「zencart META内のauthor、generatorの設定」をはてなブックマークに追加

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

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…
「ユーザーエージェントを調べる方法」をはてなブックマークに追加

Linux ユーザー一覧の確認

2010年02月02日 過去Blog
[hogehoge@localhost ~]$ cat /etc/passwd http://kazmax.zpp.jp/lin/etc_passwd.html is garcinia cambogia safe to take…
「Linux ユーザー一覧の確認」をはてなブックマークに追加

tabBar + navigationBar + tableView

2011年01月19日 過去Blog
http://www.edumobile.org/iphone/iphone-programming-tutorials/tabbarcontroller-with-navigationcontroller-and-tableview-in-iphone/ http://iphone-app-developer.seesaa.net/article/130194298.html house cl…
「tabBar + navigationBar + tableView」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy