I've been working on this code to implement a clickable "Share" button for ShareThis, e.g. instead of code that will pop-up the ShareThis window when the user hovers over the button. The key to make it work is the onmouseover:false setting:
<script language="javascript" type="text/javascript">
var object = SHARETHIS.addEntry({
title: "<?php the_title(); ?>",
url: "<?php the_permalink(); ?>"},
{button:false,onmouseover:false});
document.write('<span id="<?php the_title(); ?>"><a href="javascript:void(0);">Share</a></span>');
var element = document.getElementById("<?php the_title(); ?>");
object.attachButton(element);
</script>
The problem is that the onmouseover:false setting causes the close button (X) to stop working in the popup window (the various ShareThis controls all work). Is there any kind of workaround to get that functionality working again?