【问题标题】:Vticker plugin and Twitter plugin (jTweetAnywhere) not working together.Vticker 插件和 Twitter 插件 (jTweetAnywhere) 不能一起工作。
【发布时间】:2013-06-05 22:26:24
【问题描述】:

我希望使用 Vticker 显示我的推特提要(一次显示一条推文,然后淡出,另一条出现在其位置)。我使用了网站 (http://www.jugbit.com/jquery-vticker-vertical-news-ticker/) 上的说明,它向您展示了如何将 Vticker 与另一个插件一起使用,但它不起作用。似乎我的 twitter 提要正在正确显示,但没有被 Vticker 使用。 Chrome 没有显示任何错误。有什么想法吗?

代码: JS:

<script>
$(document).ready(function() {
  $('.tweets').jTweetsAnywhere({
   username: 'twitternamehere',
   count: 5
   }).ajaxStop(function(){
  $('.tweets').vTicker({
   speed: 500,
   pause: 3000,
   showItems: 1,
   animation: 'fade',
   mousePause: false,
   height: 0,
   direction: 'up'
 });
 });    
 });    

谢谢!

【问题讨论】:

    标签: plugins twitter vticker


    【解决方案1】:

    http://richhollis.github.io/vticker/

    我使用 Rich Hollis 版本的 vTicker 来替换 Google 废弃的 Google 新闻“newsshow”功能,以便在博客和网站中嵌入自定义 Google 新闻:

    http://www.gooplusplus.com/news-frame-guide.html

    我的 javascript 知识相当基础,但我可以提示您可以尝试的一些事情。

    首先,richhollis jquery.vticker.min.js 对我不起作用,但他未压缩的 jquery.vticker.js 确实起作用。 (我通过 http://jscompress.com/ 制作了自己的 min.js 版本)

    其次,如果引用

    ,您的 $('.tweets').etc 可能需要是 $('#tweets').etc ??

    您可以在此处查看我的示例基于 vticker 的 HTML 源代码:

    http://www.gooplusplus.com/dark-nopic.html?snc&box#Science-News

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多