인기검색어 글자 색 변경 > 그누4 질문답변

그누4 질문답변

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

인기검색어 글자 색 변경 정보

인기검색어 글자 색 변경

본문

http://www.zv.pe.kr/potal/

현재 리뉴얼하고 있는데, 인기검색어 글자 색을 어떻게 바꾸는지 몰라서요.

소스 ************************************************************
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

for ($i=0; $i<count($list); $i++)
{
  if($i=="0")
  {
   $popular_scroll[$i] = "<table width='100%'><tr style='height:20;'><td> <img width='14' height='13' align='absmiddle' src='$popular_skin_path/num_0".$i.".gif' ALT=''>  <a href='$g4[bbs_path]/search.php?sfl=wr_subject||wr_content&sop=and&stx=".urlencode($list[$i][pp_word])."'><b>{$list[$i][pp_word]}</b></a></td>";
  }
  else
  {
   $popular_scroll[$i] = "<table width='100%'><tr style='height:20;'><td> <img width='14' height='13' align='absmiddle' src='$popular_skin_path/num_0".$i.".gif' ALT=''>  <a href='$g4[bbs_path]/search.php?sfl=wr_subject||wr_content&sop=and&stx=".urlencode($list[$i][pp_word])."'>{$list[$i][pp_word]}</a></td>";
  }
   $popular_scroll_no[$i] = "<td style='padding-right:3px' align='right'><img src='$popular_skin_path/i_arrow.gif'> <span class=small>{$list[$i][cnt]}</span></td></tr></table>";

} //for문으로 이루어진 전체루틴 종료(빼 먹지 말것)
?>
<style type="text/css">
#pscroller2{width: 150px;height: 25px;border: 0px #888 solid;/* 익스플로어 이외것 패치 */voice-family: "\"}\"";voice-family:inherit;width:148px;height:20px;}html>body .pscroller2{ /* 오페라를위해 */ width:204px;height:22px;}
#pscroller2 a{text-decoration: none;color:#888;}
.someclass{}
#popular_scroll_all_list{position:absolute;index-z:9999999;width: 170px;border: 2px #888 solid;background:#fff}
</style>
<script language="JavaScript" type="text/javascript">


var pausecontent2=new Array();
 <?
 for($i=0; $i<count($list); $i++){
  echo "pausecontent2[".$i."]=\"".$popular_scroll[$i].$popular_scroll_no[$i]."\";";
 }
 if(!count($list)){
  echo "pausecontent2[0]=\"<table width='100%'><tr style='height:20;'><td style='padding-right:3px' align='right'><span class=small>최근 검색어 없음.</span></td></tr></table>\";";
 }
 ?>


 

function show_popular_scroll_all(popular_scroll_all){
var m1 = document.getElementById("popular_scroll_all1");
var m2 = document.getElementById("popular_scroll_all2");

m1.style.display = "block";
m2.style.display = "none";

 switch(popular_scroll_all){
   case 1:
    m1.style.display = "";
    break;
   case 2:
    m2.style.display = "";
    break;
  }
 }
</script>
<script language="JavaScript" type="text/javascript" src="<?=$popular_skin_path?>/popular_scroll.js"></script>
  <div id="popular_scroll_all1" style="display:;cursor:hand;padding-top:5;" onMouseover="show_popular_scroll_all(2);" onMouseout="show_popular_scroll_all(1);">
  <script type="text/javascript">
  new pausescroller(pausecontent2, "pscroller2", "someclass", 3000)
  </script>
  </div>
  <div id="popular_scroll_all2" style="display:none;position:relative;top:-27px;"  onMouseover="show_popular_scroll_all(2);" onMouseout="show_popular_scroll_all(1);">
  <div id=popular_scroll_all_list style="background-color:#333;";>
            <?
    for($i=0; $i<count($list); $i++){
     echo "<font color=#ffffff>";
     echo $popular_scroll[$i].$popular_scroll_no[$i];
     echo "</font>";
    }
    if(!count($list)){
     echo "최근 ".$date_cnt."일동안 검색이 없었습니다.";
    }
    ?>
  </div>
  </div>
*************************************************************************



포인트 많이 드릴게요~ㅎㅎ

#ebebeb 색으로 하려고 합니다.

댓글 전체

일단 스크롤 스크롤 되는 폰트 색상의 경우 888이라고 적혀 있는 부분을 수정하면 될거 가습니다.

#pscroller2 a{text-decoration: none;color:#888;}

이부분을 수정 ..

그리고 스크롤 될때는 css 포함인거 같은데요 ^^;; 스킨을 받은 주소를 알려 주시면 ..
함 봐 드리겠습니다. ^^;;
테스트는 안해 봤지만 잘 될거예요..

현재는 ./style.css 의 링크색이 먹고 있구요
아래 새로 스타일을 적용했습니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

for ($i=0; $i<count($list); $i++)
{
  if($i=="0")
  {
  $popular_scroll[$i] = "<table width='100%'><tr style='height:20;'><td>&nbsp;<img width='14' height='13' align='absmiddle' src='$popular_skin_path/num_0".$i.".gif' ALT=''>&nbsp;&nbsp;<a href='$g4[bbs_path]/search.php?sfl=wr_subject||wr_content&sop=and&stx=".urlencode($list[$i][pp_word])."' class='popular'><b>{$list[$i][pp_word]}</b></a></td>";
  }
  else
  {
  $popular_scroll[$i] = "<table width='100%'><tr style='height:20;'><td>&nbsp;<img width='14' height='13' align='absmiddle' src='$popular_skin_path/num_0".$i.".gif' ALT=''>&nbsp;&nbsp;<a href='$g4[bbs_path]/search.php?sfl=wr_subject||wr_content&sop=and&stx=".urlencode($list[$i][pp_word])."' class='popular'>{$list[$i][pp_word]}</a></td>";
  }
  $popular_scroll_no[$i] = "<td style='padding-right:3px' align='right'><img src='$popular_skin_path/i_arrow.gif'> <span class=small>{$list[$i][cnt]}</span></td></tr></table>";

} //for문으로 이루어진 전체루틴 종료(빼 먹지 말것)
?>

<style type="text/css">
#pscroller2{width: 150px;height: 25px;border: 0px #888 solid;/* 익스플로어 이외것 패치 */voice-family: "\"}\"";voice-family:inherit;width:148px;height:20px;}html>body .pscroller2{ /* 오페라를위해 */ width:204px;height:22px;}
#pscroller2 a{text-decoration: none;color:#888;}
.someclass{}
#popular_scroll_all_list{position:absolute;index-z:9999999;width: 170px;border: 2px #888 solid;background:#fff}

/* 글자색 지정 */
a.popular:link, a.popular:visited, a.popular:active { text-decoration:none; color:#ebebeb; }
a.popular:hover { text-decoration:none; }

/* 배경색 */
.bg { background-color:#333; }
</style>

<script language="Javascript" type="text/javascript">
var pausecontent2=new Array();
 <?
 for($i=0; $i<count($list); $i++){
  echo "pausecontent2[".$i."]=\"".$popular_scroll[$i].$popular_scroll_no[$i]."\";";
 }
 if(!count($list)){
  echo "pausecontent2[0]=\"<table width='100%'><tr style='height:20;'><td style='padding-right:3px' align='right'><span class=small>최근 검색어 없음.</span></td></tr></table>\";";
 }
 ?>

function show_popular_scroll_all(popular_scroll_all){
var m1 = document.getElementById("popular_scroll_all1");
var m2 = document.getElementById("popular_scroll_all2");

m1.style.display = "block";
m2.style.display = "none";

 switch(popular_scroll_all){
  case 1:
    m1.style.display = "";
    break;
  case 2:
    m2.style.display = "";
    break;
  }
 }
</script>
<script language="Javascript" type="text/javascript" src="<?=$popular_skin_path?>/popular_scroll.js"></script>
  <div id="popular_scroll_all1" style="display:;cursor:hand;padding-top:5;" onMouseover="show_popular_scroll_all(2);" onMouseout="show_popular_scroll_all(1);">
  <script type="text/javascript">
  new pausescroller(pausecontent2, "pscroller2", "someclass", 3000)
  </script>
  </div>
  <div id="popular_scroll_all2" style="display:none;position:relative;top:-27px;"  onMouseover="show_popular_scroll_all(2);" onMouseout="show_popular_scroll_all(1);">
  <div id=popular_scroll_all_list class=bg>
    <?
    for($i=0; $i<count($list); $i++){
    echo $popular_scroll[$i].$popular_scroll_no[$i];
    }
    if(!count($list)){
    echo "최근 ".$date_cnt."일동안 검색이 없었습니다.";
    }
    ?>
  </div>
  </div>
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT