728x90

// 트위터

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);

}

728x90

'프로그래밍 > asp' 카테고리의 다른 글

res://ieframe.dll/preview.js 오류 제거  (0) 2015.06.22
batch 파일 만들기  (0) 2015.04.24
ASP Session 관리  (0) 2012.10.27
asp 날짜 함수 정리  (0) 2012.10.23
ASP 정규 표현식 사용법  (0) 2012.10.04

+ Recent posts