대부분의 스킨들이 흰색 바탕에 맞추어져 있는것 같아서 검은색 배경일때는
이렇게 수정이 필요하다.
제목이 좀이상한데요.. -_-;;
보통 최근게시물을 정의할때 색깔을 지정해도 기본홈페이지에 스타일시트를 적용하고 사용하다보면 일괄적으로 적용되어
최근게시물의 스타일 시트는 거의 무용지물이 되고 맙니다.
문제 :
하얀바탕이나 보통 밝은 바탕을 사용할때는 기본 스타일 시트(검은글자)를 적용해도 무리가 없었습니다.
그런데 흰색 바탕 구석탱이에 검은색 바탕에 최근게시물을 출력하고자 하는데 <a 링크로 붙은 최근게시물(검은색)은 이미 지정해둔 바탕소스의 스타일 시트(검은색)가 적용되어 당최 글자색을 흰색으로 바꿀수가 없었습니다..
해결방법..
우선 outlogin.php 파일을 열어 다음과 같은 부분 을 찾습니다.
$main = str_replace("[subject]","<a href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$main);
이부분 아래에 다음과 같른 라인을 추가해줍니다.
$main = str_replace("[subject1]","<a class=a1 href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$main);
class=a1 부분의 이름 a1 은 자신의 스타일 시트에 맞게 넣으시면 됩니다.
그리고 sytle.css 파일에 다음과 같이 추가 합니다.
<style type="text/css">
a:link {color:black; text-decoration:none}
a:visited {color:black; text-decoration:none}
a:active {color:blue; text-decoration:none}
a:hover {color:red; text-decoration:none}
a.a1:link {color:white; text-decoration:none}
a.a1:visited {color:white; text-decoration:none}
a.a1:active {color:red; text-decoration:none}
a.a1:hover{color:yellow; text-decoration:none}
BODY {background-color:white}
TD {font-size:9pt}
</style>
자 이제 최근게시물의 main.html 파일을 열어 [subject] 라는 부분을 [subject1] 로 바꿔주고 업로드 합니다.
검은색 바탕화면의 최근게시물의 링크가 흰색으로 a.a1 스타일 시트가 적용되어진것을 확인하실 수 있습니다.
수고하세요..
아 이거 하느라 몇시간 삽질을 -_-;;
출처 : 무꾸님
링크 : http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&keyword=글자색&select_arrange=headnum&desc=asc&no=4686
이렇게 수정이 필요하다.
제목이 좀이상한데요.. -_-;;
보통 최근게시물을 정의할때 색깔을 지정해도 기본홈페이지에 스타일시트를 적용하고 사용하다보면 일괄적으로 적용되어
최근게시물의 스타일 시트는 거의 무용지물이 되고 맙니다.
문제 :
하얀바탕이나 보통 밝은 바탕을 사용할때는 기본 스타일 시트(검은글자)를 적용해도 무리가 없었습니다.
그런데 흰색 바탕 구석탱이에 검은색 바탕에 최근게시물을 출력하고자 하는데 <a 링크로 붙은 최근게시물(검은색)은 이미 지정해둔 바탕소스의 스타일 시트(검은색)가 적용되어 당최 글자색을 흰색으로 바꿀수가 없었습니다..
해결방법..
우선 outlogin.php 파일을 열어 다음과 같은 부분 을 찾습니다.
$main = str_replace("[subject]","<a href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$main);
이부분 아래에 다음과 같른 라인을 추가해줍니다.
$main = str_replace("[subject1]","<a class=a1 href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$main);
class=a1 부분의 이름 a1 은 자신의 스타일 시트에 맞게 넣으시면 됩니다.
그리고 sytle.css 파일에 다음과 같이 추가 합니다.
<style type="text/css">
a:link {color:black; text-decoration:none}
a:visited {color:black; text-decoration:none}
a:active {color:blue; text-decoration:none}
a:hover {color:red; text-decoration:none}
a.a1:link {color:white; text-decoration:none}
a.a1:visited {color:white; text-decoration:none}
a.a1:active {color:red; text-decoration:none}
a.a1:hover{color:yellow; text-decoration:none}
BODY {background-color:white}
TD {font-size:9pt}
</style>
자 이제 최근게시물의 main.html 파일을 열어 [subject] 라는 부분을 [subject1] 로 바꿔주고 업로드 합니다.
검은색 바탕화면의 최근게시물의 링크가 흰색으로 a.a1 스타일 시트가 적용되어진것을 확인하실 수 있습니다.
수고하세요..
아 이거 하느라 몇시간 삽질을 -_-;;
출처 : 무꾸님
링크 : http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&keyword=글자색&select_arrange=headnum&desc=asc&no=4686