따라다니는 배너를 사용중입니다.

따라다니는 배너를 사용중입니다.

QA

따라다니는 배너를 사용중입니다.

본문

 

http://sir.kr/g5_tip/2660?sfl=wr_subject%7C%7Cwr_content&stx=%EB%B0%B0%EB%84%88 

 

해당 게시물의 따라다니는 배너를 사용 중입니다.

 

근데,

 

이게 어떤 페이지를 가도 계속 따라다니게 되어있는데요..

 

메인페이지 에서만 따라다니고,

 

그외의 다른 화면에서는 이미지가 따라다니지 않고 고정되게 하고 싶습니다.

 

어떤 방법이 있을까요????  

 

(그누보드 순정 기준입니다)

이 질문에 댓글 쓰기 :

답변 1

 

css의

 

position을 absolute로 지정하고

 

div에서

 

<div <?php if (defined("_INDEX_")) {?>style="position:fixed !important;"<?php } ?>>

 

이렇게 지정하면 될거같습니다. 


<!--
ver1.0 150421 @_untitle_d
http://untitled.untitle311apyxry1w48.com/5yj67ft
-->

<?php

$tmpWidth = '170';
$tmpMarginBottom = '5';
$tmpBorder = '0';
$arrL = array(
	array('#', '/theme/basic1/img/left/center.gif', '상담전화', '_blank'),
	//array('#', '/theme/basic1/img/left/call.png', '상담전화', '_blank'),
	//array('#', '/theme/basic1/img/left/call.png', '상담전화', '_blank'),
	array('#', '/theme/basic1/img/left/account.png', '계좌정보' ,'_blank'),
);
$arrR = array(
	array('/bbs/board.php?bo_table=catalog', '/theme/basic1/img/right/cata.gif', '카달로그', '_self'),
	//array('#', '/theme/basic1/img/left/call.png', 'untitled' ,'_blank'),
	//array('#', '/theme/basic1/img/left/call.png', 'untitled', '_blank'),
	array('/bbs/board.php?bo_table=estimate', '/theme/basic1/img/right/right02.jpg', '견적문의', '_self')
);
?>

<script type="text/javascript" src=" <?php echo G5_THEME_JS_URL ?>/follower.js"></script>
<script type="text/javascript"> 
//<![CDATA[ 
$(document).ready(function() {
  $('#floatR').scrollFollower({
    pageAlign:'center',
    pageWidth:1000, //컨텐츠 블럭의 폭(필수값)
    type:'right',
    topMargin:160, //페이지 최상단과의 거리
    minTop:80,
    margin:5,
    speed:500,
    easing:'swing',
    zindex:10
  });
  $('#floatL').scrollFollower({
    pageAlign:'center',
    pageWidth:1000,
    type:'left',
    topMargin:160,
    minTop:-5,
    margin:5,
    speed:500,
    easing:'linear',
    zindex:10
  });
});
//]]> 
</script>

<div id="floatL">
<?php foreach($arrL as $v){ ?>
	<div style="margin-bottom:<?=$tmpMarginBottom?>px">
		<a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a>
	</div>
<? } ?>
</div>


<div id="floatR">
<?php foreach($arrR as $v){ ?>
	<div style="margin-bottom:<?=$tmpMarginBottom?>px">
		<a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a>
	</div>
<? } ?>
</div>



이 소스를 tail.php 에서 불러서 사용중입니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 77
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT