我想点击社交媒体按钮分享标题,图片和说明。但我的代码有一些错误。我不确定解决方案,请帮助我。
<div class="blog-post">
<ul>
<li>
<div class="wrapPost">
<div class="blog-img">
<img class="img-responsive" src="http://ecom.sofizar.com/media/catalog/product/cache/1/small_image/270x/9df78eab33525d08d6e5fb8d27136e95/r/o/rovigo3.jpg" alt="Lorem" >
</div>
<div class="bl-details">
<h4><a class="pro_URL" href="http://ecom.sofizar.com/rocker-wp-boots/">Spyke SP001 Rocker Motorcycle Boots (Rocker WP Boots)</a></h4>
</div>
</div>
<div class="socialMedia">
<a class="fbook" title="Facebook" href="//www.facebook.com/sharer/sharer.php?u=" onclick="fbShare=window.open(this.href+encodeURIComponent(window.location), 'fbShare', 'toolbar = no, status = no, width = 640, height = 400, scrollbars=no'); return false;"> </a>
<a class="twitter" title="Twitter" href="//twitter.com/home?status=" onclick="tweetShare=window.open(this.href+encodeURIComponent(window.location)+'&text='+encodeURIComponent(document.getElementsByTagName('title')[0].innerHTML)+'&url='+location.href+'&via=MaximoMoto','tweetShare','toolbar=no,status=no,width=600,height=400,scrollbars=no'); return false;" target="_blank"> </a>
<a class="googlePlus" title="googlePlus" href="//plus.google.com/share?url=" onclick="gplus=window.open(this.href+encodeURIComponent(window.location),'gplus','toolbar=no,status=no,width=600,height=300,scrollbars=no'); return false;" target="_blank"></a>
<a class="pinterest" title="Pinterest" href="//pinterest.com/pin/create/button/?url=&media=&description=" onclick="pinterest = window.open(this.href + encodeURIComponent(window.location), 'toolbar = no, status = no, width = 640, height = 400, scrollbars = no'); return false;" target="_blank"> </a>
</div>
</li>
</ul>
这是我的fiddle