메인 전체 배경넣기 .. 한시간째 시름중 ㅠㅠ도와주세요 ㅠㅠ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

메인 전체 배경넣기 .. 한시간째 시름중 ㅠㅠ도와주세요 ㅠㅠ 정보

메인 전체 배경넣기 .. 한시간째 시름중 ㅠㅠ도와주세요 ㅠㅠ

본문

<style>
body {background-image:url(("img/mainbg.gif");
background-attachment: fixed;
background-position: bottom right;}
background-repeat: no-repeat;
table { background-color: transparent; }
td { background-color: transparent; }
</style>
 
이전에 글들을 참조해서
이 렇게해서 index.php 맨밑에 넣고 올렸는데
실행시키니깐 이렇게 나와요... 어떻게 해야하죠?ㅠㅠ
Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/head.sub.php on line 48

Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/head.sub.php on line 50

Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/head.sub.php on line 51

Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/head.sub.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/head.sub.php on line 53

Warning: Cannot modify header information - headers already sent by (output started at /home/client/simz/www/gnu/index.php:3) in /home/client/simz/www/gnu/head.sub.php on line 54
  • 복사

댓글 전체

<body topmargin="0" leftmargin="0" style="background-repeat:no-repeat; background-attachment:fixed; background-position:0px 0px;" background="bg2.jpg" bgcolor="#000000" onload="window.resizeTo(1024,768)">

이렇게 하셔도 됩니다.
index.php 파일 제일 밑에 알려주신데로 이렇게 썼는데
사진이 안뜨네요 ㅠㅠㅠ

<body topmargin="0" leftmargin="0" style="background-repeat:no-repeat; background-attachment:fixed; background-position:0px 0px;" background="/img/12345.jpg" onload="window.resizeTo(1024,768)">
아 바디 부분에 올리는 거군여..

근데 head.sub 에 해놨는데 아무 반응이.. ㅠㅠ 죄송합니다 초보라서
......................이렇게 넣는데..
r g4_is_ie    = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
</script>
<script language="javascript" src="<?=$g4['path']?>/js/common.js"></script>
<script language="javascript" src="<?=$g4['path']?>/js/ajax.js"></script>
<body topmargin="0" leftmargin="0" style="background-repeat:no-repeat; background-attachment:fixed; background-position:0px 0px;" background="/img/12345.jpg" onload="window.resizeTo(1024,768)">
<a name="g4_head"></a>

<!-- 오른쪽 스크롤 배너-->
<script language="javascript">

        var stmnLEFT = 0; // 스크롤메뉴의 좌측 위치
        var stmnGAP1 = 100; // 페이지 헤더부분의 여백 (이보다 위로는 올라가지 않음)
        var stmnGAP2 = 100; // 스크롤시 브라우저 상단과 약간 띄움. 필요없으면 0으로 세팅
        var stmnBASE = 200; // 스크롤메뉴 초기 시작위치 (아무렇게나 해도 상관은 없지만 stmnGAP1과 약간 차이를 주는게 보기 좋음)
        var stmnActivateSpeed = 4
.....................
" headers already sent by  " 에러가 나오는 이유는..
소스 중에 "header(...)" 이 문장 이전에..
echo 로 무언가를 출력하면 나오는 에러입니다.

header()는 가장 먼저 출력이 되어야 하는 명령으로,
header를 쓰기 이전에는 절대로 출력이 있어서는 안된답니다. ^^
© SIRSOFT
현재 페이지 제일 처음으로