Hello All,
First of all please excuse me for my poor/no knowledge of scripting.
I just want to put ShareThis Widget on my site. I know how insert code into a HTML page but I’m having difficulty creating External Java Script File for the same. Here is the code that I need to put to configure this widget:
In header:
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>
Between Body:
<script type="text/javascript">stLight.options({publisher: "ur-6ebd8bc1-82b-5620-20b7-d34984ef50a1"});</script>
<script>
var options={ "publisher": "YOUR PUBLISHER KEY", "position": "left", "ad": { "visible": false, "openDelay": 5, "closeDelay": 0}};
var st_hover_widget = new sharethis.widgets.hoverbuttons(options);
</script>
I want to create two Ext JS files one for header and another one for the body. What do I need to put in these two files without the script tag. Can anybody please help?