Skip to content

Instantly share code, notes, and snippets.

@contacthrk
Created December 30, 2009 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save contacthrk/266001 to your computer and use it in GitHub Desktop.
Save contacthrk/266001 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=3cf67915-1a1e-45f1-ad62-0bfb8d1e3b99&amp;type=website&amp;buttonText="></script>
</head>
<body>
<a href="#" id="ck" />link</a>
<script type="text/javascript">
function myCustomCallback(SharedObject){
//alert(SharedObject.properties.title + "\n" + SharedObject.properties.url);
return true;
};
var shared_object = SHARETHIS.addEntry({
title:'ShareThis',
url:'http://sharethis.com'},
{button:false, onmouseover:false, onclick:myCustomCallback,
offsetTop:100, offsetLeft:200, autoclose:false}
);
// autoclose doesn't work as expected
shared_object.attachButton(document.getElementById("ck"));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment