2011년 11월 29일 화요일

linux 관련

CentOS release 5.5 (Final)

설치 방법
http://blog.daum.net/kimuks/7531860

mysql 설치법
http://blog.naver.com/PostView.nhn?blogId=seban21&logNo=70105302948

2011년 11월 27일 일요일

html css 관련 링크

 css div 래이아웃 샘플
http://coding.smashingmagazine.com/2007/01/12/free-css-layouts-and-templates/

2011년 11월 22일 화요일

google analytics 외부 클릭 집계 모듈 설치

소스

        if("2".equals(TYPE)) {
                result = "<a href=\""+ LINK_SRC + "\" target=\"_blank\" onClick=\"recordOutboundLink(this, '" + ID + "','" + NAME + "'" + ");return false;\">" + TEXT + "</a>";
            // banner
            } else {
                result = "<a href=\""+ LINK_SRC + "\" target=\"_blank\" onClick=\"recordOutboundLink(this, '" + ID + "','" + NAME + "'" + ");return false;\"><img src=\"" + IMG_SRC + "\"></a>";
            }


여기에서 ID 와 네임은( 카테고리, 엑션 ) 추후에 google analytics 에서 보기 쉽게하기위해 설정



구글 설치(해더 이거나 아니거나 상간업음)
 <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26953161-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

function recordOutboundLink(link, category, action) {
  try {
    var myTracker=_gat._getTrackerByName();
    _gaq.push(['_trackEvent', category , action]);
    if (link.target == '_blank') {
        window.open(link.href);
    } else {
        setTimeout('document.location = "' + link.href + '"', 100)
    }
  }catch(err){}
}
</script>


http://www.google.com/support/googleanalytics/bin/answer.py?answer=55527&hl=ko