jTwitter - 链接不可点击
我使用过 jTwitter ( Twitter 的 jQuery 插件)用于在我的网页上检索和显示推文。除了推文中的链接不可点击之外,一切正常。我尝试了不同的方法,但找不到解决方案。
这是源
newstick.js
$(document).ready(
function(){
$.jTwitter('user', 10, function(data){
$('#newsticker').empty();
$.each(data, function(i, post){
$('#newsticker').append(
' <li>'
// See output-demo.js file for details
+ post.text
+' </li>'
);
});
$("#newsticker").newsTicker();
parseSamples();
});
}
);
我也在使用 新闻行情 插件,以便我可以将推文显示为股票代码
<ul id="newsticker">
</ul>
推文的显示有点像这样,但链接不可点击
jQuery Beginner: Checking how many elements were selected by $('.selector') http://t.co/berI7bu
jYouTube - jQuery YouTube plugin. Gets any video’s image http://t.co/vTxSmD5
I have used jTwitter (jQuery plugin for Twitter) to retrieve and display tweets on my webpage. Everything is working except the links that are in tweets aren't clickable. I have tried different ways but I couldn't find a solution.
Here's the source
newstick.js
$(document).ready(
function(){
$.jTwitter('user', 10, function(data){
$('#newsticker').empty();
$.each(data, function(i, post){
$('#newsticker').append(
' <li>'
// See output-demo.js file for details
+ post.text
+' </li>'
);
});
$("#newsticker").newsTicker();
parseSamples();
});
}
);
I'm also using news ticker plugin so that I can display tweets as a ticker
<ul id="newsticker">
</ul>
Tweets are displaying somewhat like this but the links aren't clickable
jQuery Beginner: Checking how many elements were selected by $('.selector') http://t.co/berI7bu
jYouTube - jQuery YouTube plugin. Gets any video’s image http://t.co/vTxSmD5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一个使用正则表达式的解决方案
这个简单的函数会将不可点击的链接变成可点击的。在此处找到了这个
I found a solution that uses regex
This simple funcion will turn non-clickable links to clickable. Found this in here