I want build a twitter ticker in a website. I have this code:

$(document).ready(function(){

 $('#twitter-ticker').fadeIn('slow');

 for(var i=0;i<tweetUsers.length;i++)
 {
  if(i!=0) buildString+='+OR+';
  buildString+='from:'+tweetUsers[i];
 }



 var fileref = document.createElement('script');

 fileref.setAttribute("type","text/javascript");
 fileref.setAttribute("src", "http://search.twitter.com/search.json?q="+buildString+"&callback=TweetTick&rpp=50");

 document.getElementsByTagName("head")[0].appendChild(fileref);

});

That is the first part of the javascript. In that script, javascript show the twitter ticker. But what is now my problem. I want a click event to this javascript.

On the website https://keighleyremoval.co.uk/ i have a twitter button. When i click on this twitter button. The twitter ticket must be show. But how can i make a click event to this javascript code? Thanks!

I’d recommend you use a List to add users, and embed it on your site using publish.twitter.com like this: Twitter Publish

For general code / development help stackoverflow.com is better

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.