简体   繁体   English

Twitter feed HTML

[英]Twitter feed HTML

I am trying to display the last 5 tweets in a div, that's about it. 我正在尝试在div中显示最后5条推文,仅此而已。 I will put a design around it to mimmick the Twitter widget you can get on the Twitter site. 我将围绕它进行设计,以模仿可以在Twitter站点上获得的Twitter小部件。

The problem is I am unsure of how to do this. 问题是我不确定如何执行此操作。 I went through some of the Twitter docs, searched here, found some tutorials. 我浏览了一些Twitter文档,在这里进行搜索,找到了一些教程。 None really seem to cover just this. 似乎没有人真的能涵盖这一点。

Can someone point me in the right direction or shed some light on what I need to do? 有人可以指出我正确的方向,还是可以阐明我需要做的事情?

Thanks 谢谢

This might provide you with the source code to get you started. 这可能会为您提供源代码以帮助您入门。 Its the jQuery Twitter Ticker plugin . 它是jQuery Twitter Ticker插件 Here's another link that is a bit more descriptive . 这是另一个更具描述性的链接

  1. Fetch the data 获取数据
  2. Generate DOM elements that match the structure you want, populating them with the data as you go 生成与所需结构相匹配的DOM元素,并在使用时随数据填充它们
  3. Insert into the DOM for the page 插入页面的DOM中
  4. Edit your CSS until you're happy with it 编辑CSS直到满意为止

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM