Button Hover Behavior

Overview

The widget opens on mouseover by default. However this can easily be disabled.

Attributes

Name Definition Default Requirement
st_title Adds a custom title for the share document.title Optional
st_url Adds a custom URL for the share document.location.href Optional
displayText Change the text that appears with the button ShareThis Optional

Options

Name Definition Default Requirement
publisher Your unique ShareThis publisher key null Required
onhover Opens widget when user hovers over button true Optional

 

Disable Hover

onhover: false

Example
<span class="st_sharethis_button" displayText="Share"></span>

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
    stLight
.options({
        publisher
: '12345',
        onhover
: false
   
});
</script>
Result: