srakams.blogg.se

Twitter ticker for my website
Twitter ticker for my website








There Are Better Elements To Put On Your Website – A Twitter feed on your website is, quite frankly, a waste of space.I may, however, do business with you if I build a two-sided relationship with you on Twitter (or other social network), but that is not going to happen because I see a widget on your website, it’s going to happen because you are producing (and Tweeting) content that I find valuable. I’m not going to do business with you just because you have a Twitter feed on your website. To engage in Social Media, you have to be on Social Media. Twitter Conversations Belong On Twitter, Not On Your Website – Viewing 3 or 4 one-sided tweets in a website widget does nothing to tell me who you are, either as an individual or a brand.It’s fairly easy to do, but should you do it? My answer is no.

twitter ticker for my website

You have no doubt seen websites that have their Twitter feed embedded in their website, generally in the footer or sidebar. Twitter is a great place to connect, share information, and build relationships. MyBox.If you’ve been reading my blog, you know I am a fan of Twitter. Var ele = document.getElementById("thisone").innerHTML.length Var body = document.getElementsByTagName("body") Var span = document.createElement("span") The last instruction just tells the browser to reload when the animation finishes, which will restart the animation of course but also fetch new tweets.

TWITTER TICKER FOR MY WEBSITE CODE

Much of the code is borrowed from here, I’ve fiddled with it slightly to make it do something slightly different. I then use jQuery to add it to the CSS instruction in the head of the html. Because the CSS3 animation takes a number of seconds as a parameter for how long the animation should run for, and because we have no way of knowing how long the text will be in advance, the JavaScript looks at the text at runtime and then scales the number of seconds the animation runs for by the length of the text.

twitter ticker for my website

The JavaScript function ensures that the animation runs at a constant speed regardless of how long the text is. In the first chunk of HTML we pull in the jQuery library and include a JavaScript function. I’m afraid the usual health warnings apply, I have no special talents in HTML, CSS, JavaScript, or PHP, I am learning all three, so this code merely works- it is not necessarily the best way of doing it. This version will fetch the last 100 tweets to the #rstats hashtag, remove the retweeets, and then show up to 50 animated across the screen.Īll of the Twitter authentication PHP magic is stolen from here. I made a little Twitter ticker for work the other day, which will fetch posts with a particular hashtag and then animate them marquee style across the screen, I thought I may as well share it here. Dongsun on Passing strings as variables from a Shiny app into dplyr.chrisbeeley on Passing strings as variables from a Shiny app into dplyr.

twitter ticker for my website

  • chrisbeeley on Securing Shiny Server over SSL with Apache on Ubuntu.
  • Kemmler on Securing Shiny Server over SSL with Apache on Ubuntu.
  • The prevalence of code sharing (Goldacre)įollow me on Twitter My Tweets Recent Comments.
  • We need more than “black box” systems (Goldacre).







  • Twitter ticker for my website