아주 흔한 소스입니다.
보시고 소스가 짧다, 심플하다, 알아보기 쉽다, 라고 생각되시면 저로써는 성공입니다.
<script type="text/javascript" language="javascript">
//SNS 연동
function SNS_Send(val)
{
var snsTitle = encodeURIComponent("제목");
var snsURL = encodeURIComponent("주소URL");
if (val == 'tw')
{
window.open("http://twitter.com/home?status=" + snsTitle + ":" + snsURL);
}
if (val == 'face')
{
window.open("http://www.facebook.com/sharer/sharer.php?u=" + snsURL + "?t=" +snsTitle);
}
}
</script>
<map name="Map" id="Map">
<area shape="rect" coords="445,19,685,61" href="javascript:SNS_Send('tw');" onFocus="this.blur();" alt="트위터" /><area shape="rect" coords="95,19,364,61" href="javascript:SNS_Send('face');" onFocus="this.blur();" alt="페이스북" /></map>
보시고 소스가 짧다, 심플하다, 알아보기 쉽다, 라고 생각되시면 저로써는 성공입니다.
<script type="text/javascript" language="javascript">
//SNS 연동
function SNS_Send(val)
{
var snsTitle = encodeURIComponent("제목");
var snsURL = encodeURIComponent("주소URL");
if (val == 'tw')
{
window.open("http://twitter.com/home?status=" + snsTitle + ":" + snsURL);
}
if (val == 'face')
{
window.open("http://www.facebook.com/sharer/sharer.php?u=" + snsURL + "?t=" +snsTitle);
}
}
</script>
<map name="Map" id="Map">
<area shape="rect" coords="445,19,685,61" href="javascript:SNS_Send('tw');" onFocus="this.blur();" alt="트위터" /><area shape="rect" coords="95,19,364,61" href="javascript:SNS_Send('face');" onFocus="this.blur();" alt="페이스북" /></map>
게시글 목록
| 번호 | 제목 |
|---|---|
| 20014 | |
| 10421 |
jQuery
jQuery Quick Api Reference
5
|
| 10417 | |
| 20006 |
CSS
그라디언트 에디터
7
|
| 20003 | |
| 10410 | |
| 10407 | |
| 10392 | |
| 10389 | |
| 10380 |
Mobile
디바이스별 viewport 설정. (수정본)
8
|
| 10378 | |
| 17596 | |
| 10371 | |
| 19995 | |
| 10369 | |
| 10366 | |
| 10364 |
jQuery
[펌] jQuery select box
1
|
| 10363 |
기타
구글 확장프로그램 추천
|
| 10361 |
정규표현식
캡쳐 그룹과 비캡쳐 그룹
1
|
| 10357 |
웹서버
php 업로드 용량 늘리기
3
|
| 10352 | |
| 19990 | |
| 10349 | |
| 10343 |
Mobile
디바이스별 viewport 설정.
5
|
| 10340 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기