// 트위터
function go_twitter() {
var str = document.title;
var enstr = encodeURIComponent(str);
var url = document.URL;
var tmphref = "http://twitter.com/share?url="+url+"&text="+encodeURIComponent(document.title);
window.open(tmphref);
}
// 페이스북
function go_facebook() {
var url = document.URL;
var strpath = "http://www.facebook.com/sharer.php?u="+url;
window.open(strpath);
//window.open(strpath, 'Facebook', 'width=680, height=524 ,scrollbars=no, resizable=no');
}
// 구글 북마크
function go_google(){
stats = "width=700, height=700, titlebar=0";
addhref = "http://www.google.com/bookmarks/mark?op=add&hl=ko&title="+encodeURIComponent(document.title)+
"&bkmk="+encodeURIComponent(window.location.href);
window.open(addhref, "newWin", stats);
}
// 미투데이
function go_me2day() {
var strTitle;
strTitle = document.title;
strTitle = strTitle.replace(/\"/g,'\\\"'); // " --> \" 로 대체
var enstr = encodeURIComponent(strTitle);
var naverAddr = "http://me2day.net/posts/new";
var strAddr = naverAddr + '?new_post[body]="' + enstr + '":'+
encodeURIComponent(document.URL);
window.open(strAddr);
}
// 요즘
function go_yozm() {
var strTitle = encodeURIComponent(document.title);
var yozmAddr = "http://yozm.daum.net/api/popup/prePost";
var strAddr = yozmAddr + '?prefix='+strTitle+'&link='+encodeURIComponent(document.URL);
window.open(strAddr);
}