SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: retweet script

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2003
    Location
    scarborough
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    retweet script

    I have been trying to find a script for retweeting. I have used this method

    <script language=JavaScript>

    document.write ('<a href="');
    document.write('http://twitter.com/home/?status=Chk Out-Add'+document.title.replace(/ /g,'+')+' To ='+document.URL+'&title='+document.title.replace(/ /g,'+')+'">');
    document.write ('<img border=0 src=twitter1.png></a>');
    </script>


    I really don't know how to do this though... I want a catch all script that detects the url and title...

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,183
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Blog/Portfolio | Evolution Xtreme | DFG Design | DFG Hosting | CSS-Tricks | Stack Overflow | Paul Irish
    Having lame problems with your code? Let us help by using a jsFiddle


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •