如何解决jQuery-UI小部件/控件可进行Twitter UI的更新吗?
| 我需要找到一个jQuery-UI小部件/控件来进行类似Twitter UI的更新。我的意思是,当Twit出现时,它会取代列表中的操作者,从而将其他人向下推到浏览器用户界面中。有谁知道这样的小部件或失败的小部件,如何用Javascript完成? 谢谢解决方法
在jquery中很简单...
的HTML
<div id=\"tweets\">
<div>Tweet 1</div>
<div>Tweet 2</div>
</div>
javascript
$(function() {
//Get new tweet however
var newtweet = \"New Tweet\"
$(\"<div>\"+newtweet+\"</div>\").prependTo(\"#tweets\").hide().slideDown(200);
});
,确切的功能确实取决于您。没有任何理由使用任何类型的插件,因为它是进行基础设置的真正简单的javascript。
function addItem(title,text)
{
var pHTML = [\'<div class=\"container\">\',\'<div class=\"title\">\',title,\'</div><div class=\"description\">\',text,\'</div></div>\'].join(\'\');
// You\'d do any animates here.
// You could also drop the bottom item in the list here,if so desired.
$(\'#box-wrapper\').prepend(pHTML);
}
,如果您不想编写任何js,可以将以下建议添加到组合中:
http://thomasbillenstein.com/jTweetsAnywhere/demo/
http://tweet.seaofclouds.com/
祝好运!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。