묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
스크립트는 반복 쓸수는 없을까요?
2012.02.06 01:56
아래의 스크립트는 하단 고정 레이어입니다.css를 이용해서 메뉴바 로그인등등 따로 잘라서 넣고싶고싶습니다, 그렇게할려면
아래의 스크립트를 반복적으로 써야하는대 방법을 알고싶습니다.
<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>
</head>
<body leftmargin=0 topmargin=0>
<div id="cot_tl_fixed">
</div>