Advertisement
Guest User

SharePoint Tags

a guest
Oct 23rd, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.66 KB | None | 0 0
  1. <script type="text/ecmascript">
  2.     function AddCompanyQuickTag(itemurl, title) {
  3.         SafeRunFunction(function () {
  4.         var o = new SocialQuickTag("link1");
  5.         o.url = itemurl;
  6.         o.title = document.title;
  7.         o.tagged_text = title;
  8.         o.failure_text = 'Failed tagging this page.';
  9.         o.AddQuickTag(0);
  10.         }, 'SocialData.js', 'SocialQuickTag');
  11.     }
  12. </script>
  13.  
  14. <div>
  15.     <a id="link1" onclick="AddCompanyQuickTag('http://indevpc263/sites/TeamSite/SiteAssets/flash.aspx', 'Link 1')">
  16.         Link 1
  17.     </a>    &#160;&#160;
  18.     <a id="link2" onclick="AddCompanyQuickTag('http://indevpc263/sites/TeamSite/SiteAssets/social.aspx', 'Link 2')">
  19.         Link 2
  20.     </a>
  21. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement