묻고답하기

스크롤 따라다니는 배너(일명 퀵메뉴라고 하죠?)를 만드려고

기존에 사용하던 common.js파일에

(xe폴더에 있던 것이 아니라 홈페이지 전반 링크스크립트를 위해 사용하던 파일입니다. 전 페이지에 링크걸려있어요)

 self.onError=null;
 currentX = currentY = 0;
 whichIt = null;
 lastScrollX = 0; lastScrollY = 0;
 action = window.setInterval('heartBeat()',1);
 
 function heartBeat() {
  diffY = document.body.scrollTop;
  diffX = 0;
  if (diffY != lastScrollY) {
  percent = .2 * (diffY - lastScrollY);
  if (percent > 0) {
    percent = Math.ceil(percent);
  } else {
    percent = Math.floor(percent);
  }
  document.all.layer_right.style.pixelTop += percent;
  lastScrollY = lastScrollY + percent;
  }
  if (diffX != lastScrollX) {
  percent = .2 * (diffX - lastScrollX);
  if (percent > 0) {
    percent = Math.ceil(percent);
  } else {
    percent = Math.floor(percent);
  }
  document.all.layer_right.style.pixelLeft += percent;
  lastScrollY = lastScrollY + percent;
  }

 

를 입력하고 각 페이지 body사이에

<div id="layer_right" style='width:90px; height:380px; position:absolute; z-index:1; top: 89px; left:expression(document.body.clientWidth/2+490);'>
  <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="90" height="134"><a href="http://www.kcomia.or.kr/xe/23866#0"><img src="http://www.kcomia.or.kr/img/rightbanner_001.png" border="0"></a></td>
      </tr>
      <tr>
        <td width="90" height="6"></td>
      </tr>
      <tr>
        <td width="90" height="117"><a href="http://www.kcomia.or.kr/sub_05_01_001.php"><img src="http://www.kcomia.or.kr/img/rightbanner_002.png" border="0"></a></td>
      </tr>
      <tr>
        <td width="90" height="6"></td>
      </tr>
      <tr>
        <td width="90" height="117"><a href="http://cafe.naver.com/kcomia2010" target="_blank"><img src="http://www.kcomia.or.kr/img/rightbanner_003.png" border="0"></a></td>
      </tr>
  </table>
</div>

 

를 넣었습니다. 그런데 문제는 일반 php파일로 만든 페이지에서는 이게 잘 따라다니는데

xe레이아웃으로 만든 페이지(index페이지와 각 게시판페이지)에서는 스크립트가 안먹고

위에 고정된 채 움직이질 않는다는거죠..ㅠㅠ

common.js에 기존에 들어있던 링크 스크립트는 잘 작동이 되는데 도대체 뭐가 문제인지 아무리 머리 싸매어봐도 알수가 없습니다ㅠㅠ

도와주세요ㅠㅠ

 

 

--------------------------------------------------------------------------------------------------------------------------------------------

아래는 게시판 페이지의 상단내용 소스입니다. 이 부분에 잘못된게 있어서일까 싶어서 같이 첨부합니다.ㅠㅠ

<html>
 <head>
  <title> 대한마리나산업진흥회 </title>
  <script language="javascript" src="http://www.kcomia.or.kr/js/common.js"></script>
 </head>
<!--백그라운드 수정-->
 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="
http://www.kcomia.or.kr/img/top_bg.png">
  <table width="100%" height="100%"  valign="top" align="center" cellpadding="0" cellspacing="0" border="0">
  <tr>
 <td>
 
 <table width="100%" height="100%"  valign="top" align="center" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td height="90" ><font color="#01567f">.</font></td>
 </tr>
 <tr>
  <td><font color="white">.</font></td>
 </tr>
 </table>
 
 </td>
 <td width="965" background="http://www.kcomia.or.kr/img/index_bg.png">
 
   <table width="965" height="355" valign="top" align="center" cellpadding="0" cellspacing="0" border="0">
  <tr>
   <td height="355" valign="top"><embed src="http://www.kcomia.or.kr/sub.swf" quality="high" width="965" height="355" bgcolor="#FFFFFF" name="player" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="

http://www.macromedia.com/go/getflashplayer"></embed><br><br></td>
  </tr>
  <tr>
   <td>
   <!--contents-->
   
   <table width="965" height="355" valign="top" align="center" cellpadding="0" cellspacing="0" border="0">
   <tr>
    <td width="20"></td>
    <td width="216" valign="top"><!--2차목록가져오기--> 
    
    <table width="216" cellpadding="0" cellspacing="0" border="0" valign="top" align="left">
<tr>
 <td height="40">
 <img src="
http://www.kcomia.or.kr/img/sub/sub_nv_05_01.png">
 </td>
</tr>
<tr>
 <td height="25">
 <a href="http://www.kcomia.or.kr/sub_05_01_001.php">
 <img src="http://www.kcomia.or.kr/img/sub/sub_nv_05_02.png" onmouseover="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_02_02.png'" onmouseout="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_02.png'" border="0">
 </a>
 </td>
</tr>
<tr>
 <td height="25">
 <a href="http://www.kcomia.or.kr/xe/notice">
 <img src="http://www.kcomia.or.kr/img/sub/sub_nv_05_03.png" onmouseover="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_03_02.png'" onmouseout="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_03.png'" border="0">
 </a>
 </td>
</tr>
<tr>
 <td height="25">
 <a href="http://www.kcomia.or.kr/xe/column">
 <img src="http://www.kcomia.or.kr/img/sub/sub_nv_05_05.png" onmouseover="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_05_02.png'" onmouseout="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_05.png'" border="0">
 </a>
 </td>
</tr>
<tr>
 <td height="25">
 <a href="http://www.kcomia.or.kr/xe/gallery">
 <img src="http://www.kcomia.or.kr/img/sub/sub_nv_05_04.png" onmouseover="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_04_02.png'" onmouseout="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_04.png'" border="0">
 </a>
 </td>
</tr>
<tr>
 <td height="25">
 <a href="http://www.kcomia.or.kr/xe/free">
 <img src="http://www.kcomia.or.kr/img/sub/sub_nv_05_06.png" onmouseover="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_06_02.png'" onmouseout="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_06.png'" border="0">
 </a>
 </td>
</tr>
<tr>
 <td height="25">
 <a href="http://www.kcomia.or.kr/xe/qna">
 <img src="http://www.kcomia.or.kr/img/sub/sub_nv_05_07.png" onmouseover="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_07_02.png'" onmouseout="this.src='http://www.kcomia.or.kr/img/sub/sub_nv_05_07.png'" border="0">
 </a>
 </td>
</tr>
</table>    
    
    </td>
    <td width="33"></td>
    <td width="636">
    
    <table width="636" height="100%" valign="top" align="center" cellpadding="0" cellspacing="0" border="0">
    <tr>
     <td height="53" background="http://www.kcomia.or.kr/img/sub/sub_tt_05_09.png"></td>
    </tr>
    <tr>
     <td height="23"></td>
    </tr>
    <tr>
     <td height="17" background="
http://www.kcomia.or.kr/img/sub/sub_tt_05_10.png"></td>
    </tr>
    <tr>
     <td height="100%" valign="top"><br><br>
<!--스크롤 우측배너-->
<div id="layer_right" style='width:90px; height:380px; position:absolute; z-index:1; top: 89px; left:expression(document.body.clientWidth/2+490);'>
  <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="90" height="134"><a href="
http://www.kcomia.or.kr/xe/23866#0"><img src="http://www.kcomia.or.kr/img/rightbanner_001.png" border="0"></a></td>
      </tr>
      <tr>
        <td width="90" height="6"></td>
      </tr>
      <tr>
        <td width="90" height="117"><a href="http://www.kcomia.or.kr/sub_05_01_001.php"><img src="http://www.kcomia.or.kr/img/rightbanner_002.png" border="0"></a></td>
      </tr>
      <tr>
        <td width="90" height="6"></td>
      </tr>
      <tr>
        <td width="90" height="117"><a href="http://cafe.naver.com/kcomia2010" target="_blank"><img src="http://www.kcomia.or.kr/img/rightbanner_003.png" border="0"></a></td>
      </tr>
  </table>
</div>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Konghee 위키 어떻게 사용하나요  
redviolet212 링크걸리는게 이상해서 그런데 꼭좀 부탁드려요.. [2] 2012.02.01 by 때린데 또때려
lisleader [질문] xe_menu_item 이상 데이타 생성으로 인한 서버 부하 폭증, 다운, 장애  
슈퍼보드맨 페이지추가후,자바스크립트 노출.  
kei309 가입한 회원 수정 불가  
whitemind XE관련은 아니지만 한글이 깨져서 나옵니다. [1] 2012.02.01 by 송동우
럭셜진 확장변수 다중선택 때문에 그러는데요... [1] 2012.02.01 by 송동우
IU 사이트맵질문 [1] file 2012.02.01 by 황비
운명같은사람 게시판 관리모드에서 스킨정보를 누르니까 [한번만 도와주세요] [5] 2012.02.01 by 황비
WSJ 첨부파일 박스 크기 [1] file 2012.02.01 by 송동우
M3 분류 관리에서 분류 항목 삭제가 안됩니다 [3] file 2012.02.01 by 송동우
leebackup 이런건 어떻게 만드는 거에여? [1] file 2012.02.01 by 도라미
leebackup 게시판 댓글쪽에 닉네임이 길어서 계단현상이 일어나네요 [1] 2012.02.01 by 송동우
ddddggfrfv 게시판 스킨 수정 중에 [2] 2012.02.01 by 송동우
곰은어흥 몇가지 질문이 있습니다. [1] 2012.02.01 by 송동우
bonafide ko.lang 파일에 출력문구를 수정하면 에러가 납니다. [1] 2012.02.01 by 송동우
ezisis 로그인시 메뉴가 사라지는 문제. [1] 2012.02.01 by 송동우
iMint 댓글에 넥네임 대신 이름이 표시되도록 하려면 어디를 수정해야하나요??? [1] 2012.02.01 by 황비
명불허전 레이아웃 수정 문제 질문합니다. [1] 2012.01.31 by 황비
마법의가을 카페 XE관련 질문 드립니다.  
재문아빠 게시판의 module_srl을 알고 싶은데요. [1] file 2012.01.31 by 황비
리남철 새로고침하면 창이 닫힙니다. [1] 2012.01.31 by 황비
자유신 황비님 강의글 본 후 어떤것들을 추가로 배우면 좋을까요// [1] 2012.01.31 by 황비
손주사랑 윈도우7에는 F 드라이브가없나요? [1] file 2012.01.31 by 황비
acsl 문제 3가지가 있습니다.ㅠ(파일첨부,게시판관리, 위젯사이트연결) [1] 2012.01.31 by 황비
오골계 설치후 첫 로그인에서 이메일 주소 자체가 없답니다. ;;;;[사진첨부] [2] file 2012.01.31 by 황비
낑깡호두 메인페이지 xe없애는 법 [1] file 2012.01.31 by 황비
redviolet212 헤더부분을 수정할려면 어디서..?  
mskiller XE 설치에서 "DB 선택" 화면에서 mssql 선택이 안되요 [1] 2012.01.31 by mskiller
달빛영혼 메타태그로 도메인접속시 바로 -> XE 접속되게 했을경우..