Friday, February 24, 2012

Like Button Facebook

Baru dapet/ nemu script like button facebook. Akhirnya dapet juga buat kerjaan. Klien tambah lama emang tambah minta yang aneh-aneh.


Nih scriptnya:

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>&layout=button_count&show_faces=false&width=80&action=like&font=verdana&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:22px" allowTransparency="true"></iframe>


Ato pake yang ini sama aja:


<SCRIPT LANGUAGE="JavaScript">
document.write("<iframe src="http://www.facebook.com/plugins/like.php?href="+document.URL+"&layout=button_count&show_faces=false&width=80&action=like&font=verdana&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:22px" allowTransparency="true"></iframe>");
</SCRIPT>



Sumber: http://utterlyboring.com/archives/2010/04/27/facebook_like_b.php

0 komentar:

Post a Comment

Thanks a lot for your attention...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Web Hosting