1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP] java script pin button

Discussion in 'General Programming Chat' started by cnyyk, Apr 30, 2013.

  1. cnyyk

    cnyyk Newbie

    Joined:
    Sep 15, 2012
    Messages:
    20
    Likes Received:
    0
    Hello
    I need code pin button on s e x. c0m
    I want to put it on my blog
    regards
     
  2. cnyyk

    cnyyk Newbie

    Joined:
    Sep 15, 2012
    Messages:
    20
    Likes Received:
    0
    anyone help?
     
  3. CoolAdvisor

    CoolAdvisor Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 24, 2008
    Messages:
    976
    Likes Received:
    360
    Code:
    <a href="javascript:var%20domain='.sex.com';var%20d=document.createElement('script');d.setAttribute('language','javascript');d.setAttribute('src','http://www.sex.com/javascript/bookmarklet.js?seed='+Math.random()*100000);document.body.appendChild(d);void(0);">Pin it</a>
    
     
  4. CoolAdvisor

    CoolAdvisor Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 24, 2008
    Messages:
    976
    Likes Received:
    360
    Code:
    <a onclick="var domain='.sex.com';var d=document.createElement('script');d.setAttribute('language','javascript');d.setAttribute('src','http://www.sex.com/javascript/bookmarklet.js?seed='+Math.random()*100000);document.body.appendChild(d);void(0);return true;" href="#">Pin it</a>
    
    I get this message when I click on it:
    "Your bookmarklet is installed! Now you can click your Pin Porn button to pin images as your browser porn sites around the web"
    So, something is wrong
     
    Last edited: May 1, 2013
  5. CoolAdvisor

    CoolAdvisor Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 24, 2008
    Messages:
    976
    Likes Received:
    360
    Code:
    <script type="text/javascript">
          var domain='.sex.com';
          </script>
          <a href="#" onclick="var d=document.createElement('script');d.setAttribute('language','javascript');d.setAttribute('src','http://www.sex.com/javascript/bookmarklet.js?seed='+Math.random()*100000);document.body.appendChild(d);void(0);return true;">Pin it</a>
    
    This version works, Installed it on my tumblr blog :cool:
     
    • Thanks Thanks x 1
  6. cnyyk

    cnyyk Newbie

    Joined:
    Sep 15, 2012
    Messages:
    20
    Likes Received:
    0
    Thank you!