가운데 정열을 하니 메인메뉴글씨가 밀리는데 ...??? > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

가운데 정열을 하니 메인메뉴글씨가 밀리는데 ...???

페이지 정보

본문

가운데 정열을 위해
head.php
subhead.php
tail.php에서
아래처럼 테이블 정열을 align="center"로 바꾸고 보니
<table align="center" width="<?=$table_width?>" cellspacing="0" cellpadding="0">

1024x768에서는 이상이 없는데 그 이상의 해상도에서는 상단의 메인메뉴 배경과
메뉴글씨 및 서브메뉴글씨들이 왼쪽으로 밀리는 현상을 어떻게 조정할 수 있습니까?
추천0

댓글목록

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

head.php파일에서
175라인쯤
    <div style='
    width:645;
    position:absolute; top:100; left:100;  <--위치지정
    border: 0px solid silver;
    background-color:transparent;
    float:left;
    padding:0 0 0 0;
    z-index:50;
    '>
  <? include_once("$g4[path]/mainmenu/mainmenu.php");?>

profile_image

webpark님의 댓글

webpark쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

아이고 벙개같은 리엑션이 ==> !!!! ^^ ㄲㅂ 감사합니다 !!

profile_image

제로님의 댓글의 댓글

제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

^^&
1.3.4버전에서는 관리자설정에서 위치 조정이 가능하도록 만들었습니다..

profile_image

webpark님의 댓글

webpark쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

position:absolute; top:100; left:100;  <--위치지정
이 부분을 바꾸니 해상도에 따라 왔다갔다 하네요!
해상도와 관계없이 배경이미지 top.gif 와 메뉴글씨들이 함께 묶이는 방법은 없을까요?
예를 들자면 이미 제나빌더에도 적용 하셨지만
퀵메뉴에서 아래 두 분이 만들어 주신 것을 이용하면 어떨까요?

<SCRIPT language=javascript>
//리모콘 레이어
//이 자료는 유창화님과 네잎클로버님께서 만들어 주신 것으로
//저는 플래시 디자인 말고는 한게 아무것도 없습니다.
//사용함수
//사용함수
function ResetRemocon(){
 
  var DivMovingLayerYFrom, DivMovingLayerYTo, OffsetY, ResetTime;

  ResetTime = 100;

  if (DivMovingLayerRule == 'center'){
    //해상도 기준, 가운데 에서 x만큼 떨어진 곳에 위치

    if (navigator.userAgent.toLowerCase().indexOf("gecko") > -1) {

      if (document.body.clientWidth < ContentsWidth + 10) {

        DivMovingLayer.style.left = parseInt (ContentsWidth / 2, 10) + DivMovingLayerX + 10 + "px";
      }
      else {

        DivMovingLayer.style.left = (DivMovingLayerX + (document.body.clientWidth / 2)) + "px";
      }
    }
    else{

      if (document.body.clientWidth < ContentsWidth) {

        DivMovingLayer.style.left = parseInt (ContentsWidth / 2, 10) + DivMovingLayerX + "px";
      }
      else {

        DivMovingLayer.style.left = (DivMovingLayerX + (document.body.clientWidth / 2)) + "px";
      }
    }
  }
  else if (DivMovingLayerRule == 'left'){
    //해상도와 무관, 왼쪽 에서 x만큼 떨어진 곳에 위치

    DivMovingLayer.style.left = (DivMovingLayerX) + "px";
  }

  DivMovingLayerYFrom = parseInt (DivMovingLayer.style.top, 10);
  DivMovingLayerYTo = DivMovingLayerY + document.body.scrollTop + 1;

  if ( DivMovingLayerYFrom != DivMovingLayerYTo ) {

    OffsetY = Math.ceil( Math.abs( DivMovingLayerYTo - DivMovingLayerYFrom ) / 20 );

    if ( DivMovingLayerYTo < DivMovingLayerYFrom )
      OffsetY = -OffsetY;

    DivMovingLayer.style.top = (DivMovingLayerYFrom + OffsetY) + "px";

    ResetTime = 10;
  }

  setTimeout ("ResetRemocon()", ResetTime);
}

function SetRemocon() {

  DivMovingLayer.style.display = "block";

  DivMovingLayer.style.top = (DivMovingLayerY + document.body.scrollTop + 1) + "px";

  ResetRemocon();
  return true;
}

function NoneRemocon() {

  DivMovingLayer.style.display = "none";
  selectBoxVisible();
}

//레이어 디자인부분
document.write("<div id=DivMovingLayer style='position:absolute;left:0px;top:0px; z-index:8;display:none;'>");
////selectBoxVisible() --> 그누보드 자체 지원함수, 레이어와 셀렉트박스가 겹쳐서 숨겼던 셀렉트 박스를 다시보여줌
////selectBoxHidden(레이어이름) --> 그누보드 자체 지원함수, 레이어와 셀렉트박스가 겹치면 셀렉트 박스를 숨김

document.write("<table border=0 cellpadding=3 cellspacing=5>");
//아래에 보여줄 메뉴를 넣으세요.

document.write("<tr><td align='center'><embed width='72' height='216' src='/images/quick_03.swf' WMode='transparent'></embed></td></tr>");

document.write("<tr><td align='center'><a href='#g4_head'><img src='/images/top.gif' name='up' width='30' height='10' border='0'></a></td></tr>");

//document.write("<tr><td align='center'><a href='javascript:history.go(-1);' title='뒤로가기'>[뒤로가기]</a></td></tr>");

document.write("</table>");
document.write("</div>");



if (typeof document.body == "undefined")
  document.body = document.getElementsByTagName("BODY")[0];

var DivMovingLayer = document.getElementById("DivMovingLayer");

//환경설정
var ContentsWidth = 750;//움직이는 레이어를 제외한 콘텐츠 너비, 가운데 정렬에만 해당, 전체 테이블중 제일큰 테이블 너비
var DivMovingLayerX =390;//레이어가 위치할 레프트 값
var DivMovingLayerY = 250;//레어가 위치할 top 값
var DivMovingLayerRule = 'center';//center -->가운데 정렬을 기준으로 x만큼, left --> 레프트 정렬을 기준으로 x만큼

//레이어 보이기
//SetRemocon();
window.onload=SetRemocon;

</SCRIPT>

Total 1,640건 9 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
1440 사이몽쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12026 0 12-30
1439 나홀로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13172 0 12-31
1438 유후훌쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10288 0 12-31
1437 유후훌쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8767 0 12-31
1436 백작쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12124 0 01-01
1435 백작쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10534 0 01-01
1434 초돌이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10650 0 01-02
1433 유후훌쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16272 0 01-02
1432 유후훌쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12078 0 01-02
1431 힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 14401 0 01-02
1430 피스토스쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 36 0 01-02
1429 힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9930 0 01-02
1428 피스토스쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 36 0 01-02
1427 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11735 0 01-02
1426 Gmasta쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10992 0 01-03
1425 애플리쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9981 0 01-03
1424 검정하늘쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13182 1 01-03
1423 Gmasta쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9130 0 01-03
1422 초생달쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11055 0 01-03
1421 Gmasta쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12730 0 01-03
1420
utf-8 version 댓글3
기쁨의 아침쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10788 0 01-05
1419 사정사쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7378 0 01-09
1418 초돌이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9920 0 01-09
1417 FineTheWay쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 33 0 01-11
1416 Chaos쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6501 0 01-11

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
1,384
어제
7,473
최대
8,371
전체
1,672,177
Copyright (c) 株式会社YHPLUS. All rights reserved.