내 사이트의 사진 앨범을 표시하는 데 jquery.prettyPhoto을 사용하고 있습니다. social_tools
을 활성화하여 모든 사진 아래에 Twitter 위젯과 페이스 북 위젯을 표시했습니다.모든 사진의 prettyPhoto에서 facebook 좋아하는 금액이 동일
누군가가 사진을 좋아하면 다른 모든 사진이 비슷해 지므로 모든 사진에 234 개의 좋아하는 사진이 있습니다.
내 사진이 표시 될 때 location.href
이 변경되지 않으므로이 점은 무엇입니까? 내 앨범을 활성화
코드는 다음과 같습니다
$.fn.prettyPhoto({
slideShow: 3000,
social_tools: ''
+'<div class="pp_social">'
+'<div class="twitter">'
+'<a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a>'
+'<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>'
+'</div>'
+'<div class="facebook">'
+'<iframe src="http://www.facebook.com/plugins/like.php?locale=nl_NL&href='+location.href+'&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe>'
+'</div>'
+'</div>'
});
가 어떻게이 문제를 해결할 수
?미리 감사드립니다.
이미지 'src'의 이미지 'id'에 대한 자리 표시 자 (또는 이와 비슷한 것)가 있습니까? –