Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-09-2012, 01:51 AM   PM User | #1
yoyoma12
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
yoyoma12 is an unknown quantity at this point
Question Autoscrolling and looping twitter widget help?

I want to create an autoscrolling and looping twitter widget. Something like on this site. http://www.careit.ca/

I've been trying to find out how to create a twitter widget like one in that site. The widget isn't live, but I noticed if you refresh a page any tweets will be added. I looked through the source code, but couldn't find any twitter api's called. Also they call in two twitter accounts not one.

I looked at the site's source code and I looked through all the js files, but I couldn't figure out how the tweets were being pulled. Can someone help me please?
yoyoma12 is offline   Reply With Quote
Old 08-09-2012, 11:35 AM   PM User | #2
Minisuit
New to the CF scene

 
Join Date: Aug 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Minisuit is an unknown quantity at this point
Try this Code :

PHP Code:
<script src="http://widgets.twimg.com/j/2/widget.js" type="text/javascript"></script>

<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6,
  width: 300,
  height: 300,
  theme: {
    shell: {
      background: 'transparent',
      color: '#000000'
    },
    tweets: {
      background: 'transparent',
      color: '#333',
      links: '#0099cc'
    }
  },
  features: {
    scrollbar: false,
    loop: true,
    live: false,
    hashtags: true,
    timestamp: false,
    avatars: true,
    fullscreen: false,
    behavior: 'all'

  }
}).render().setUser('Olympics').start();

</script> 


Best Regards,
Navin Patel

Last edited by VIPStephan; 08-09-2012 at 02:01 PM.. Reason: added code BB tags and removed fake signature
Minisuit is offline   Reply With Quote
Old 08-09-2012, 05:49 PM   PM User | #3
yoyoma12
New to the CF scene

 
Join Date: Aug 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
yoyoma12 is an unknown quantity at this point
I have that code, but I can't make it auto scroll and loop the last 5 tweets like in the website I linked above.
yoyoma12 is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript, twitter, twitter widget, widget

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:54 AM.


Advertisement
Log in to turn off these ads.