Forum Moderators: open

Message Too Old, No Replies

Using AddThis and customizing JS file

addthis, javascript, customization

         

Waypointer

12:17 am on Dec 31, 2008 (gmt 0)

10+ Year Member



I am quite the newbie to customizing JS files.

I saw a previous post that indicated that the AddThis Javascript file could be customized using this process:

`````````````````````````
function addthis_click()
{
var aturl ='http://www.addthis.com/bookmark.php';
aturl+='?v=10';
aturl+='&pub='+'my_addthis_id';
aturl+='&url='+encodeURIComponent(location.href);
aturl+='&title='+encodeURIComponent(document.title);
window.open(aturl,'addthis','scrollbars=yes,menubar=no,width=620,height=620,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100');
return false;
}

And I can load the graphic from my own server.
`````````````````````````

But I am not sure what the complete code would be to do this. Can I simply imbed the Javascript command into my HTML or do I need to have a separate .js file residing on my server?

Many thanks for helping the ignorant here...

nealrodriguez

8:44 pm on Jan 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you may want to ask this question in the javascript and ajax forum: [webmasterworld.com...]

creative craig

9:27 pm on Jan 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AddThis has this covered in the help section of their site - I remember going through this myself.

Waypointer

11:42 pm on Jan 22, 2009 (gmt 0)

10+ Year Member



Of course they do! Ha, ha... I never think of going to the basic support place... I just thought they'd not want someone to mess with the recipe...

Thx ccraig... and nealrod