묻고답하기

 

아래글에 글이 깨져서 소스 수정해서 다시 올립니다;

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

기존에 사용하던 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와 각 게시판 페이지)에서는 배너가 꼼짝도 않고 고정이 되어있어서요

아무리 봐도 뭐가 잘못된건지를 알아야 고치거나 할텐데 일반 php페이지에서는 잘 되니 너무 답답합니다ㅠㅠ

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 남기남
샤로우 한글은 도데체 어디에 짱박힌건가요? ㅎㅎ [2] 2012.01.31 by snows96
스포츠365 핸드폰으로 모바일 PC버젼으로 접속시 [1] 2012.01.31 by snows96
남자 데이터 이전 후 회원 [1] 2012.01.31 by snows96
오락실주인 네이버 신디케이션 질문요 ^^ [1] file 2012.01.31 by snows96
쿵푸팬더 레이아웃 상에 위젯 코드가 사라집니다. file  
IT맨 Content 위젯> 대상 모듈 > 사이트 찾기 윗젯 설치가 안됨  
데미안+ <ul> <li> 마우스오버 CSS 좀 알려주세요... [1] 2012.01.31 by 브레인630
개발해보쟈 룰셋 때문에 폼필터는 사라지나요? [4] 2012.01.30 by 클라우
루큐모닷컴 여러분 이소스르 [4] 2012.01.30 by snows96
코드야뭐니 확장변수 제발 답벼좀 부탁드립니다..  
bonafide 혹시 게시판 스킨 보신분 계신가요 ?^^ file  
슈퍼보드맨 레이아웃은 만들엇는데요,보드 나 다른 스킨은 안되네요. [2] 2012.01.30 by snows96
수호이 xe질문요  
횟횟집 d [1] 2012.01.30 by 라르게덴
준희^^+ 추천한 사람은 추천버튼 안보이게 하고싶은데요.  
천재경 게시판에서 글을 읽으면 밑에 이름이 뜨게 할 수 있나요?? file  
아나까떼 외부컨테이너에서 로그인가능하게 어떻게개조하죠?  
구름속의산책 초보자입니다...꼭 도움좀 부탁드립니다....ㅠㅠ [1] 2012.01.30 by 슈퍼보드맨
whitemind XE page를 한국어 page와 영어 page로 나누어서 만들고 싶은데요.. [1] 2012.01.30 by 감로수
쿨럭이 ㅠ,ㅠ 서버 80포트 막혀있는데 제발 답변좀 꼭부탁해여ㅠ,ㅠ [42] 2012.01.30 by 쿨럭이
madab 제발 좀 도와 주세요 [1] 2012.01.30 by snows96
송동우님 부탁드리겠습니다 .ㅠㅠ  
착한악마 레이아웃에서 배경 css 넣기~~ [1] 2012.01.30 by XEMANIA
madab 제발 좀 도와 주세요 [1] 2012.01.30 by snows96
whitemind 모바일 게시판 스킨중에 갤러리 형태 스킨이 있나요 ? [1] 2012.01.30 by 루네츠
불편한몸매 서버 이전 후에.. [2] 2012.01.30 by 불편한몸매
샤로우 XE 1.5.1.4쓰시는 분들께 여쭙니다. [1] 2012.01.30 by 백성찬
nosty 스킨 수정 좀 질문 드려요. 여백 주기 file  
조뎡이 데이터관리 관련해서 질문이요~!  
조학환 스팸 글 삭제가 안됩니다. file