묻고답하기

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

기존에 사용하던 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 남기남
스포츠365 css 좀 문의드려요.. [1] file 2012.01.26 by H.F.Kais
whitemind 모바일 페이지에서 위젯이나 페이지에 직접 내용추가 했을 때 이미지 너비가 자동으로 조절되게하려면..  
B! 닉네임 변경 막기 [2] 2012.01.26 by 송동우
jtjoo2003 사설놀이터 [1] 2012.01.26 by KanTa
jtjoo2003 7포커족보 [1] 2012.01.26 by KanTa
jtjoo2003 식보게임 [1] 2012.01.26 by KanTa
오락실주인 회원가입폼 수정 질문 ^^ [3] file 2012.01.26 by KanTa
은성이꺼 XE를 제로보드4처럼 사용하고 있습니다. [1] file 2012.01.25 by 송동우
정지양990 xe data export tool ver 0.2로 게시판을 추출할 수 없습니다.  
때린데 또때려 파일첨부 위에 글씨를 넣을려믄 어떤 파일 어느부분을 수정해야 할까요? [1] file 2012.01.25 by 송동우
오락실주인 회원가입시 추천인 포인트 지급하려는데 .......  
때린데 또때려 레이아웃 맨밑에 링크 추가할려면 어떤 파일을 수정해야 하나요? [1] 2012.01.25 by 송동우
삐짐이 html 권한  
스파기 xe코어 1.5.1.3 업하면서 phpmailer? 에러라면서 안됩니다. [1] 2012.01.25 by 백성찬
루큐모닷컴 게시판DX 말머리 추가  
JHN 해외서버로 이전이후 메뉴 수정이 안되요.. [1] 2012.01.25
natetan body에 onload 추가하는 방법은/  
카니엘 mysql select시 반복(중복)되서... [1] 2012.01.25 by 카니엘
당근11 TypeError: 's'은(는) null 이거나 개체가 아닙니다 라는 메시지와 함께 로그인 [2] 2012.01.25 by 천마리
nobleman 제로보드 첨부파일이 안됩니다 [2] 2012.01.25 by 우병규971
이경동747 레이아웃 추가 질문 ㅠㅠ (초보) [1] file 2012.01.25 by 송동우
왈라비 XE 설치시 Access Denied 에러 [2] 2012.01.25 by 송동우
sunmin 스크립트관련 질문 다시 올립니다; [1] 2012.01.25 by KanTa
때린데 또때려 레이아웃에서 페이지 수정시 만들어 놓은 위젯설정값이 초기화 ? [1] 2012.01.25
apollos 탭형식의 최신글에서 ....이런 공간이 생기는 이유는 무엇일까요 >?? [3] file 2012.01.25 by 송동우
whitemind 모바일 게시판 스킨 중에 갤러리형태로 볼 수 있는 스킨은 없나요?  
느림에의미 게시판 하단 형태를 이렇게 바꾸고 싶습니다. file  
구름나무바위 게시판 제목을 이미지로 출력하게 하는 방법 없을까요? [1] 2012.01.25 by KanTa
sunmin 게시판페이지에서만 스크립트 적용이 안됩니다ㅠㅠ  
에어라인 procBoardInsertDocument function 에서의 query 실행 부분 관련