묻고답하기

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

기존에 사용하던 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 남기남
zerozerozero 아이디 부분 내용 바꿀려면요 [1] file 2008.11.02 by 백성찬
Badboy 제로보드 XE 외부페이지 사용할때.. [1] 2008.11.02 by 백성찬
a? 썸네일 이미지... [1] 2008.11.02 by 백성찬
왕초보 최근글의 제목, 날짜 값 읽어서 출력하기 [1] 2008.11.02 by 백성찬
애니맥스 레이아웃 적용후 저장 문제.. [4] 2008.11.02 by 백성찬
한마유지로 관리에서 애드온프로그램 마지막꺼 눌렀더니.. [3] 2008.11.02 by 초보616
박귀붕 추천수가 일정수 이상인 그림을 다른 (추천게시판으로)게시판으로자동 이동?? [2] 2008.11.02 by 박귀붕
초보616 이글이 특정 스펠때문에 등록이 안되는대 이상하네요..? [8] 2008.11.02 by 초보616
홈피가이 꼭 알려주세요. 메인디자인... [1] file 2008.11.02 by 홈피가이
오리 게시판에 파일첨부 버튼이 클릭이 되지 않아요. [1] 2008.11.02 by 백성찬
팔뚜기 권한이없습니다. 팜업되게할려면어떻게하나요? file  
디셔니 제로보드 설치중 저장 시 초기화면으로 돌아옵니다 ㅠㅠ [2] 2008.11.02 by 디셔니
넨네 서버 이전 이후에 글이 마지막페이지부터 시작되는 현상 [5] file 2008.11.02 by 백성찬
오름 홈메인을 어캐 했는데...요걸 없애는 방법좀 [2] file 2008.11.02 by 오름
톨톨 블러그 url 질문 [2] 2008.11.02 by 톨톨
원숭이짱 ftp로 접속해서 폴더제거를하면 않되는부분이있습니다 [2] 2008.11.02 by 원숭이짱
H.K. 플러그인을 사용 설정 하다가 에러가 났습니다.  
박미정940 제로보드4 와 제로보드 xe 동시 설치하려고 합니다. [2] file 2008.11.03 by 박미정940
123123 초보입니다 도와주세요 [3] 2008.11.03 by H.K.
신기루418 로그인된 상태에서 다른아이피에서 동일아이디로 접속하는것을 차단하려면 어떻게 해야하는지요.  
김서방 제로보드xe버전에서 글자가 깨여질때 어떻게 해결,,,? [1] file 2008.11.03 by 초보616
도와저 [도와주세요!] 홈페이지는 만들었는데...기본설정으로 [1] 2008.11.03 by 느까끼
신비의불 레퍼러 통계 관련 질문입니다.  
윤선희 제로보드xe 최근글 사용하기 질문 [1] 2008.11.03 by 느까끼
원숭이짱 actworld.co.kr 주소로 치면 403에러가뜨고 [1] 2008.11.03 by 느까끼
deathcrush 글쓰기 화면을 바로 레이아웃에서 볼 수 있게 할 수 없나요  
김반장 메뉴 mid를 하나의 변수에 담고 싶은데요 p1,p2,p3 이렇게 나타나게 하는 방법이...  
부리더 애드온 설정후 홈페이지가 백지로 보이는 현상 [3] 2008.11.03 by 느까끼
와이군닷컴 페이지수정 부분에 이미지외 플래쉬적용시 수정버튼없어짐 [1] file 2008.11.03 by 네비™
박세홍659 잘 되던 홈페이지가 갑자기 로그인문제, 첨부파일