타

즐겨찾기 소스 질문 좀 할께요

문서형식은 utf-8입니다.
<a href="javascript:bookmark();">즐겨찾기</a>

function bookmark(){ 
window.external.AddFavorite('사이트주소', '사이트제목') 
}
이런식으로 했는데요~

이런식으로 스크립트자체가 북마크되네요...


뭐가 문제인지 아시는분...?

|

댓글 3개

<script type="text/javascript">

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
}
</script>

위 스크립트 소스 상단에 추가

<a href="javascript:bookmarksite('<?=$config[cf_title]?>', 'site 주소')" class=quick-link>즐겨찾기 추가</a></a>

이런식으로 하셔 되는걸로 알고 있습니다.
감사합니다.
.
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

203,225건
+
제목 글쓴이 날짜 조회
10-03-20 조회 6,412
10-03-20 조회 1,894
10-03-20 조회 1,651
10-03-20 조회 1,848
10-03-20 조회 1,958
10-03-20 조회 1,789
10-03-20 조회 1,945
10-03-20 조회 1,983
10-03-20 조회 1,938
10-03-20 조회 1,935
10-03-20 조회 1,906
10-03-20 조회 1,991
10-03-20 조회 4,023
10-03-20 조회 2,901
10-03-20 조회 1,869
10-03-20 조회 1,826
10-03-20 조회 1,972
10-03-20 조회 1,554
10-03-20 조회 1,754
10-03-20 조회 1,887