javascript - How to check if user has pressed fb like url -
this code using in blogger
create button each post. when click button, lines js code running. example:
css:
<style type="text/css"> #panel,#flip { padding:5px; text-align:center; background-color:#e5eecc; border:solid 1px #c3c3c3; } #panel { padding:50px; display:none; } </style>
content in post:
$(document).ready(function(){ fb.event.subscribe('edge.create', function(href, widget) { $("#panel").slidedown("slow");//show slide } ); }); <div id="panel">hello world!</div>
when click button. "hello world" show. when refresh page, hidden. want check liked or not? when user press like, content show , if page refreshed, not hidden. possible?
Comments
Post a Comment