묻고답하기

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

기존에 사용하던 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 남기남
체셔씨 putty사용중 [1] 2008.11.05 by 백성찬
박성우167 뭐가 문젠지 조언부탁 합니다 [1] 2008.11.05 by 느까끼
김길수 "보기"를 눌렀는데 창이 나타나지 않습니다. [2] file 2008.11.05 by 김길수
아이노코 게시판에서 글쓰기 에러로 페이지(모듈이름 : crni) 인 초기화면이 다운되는 에러 원인? [1] 2008.11.05 by 백성찬
초보616 파일첨부에 대하여 맥 사용자는 어떻게 해결 하시나요.? [2] 2008.11.05 by 초보616
김호균281 제로보드4에서 데이타 이전시 첨부파일은 이전이 안되네요. [1] 2008.11.05 by 백성찬
테스트 1.0.6에서 글 정렬이 안되는군요. [3] 2008.11.05 by 테스트
똑디 첨부파일 마이그레이션 질문입니다. [4] 2008.11.05 by 김호균281
이용자 레이아웃과 게시판이 검은색일때.. [2] 2008.11.05 by 이용자
osc 화일첨부가 갑자기 안됩니다. [5] 2008.11.05 by park moo hee
휘영 레이아웃 삭제후 생성문제  
차차의늑대 인스톨 문제 file  
미냐둥 초보라서...알려주세용~~ [2] 2008.11.05 by 미냐둥
hOZooinfo 탭방식 최근글 사용시 게시판연결이 안되는문제 [4] file 2008.11.05 by hOZooinfo
kunner 멀티미디어 파일 본문 삽입 오류에 관한 질문입니다. [2] file 2008.11.05 by kunner
Happiness 경로변경 문의 [2] 2008.11.05 by Happiness
김병화999 게시물 저장시 58, 61, 68,71, 78, 81 이런식이 아닌 1,2,3,4로 증가하게끔은 어떻게 하나요? [1] 2020.03.14 by 김병화999
yuricube.idtail.com/ 회원가입 인증 메일이 오지 않습니다...  
기시맨 자체제작한 스킨의 layout.html 에서 브라우저 타입 판별 후 CSS 개별 적용 [2] 2008.11.05 by 기시맨
D페이스 시간변경에 관한 질문입니다. [2] 2008.11.05 by D페이스
zins 답변이 없으셔서 다시 질문드립니다. [5] 2008.11.05 by zins
나임 mjworks 레이아웃 쓰시는 분 로고요~ [1] 2008.11.05 by 느까끼
kiss "이미 존재하는 모듈 이름입니다." ? [3] 2008.11.05 by 느까끼
훈훈훈이 업데이트 [1] 2008.11.05 by 네비™
초보616 로그인후 글쓰기에서 파일첨부가 안되는 현상. [4] 2008.11.05 by 랜슬롯
김진철 r4734 에서 복수 그룹 지정이 안되는 문제 발생 [2] 2008.11.05 by 최강현빈
갈기머리 다국어 관련 - 페이지 모듈이나 게시판 모듈에서 php 코드 적용 가능한가요? [2] 2008.11.05 by 갈기머리
이호재 제로보드XE 1.0.6 애드온 오류(흰색백지가되어버림) [1] 2008.11.05 by 넨네
스프카 1차메뉴 color 변경하려면. [1] file 2008.11.05 by kunner
NauTe 고수님들께 레이아웃 제작에 관해서 여쭙니다. [2] file 2008.11.05 by NauTe