Pergunta

I'm looking for a javascript/css snippet which generates a share-this button, and takes an argument as the URL to share. Is there one available?

I'd rather use something I can host myself, but it's not a strong preference, as long as I can pass in an argument with the URL to be shared.

Foi útil?

Solução

There a bunch of options. Here's a few to get you started:

Hope this helps.

Outras dicas

http://jsfiddle.net/ lets you put up a complete html + css + javascript and play with them.

Where do you want to share it? Different websites have different APIs that you can use to access and post content. If you're specifically targeting a single site, you may just want to dig through their documentation and see what you can find.

If you're looking to share on multiple websites, then AddThis is simple and good. It also has a nice API if you wanna have more control.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top