홈페이지 접속시에 자동으로 즐겨찾기 가능할까요?

· 10년 전 · 1762 · 4

 

<html>

<head>

<SCRIPT>
<body style="background-color:#f5f5f5;" onload="bookFav();">
 if (!document.getElementById || !document.all) /* object detection to prevent errors */
 {alert("Please use your browser menu to bookmark us!");} /* alert for non-supporting browsers */
 else {
 var el = document.getElementById("bookmark");
 myURL = window.location.href; /* gets url of page to bookmark */
 myTitle = document.title; /* gets title of page */
 el.onClick = addFav(myURL,myTitle); /* this event is supposed to open the bookmark dialog */
 }
 }
 function addFav(aURL,aTitle){
 if (document.all) /* is this MSIE? */
 {window.external.AddFavorite(aURL,aTitle);} /* if yes then call bookmark dialog for MSIE */
 else if(window.sidebar) {window.sidebar.addPanel(aURL,aTitle,"");} /* else call bookmark dialog for NS&FF */
 return false;
 }
 </SCRIPT>
</head>
<body onload="bookFav();">​ 

</body>

</html>

 

 

------------

 

위소스 처럼하면은 확인이 뜨던데 확인누르면은 자동으로 즐겨찾기가 되게 할수 없을까요??

 

 

 

|

댓글 4개

ie6 쓰던 시절엔 되었는데, 지금은 안되요.
앗 ㅠㅠ
자동으로는 안 되지만 onload를 할 때 팝업창을 띄운 후에 즐겨찾기 기능 넣으시면 됩니다.
단, 즐겨찾기 해도 그 다음에도 또 팝업창이 뜨니까는 유의하시길 바랍니다.
감사합니다~
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

+
제목 글쓴이 날짜 조회
10년 전 조회 1,448
10년 전 조회 1,190
10년 전 조회 1,295
10년 전 조회 1,387
10년 전 조회 1,288
10년 전 조회 1,360
10년 전 조회 1,136
10년 전 조회 2,064
10년 전 조회 1,276
10년 전 조회 1,167
10년 전 조회 1,147
10년 전 조회 2,118
10년 전 조회 1,275
10년 전 조회 1,347
10년 전 조회 1,763
10년 전 조회 2,759
10년 전 조회 2,187
10년 전 조회 1,249
10년 전 조회 1,321
10년 전 조회 1,840
10년 전 조회 1,250
10년 전 조회 1,265
10년 전 조회 2,036
10년 전 조회 1,253
10년 전 조회 1,143
10년 전 조회 4,980
10년 전 조회 1,263
10년 전 조회 1,132
10년 전 조회 1,179
10년 전 조회 1,208