我如何将Tweet提要组合成一个,并使用Javascript按时间/日期排列它?
我如何将Tweet提要组合成一个,并使用Javascript按时间/日期排列它?或者你能给的任何选择。非常感谢。我如何将Tweet提要组合成一个,并使用Javascript按时间/日期排列它?,javascript,Javascript,我如何将Tweet提要组合成一个,并使用Javascript按时间/日期排列它?或者你能给的任何选择。非常感谢。 // 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('twe
// 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>
//我用这些代码获取推文:但我如何才能将这些推文组合成一条推文,并//将它们安排到最新日期??
gettwitter('tweet'{
id:'@user1',//例如,我们的是'wighthat'
计数:5,//要显示的推文数
enableLinks:true,//如果要显示链接
是的,
无知者回答:是的,
模板:'说:“%text%”
});
getTwitters('tweet2'{
id:'@user2',//例如,我们的是'wighthat'
计数:5,//要显示的推文数
enableLinks:true,//如果要显示链接
是的,
无知者回答:是的,
模板:'说:“%text%”
});
....
//这就是我如何在不同的网站上获得不同用户的推文
我想把另一个div和这两个tweet结合起来,有选择吗?
正在加载我的推文,请稍候
// 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>
我想用这两种tweet的组合制作另一个div,有选择吗?你能用你所做的任何事情设置一个jsfiddle吗
// 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>