PHP & JavaScript Room :: 設置サンプル

実行結果

Tweet! | 設置サンプル

cocoismの最近のつぶやきを3件表示

"Galette"で検索した結果を5件表示

設置サンプルのソース

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta http-equiv="Content-Language" content="ja" />
      <meta http-equiv="Content-Script-Type" content="text/javascript" />
      <meta http-equiv="Content-Style-Type" content="text/css" />
      <meta http-equiv="imagetoolbar" content="no" />
      <title>Tweet! | 設置サンプル</title>
      <link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
      <!-- JS -->
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
      <script type="text/javascript" src="/content/lib/jquery/jquery.tweet.js"></script>
      <script type="text/javascript">
         $(function() {
            $(".tweet").tweet({
               join_text: "auto",
               username: "cocoism",
               avatar_size: 48,
               count: 3,
               auto_join_text_default: "we said,", 
               auto_join_text_ed: "we",
               auto_join_text_ing: "we were",
               auto_join_text_reply: "we replied",
               auto_join_text_url: "we were checking out",
               loading_text: "loading tweets..."
            });
            $(".query").tweet({
               avatar_size: 32,
               count: 5,
               query: "Galette",
               loading_text: "searching twitter..."
            });
         });
      </script>
      <!-- CSS -->
      <style type="text/css">
         body {
            background:#008D99;
            color:#fff;
         }
         a {
            color:#fff;
         }
         .tweet {
            color:#085258;
         }
            .tweet .tweet_list {
               -webkit-border-radius:.5em;
               list-style-type:none;
               margin:0; padding:0;
               background-color:#8adee2;
            }
            .tweet .tweet_list li {
               overflow:auto;
               padding:.5em;
            }
            .tweet .tweet_list li a {
               color:#0c717a;
            }
            .tweet .tweet_list .tweet_even {
               background-color:#91e5e7;
            }
            .tweet .tweet_list .tweet_avatar {
            padding-right:.5em;
               float:left;
            }
            .tweet .tweet_list .tweet_avatar img {
               vertical-align:middle;
            }
         .query {
            font-size:90%;
            color:#085258;
         }
            .query .tweet_list {
               -webkit-border-radius:.5em;
               list-style-type:none;
               margin:0; padding:0;
               background-color:#8adee2;
            }
            .query .tweet_list li {
               overflow:auto;
               padding:.5em;
            }
            .query .tweet_list li a {
               color:#0c717a;
            }
            .query .tweet_list .tweet_even {
               background-color:#91e5e7;
            }
            .query .tweet_list .tweet_avatar {
               padding-right:.5em;
               float:left;
            }
            .query .tweet_list .tweet_avatar img {
               vertical-align:middle;
            }
      </style>
   <link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
   <body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP &amp; JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
      <div id="wrap">
         <h1><a href='http://tweet.seaofclouds.com/'>Tweet!</a> | 設置サンプル</h1>
<!-- CODE -->
         <p><a href="http://twitter.com/cocoism">cocoism</a>の最近のつぶやきを3件表示</a></p>
         <div class='tweet'></div>

         <p>"<a href="http://search.twitter.com/search?q=Galette">Galette</a>"で検索した結果を5件表示</p>
         <div class='query'></div>
<!-- / CODE -->
      </div>
   </body>
</html>