출처 : http://blog.naver.com/aslung?Redirect=Log&logNo=70134701719
//트위터 연동
function goLinkTwitter(msg,url)
{
var sLink = "http://twitter.com/home?status="+encodeURIComponent(msg)+" "+ encodeURIComponent(url);
var a = window.open(sLink, 'twitter', '');
if( a )
{
a.focus();
}
return ;
}
//페이스북 연동
function goLinkFaceBook(msg,url)
{
var sLink = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(url) + "&t=" + encodeURIComponent(msg);
var a = window.open(sLink, 'facebook', '');
if(a)
{
a.focus();
}
return ;
}
//미투데이 연동
function goLinkMe2Day(msg,url)
{
var sLink = "http://me2day.net/posts/new?new_post[body] = "+ encodeURIComponent(url) + "&new_post[tags]" + encodeURIComponent(msg);
var a = window.open(sLink, 'me2Day', '');
if(a)
{
a.focus();
}
return ;
}
//요즘 다음 연동
function goLinkYozm(msg,url)
{
var sLink = "http://yozm.daum.net/api/popup/prePost?prefix=" + encodeURIComponent(msg) + "&link=" + encodeURIComponent(url);
var a = window.open(sLink, 'yozmSend', '');
if(a)
{
a.focus();
}
return ;
}
//사이월드 연동
function goLinkCyWorld(url,msg,thumbnail,summary)
{
var sLink = "http://csp.cyworld.com/bi/bi_recommend_pop.php?url=" + encodeURIComponent(url)+ "&title=" + encodeURIComponent(msg) + "&thumbnail=" + encodeURIComponent(thumbnail)+ "&summary=" + encodeURIComponent(summary);
var a = window.open(sLink, 'cyworldsend', '');
if(a)
{
a.focus();
}
return ;
}