i have made a game using html5 , now i want users to put their max scores on twitter via that tweet button , but i dont know how to put that variable max_score in my tweet code which is something like this
<a href="http://twitter.com/share" class="twitter-share-button" data-text="I played Flying hawks and i scored : " data-count="vertical" data-via="games_html5">Tweet</a>;
Try this in plain old Javascript:
(you have to fill that maxscore variable, I don’t know how you set it…)