Question:
How can I make a share button for linkedin? I made it from facebook, google, twitter and whatsapp but from linkedin I'm not succeeding. For example, look at this one on facebook:
<script type="text/javascript">
var win = null;
function novaJanela(pagina, nome, w, h, scroll) {
LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
win = window.open(pagina, nome, settings);
}
</script>
<div class="social-ctn fb">
<a href="#" onclick="NovaJanela('http://www.facebook.com/sharer/sharer.php?u=http://www.cissamagazine.com.br/blog/xperia-c5-ultra-m5-reis-da-fotografia', '', '550', '470', 'yes');return false">
<div class="icon"></div>
<span class="text facebook">Facebook</span>
</a>
</div>
Answer:
<div class="social-ctn linkedin-new">
<a href="#" onclick="novaJanela('http://www.linkedin.com/shareArticle?mini=true&url=http://local.cissamagazine.com.br/mais-vendidos&title=Os 20 Smartphones mais vendidos&summary=Os 20 Smartphones mais vendidos', '', '550', '510', 'yes'); return false">
<span class="icon"></span>
<span class="text linkedin">Linkedin</span>
</a>