Senin, 17 Januari 2011

Share Button Viaima Like Share Button of Facebook

Tombol share/berbagi buatan http://viaima.com/ ini sekilas mirip tombol berbagi buatan facebook dalam pemakaiannya sob. Cuman kalo share dari viaima ini, gambar juga bisa ikut terbawa, bisa diedit juga :) Coba perhatikan video berikut yg berdurasi 30 detik ini

Ada dua cara penulisan syntax script untuk mengambil tombol berbagi ini.

<a href="javascript:void((function() {var lang = 'en'; var h = document.getElementsByTagName('head')[0];var s = document.createElement('script');s.type = 'text/javascript';s.src = 'http://viaima.com/js/tagger.js?x=' + (Math.random());h.appendChild(s);return false;})());"><img src="http://viaima.com/img/share_btn.png" alt="share viaima"></a>
Preview:
share viaima
<a href="javascript:void((function()
{
var url = 'http://flickr.com';
var imgs = 'http://l.yimg.com/g/images/home_photo_aussiegall.jpg, http://l.yimg.com/g/images/home_photo_pmorgan.jpg';
var title = 'Flickr';
var comment = 'I love flickr.com';
window.open('http://viaima.com/widget.php?url='+url+'&imgs='+imgs+'&title='+title+'&comment='+comment,'popup','height=355,width=550,status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ='+((screen.height/2)-(550/2))+',left ='+((screen.width/2)-(355/2)));
})());"><img src="http://viaima.com/img/share_btn.png" alt="share viaima"></a>
Preview:
share viaima

Artikel Terkait

 

WHO AM I

Beben Koben
Blogger Profile

RECENT COMMENTS

RECENT POST

Push2Check