튜닝의 끝은 순정이지만, 그래도 튜닝이 조금 필요한 티스토리.
티스토리 압축
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
티스토리 다음모바일 광고 없애기
<style>#daumAd{width:0; height:0px; display:none !important;}</style>
티스토리 단축설정
<script type="text/javascript">
<!--
var key = new Array();
/*********** 단축키 정의 **************/
key['n'] = "/owner/entry/post";
key['i'] = "/login";
key['b'] = "/466";
key['h'] = "/";
key['l'] = "/location";
key['t'] = "/tag";
key['m'] = "/media";
key['g'] = "/guestbook";
key['a'] = "/owner/center/dashboard";
key['w'] = "/admin/entry/post/";function getKey(keyStroke) {
if ((event.srcElement.tagName != 'INPUT') && (event.srcElement.tagName != 'TEXTAREA')){
isNetscape=(document.layers);
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key)
if (which == i) window.location = key[i];
}
}
document.onkeypress = getKey;
//-->
</script>
구글맞춤광고 DIV출력
<!-- Google CSE -->
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
var customSearchControl = null;
function executeQuery() {
var textNode = document.getElementById(' 자신의 ID ');
if (textNode.value == '') {
customSearchControl.clearAllResults();
document.getElementById('cse').style.display = "none";
} else {
customSearchControl.execute(textNode.value);
document.getElementById('cse').style.display = "block";
}
}
google.load('search', '1', {language : 'ko'});
google.setOnLoadCallback(function() {
customSearchControl = new google.search.CustomSearchControl(' 구글 맞춤 ID ');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchResultsOnly();
customSearchControl.draw('cse', options);
}, true);
</script>
<!-- 맞춤 검색 결과가 표시 될 부분 (CSE) -->
<div id="cse" style="width:100%; display:none;"></div>
<!-- Google CSE 검색창 -->
<input id="searchText" class="SearchBoxInput" type="text" name="" value="" onfocus="this.name=''" onkeypress="if (event.keyCode == 13) { executeQuery() }"/>
<!-- Google CSE 검색창 부분 끝 -->
'Technologic > WebSite' 카테고리의 다른 글
| 애드센스 - 2차도메인으로 좋아진 것! (0) | 2012/02/12 |
|---|---|
| FancyBox Test (0) | 2012/01/25 |
| 페이스 북 위젯 달기 - 블로그 플러그인 (0) | 2012/01/20 |
| 티스토리(tistory) 접속자 폭주로 그리고 구글애드센스 비활성화 (0) | 2012/01/19 |
| 인터넷 웹서버 웹사이트 로딩속도체크 (0) | 2012/01/19 |
| 티스토리 튜닝 (0) | 2012/01/19 |
| 티스토리 실시간 접속현황보기 (0) | 2012/01/18 |
| 세계적으로 유명한 블로거들!! (0) | 2012/01/16 |
| [블로그 광고 달기] 네이버 블로그에 광고 달기 (0) | 2012/01/15 |
| "Snoopy" Class, 소켓 클래스 (0) | 2012/01/15 |
| 토마트의 구글맞춤검색 (0) | 2011/12/30 |