¾È±Ô °øºÎ¹æ

Javascript & JQuery & CSS > example - Áñ°Üã±â(ºÏ¸¶Å©) ¿¹Á¦

µî·ÏÀÏ : 2019-07-25 12:30 Á¶È¸¼ö : 53,761

Áñ°Üã±â ¿¹Á¦ ÀÔ´Ï´Ù.

Å©·Òºê¶ó¿ìÁ® 󸮰¡ Æ÷ÇÔµÈ ¿¹Á¦ ÀÔ´Ï´Ù.
 

function bookmarksite(title,url) {
   // Internet Explorer
   if(document.all){
      window.external.AddFavorite(url, title);
   }

   // Google Chrome
   else if(window.chrome){
      alert("Ctrl+DÅ°¸¦ ´©¸£½Ã¸é Áñ°Üã±â¿¡ Ãß°¡ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
   }

   // Firefox
   else if (window.sidebar) // firefox
   {
      window.sidebar.addPanel(title, url, "");
   }

   // Opera
   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( window.external ) {
      window.external.AddFavorite(url, title);
    }
}

»ç¿ë ¿¹Á¦´Â

<a href="javascript:bookmarksite('::¾È±ÔÀÇ °øºÎ¹æ::','http://ankyu.entersoft.kr');">Áñ°Üã±â µî·ÏÇϱâ</a>
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.