<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


ピックアップ記事

objective-C 日時関連

2011年04月28日 過去Blog
http://d.hatena.ne.jp/KishikawaKatsumi/20081121/1227275688 http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns
「objective-C 日時関連」をはてなブックマークに追加

iPhoneのメールの受信エラー[ “i.softbank.jp” が応答しません]

2010年12月29日 過去Blog
twitterでも始めようかと思い、iPhoneから登録作業をしてたのですが、twitterに空メールを送った後に、以下のエラーが出てきて、送られてくるメールが受信出来ない状態になりました。 「imap.softbank.jp」が応答しません。メール設定で入力されているアカウント情報が正しい事を確認してください。 …
「iPhoneのメールの受信エラー[ “i.softbank.jp” が応答しません]」をはてなブックマークに追加

Ushahidi API の使用方法

2011年04月08日 過去Blog
http://wiki.ushahidi.com/doku.php?id=ushahidi_api(英語版) http://wiki.ushahidi.com/doku.php?id=ushahidi_api_jp (日本語版) web hosting reviews…
「Ushahidi API の使用方法」をはてなブックマークに追加

[UIColor] フォントの色を変えたい時

2010年12月13日 過去Blog
UIアイテムに表示させるフォントの色などの設定 self.TextLabel = [self newLabelWithPrimaryColor:[UIColor colorWithRed:0.0 green:0.5 blue:1.0 alpha:1.0] selectedColor:[UIColor whiteColor] fontSize:14.0 bold:YES]; 上記のようにす…
「[UIColor] フォントの色を変えたい時」をはてなブックマークに追加

preg_match

2010年03月24日 過去Blog
自分用メモ $html = ブログから抜き出したソース; preg_match("/抜き出すパターン/", $html); 最初は正規表現が間違っているのかと思い、いくつか正規表現のパターンを変えてテストしてみましたが、手ごたえなし(´;ω;`)ウッ… 正規表現以外の問題だと思い、さらに基本的なことを調べてみると・・・ 「検索対象の文字列が1行か、複数行か。」 ここが問題だったようです…
「preg_match」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy