0

Javascript を使用してツイート フィードを 1 つに結合し、時刻/日付で並べ替えるにはどうすればよいですか? またはあなたが与えることができる任意のオプション。ありがとうございました。

// i get the Tweets with these code: but how am i able to combine these tweets into one and // arrange them to date??
<script type="text/javascript" charset="utf-8">
    getTwitters('tweet', {
        id: '@user1', // for example, ours is 'wighthat'
        count: 5, // the number of tweets to display
        enableLinks: true, // if you wish to display links
        clearContents: true,
        ignoreReplies: true,
        template: '<img height="16" width="16" src="%user_profile_image_url%" /> <a href="http://twitter.com/%user_screen_name%">%user_name%</a> <b>said:</b>  <span class="status">"%text%"</span> <span class="time"><a href="http://twitter.com/%user_screen_name%/statuses/%id_str%">%time%</a></span>'      
    });

    getTwitters ('tweet2', {
        id: '@user2', // for example, ours is 'wighthat'
    count: 5, // the number of tweets to display
    enableLinks: true, // if you wish to display links
    clearContents: true,
    ignoreReplies: true,
    template: '<img height="16" width="16" src="%user_profile_image_url%" /> <a href="http://twitter.com/%user_screen_name%">%user_name%</a> <b>said:</b>  <span class="status">"%text%"</span> <span class="time"><a href="http://twitter.com/%user_screen_name%/statuses/%id_str%">%time%</a></span>'    
    });
 </script>
</head>
....
<body>
//these are how i get the tweets with different user in separate <div>
i wanted to put another div  with the combined Tweets of Both, any option?
 <table>
            <td>
    <div id="tweet" style="overflow: auto; height: 308px; width: 161px;">
    <p>Please wait while my Tweets load</p>
        <img src="../icons/ajax-loader.gif" />
    </div>
      </td>
            <td>
        <div id="tweet2" ...> </td>                
</body>

両方のツイートを組み合わせた別の div を配置したかったのですが、オプションはありますか?

4

0 に答える 0