사이트 내 전체검색
하단 위치 고정 배너
로빈아빠
https://cmd.kr/javascript/183 URL이 복사되었습니다.

본문

하단 위치 고정 배너

 

<script type="text/javascript">

if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
    cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
}else{
    cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
}

var cot_tl_bodyCSS='* html {background:url(빈 이미지 blank.gif) fixed;background-repeat: repeat;background-position: right bottom;}';
var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'z-index:1;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'width:100%;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'text-align:center;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'bottom:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'right:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 100% 100% 0);';
var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp;

document.write('<style type="text/css">'+cot_tl_bodyCSS+cot_tl_fixedCSS+'</style>');
 
</script>

<div id="cot_tl_fixed">
  이곳에 내용을 넣습니다.
</div>



CSS로 만들기

 #quickLink {

position:fixed;
_position:absolute;
z-index:1;
width:100%;
text-align:center;
bottom:20px;
right:20px;

}


 #quickLink {

position:fixed;
_position:relative;
z-index:1;
width:100%;
text-align:center;
bottom:20px;
right:20px;

}


댓글목록

등록된 댓글이 없습니다.

831 (14/17P)

Search

Copyright © Cmd 명령어 3.145.102.18