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

実行結果

設置サンプル

参照:Twitter Trackbacks Widget - A jQuery Plugin

「http://phpjavascriptroom.com/」を含む投稿、返信、RTをティッカー表示します。

トラックバック・バー

loading..

設置サンプルのソース

<!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>設置サンプル</title>
      <link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
      <script type="text/javascript" src="http://twitter-trackbacks-widget.googlecode.com/files/jquery.twittertrackbacks-1.0.min.js"></script>
      <style type="text/css">
         /* container */
         div.twitter-trackbacks{ }
         /* ul list */
         ul.ttw-inner{
            border:silver 1px solid;
            min-height:48px;
            height:auto!important;
            height:48px;
            padding:4px;
            overflow:hidden;
            margin:0;
            background:#fff;
            width:300px;
         }
         ul.ttw-inner li {
            float:left;
            margin:0;
            min-height:48px;
            height:auto!important;
            height:48px;
            list-style-type:none;
            position:relative;
         }
         /* author img */
         ul.ttw-inner span.ttw-author-img{
            display:block;
            width:48px;
            height:48px;
            margin:0 5px 0 0;
            overflow:hidden;
            left:0;
            position:absolute;
         }
         /* author name */
         ul.ttw-inner strong a{
            margin-right:5px;
         }
         /* tweet body */
         ul.ttw-inner span.ttw-body {
            display:block;
            margin-left:55px;
         }
         /* tweet content */
         ul.ttw-inner span.ttw-content{}
         /* tweet meta : date, reply, retweet line */
         ul.ttw-inner span.ttw-meta {
            color:#999999;
            display:block;
            font-size:0.764em;
            margin:3px 0 0;
         }
         ul.ttw-inner span.ttw-meta a{
            color:#999999;
            text-decoration:none;
         }
         ul.ttw-inner span.ttw-meta a:hover{
            text-decoration:underline;
         }
         /* customize reply link */
         ul.ttw-inner a.ttw-reply { }
         /* customize retweet link */
         ul.ttw-inner a.ttw-retweet { }
         /* customize links */
         ul.ttw-inner a.ttw-link { }
         /* customize @user links */
         ul.ttw-inner a.ttw-at { }
         /* customize #hashtags links */
         ul.ttw-inner a.ttw-hashtag { }
         /* li's will have class that reflects users influence levels from 0 to 10 */
         /* Customize tweets of users with influence levels from 0 to 10 */
         li.ttw-inf-0{}
         /* ...... */
         li.ttw-inf-10{}
         /* Customize users image with influence levels from 0 to 10 */
         li.ttw-inf-0 img{}
         /* ...... */
         li.ttw-inf-10 img{}
         /* Customize users name with influence levels from 0 to 10 */
         li.ttw-inf-0 strong{}
         /* ...... */
         li.ttw-inf-10 strong{}
      </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="wrapper">
      <h1>設置サンプル</h1>
      <p>参照:<a href='http://www.moretechtips.net/2009/11/twitter-trackbacks-widget-jquery-plugin.html'>Twitter Trackbacks Widget - A jQuery Plugin</a></p>
      <p>「http://phpjavascriptroom.com/」を含む投稿、返信、RTをティッカー表示します。</p>
<!-- CODE -->
      <h2>トラックバック・バー</h2>
      <div class="twitter-trackbacks" options="{
         url:'http://phpjavascriptroom.com/'
      }">loading..
      </div>
<!-- / CODE -->
     </div>
   </body>
</html>