<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


ピックアップ記事

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加

サーバの時刻調整

2010年03月05日 過去Blog
サーバの時刻設定 1. 時刻確認 date 2. 時刻設定 date -s "2006/02/20 19:03" linux上で、上記のコマンドを実行すれば、調整出来ます。 参照元:http://memorva.jp/memo/linux/date_ntp.php buy anabolics online…
「サーバの時刻調整」をはてなブックマークに追加

zencart フッター部のzencartサイトへのリンク、コピーライトの変更

2010年06月29日 過去Blog
includes/languages/japanese.php 内の「FOOTER_TEXT_BODY」を変更する。 その他、デフォルトで設定されている日本語の設定はこのファイル内の項目を修正する。 pure perfect green coffee contains 50% chlorogenic acid…
「zencart フッター部のzencartサイトへのリンク、コピーライトの変更」をはてなブックマークに追加

facebook 開発者登録出来ない

2011年05月25日 過去Blog
以下のエラーが出る時 この操作を実行するには、アカウントの認証を完了する必要があります。携帯電話またはcredit cardを追加してアカウント認証を行ってください。 「いいね」が5名以上もしくはfacebookアカウントを取得して10ヶ月以上経っている方でなければ 許可が出ないという制約があるようです。 いくら登録や認証をしても意味がないみたいです。 というか、制約にひっかかっているなら、…
「facebook 開発者登録出来ない」をはてなブックマークに追加

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 配列の要素を指定し、キーを取り出す」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy