테스트 사이트 - 개발 중인 베타 버전입니다

검색스킨 이미지 링크테두리 삭제 질문드려요 채택완료

정진님 11년 전 조회 6,045

전체검색 스킨사용중인데요

 

검색을 하면

 

 

이렇게 이미지에 파란 링크테두리가 생기는데 이것 제거하는방법좀 알려주세요

 

게시판 마다 검색될때 이미지가 있으면 다 테두리가 생기더라구요

 

search.skin.php 본문입니다.

 

 

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
function remove_tags_($str)
{
 $str = html_entity_decode($str);
 $str = ereg_replace("<[^>]*>","",$str);
 $str = strip_tags($str);
 return $str;
};
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css" href="<?=$search_skin_path?>/css/style.css" />

<!-- 헤더 -->

<script language="JavaScript">
function errors()
{
 return true;
}
window.onerror = errors;
</script>

</head>

<div class="boardHeader">
<table width="940px" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50" style="padding-left:10"><table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="40"><img src="<?=$search_skin_path?>/img/search.png" alt="" /></td>
    <td><h3>&nbsp;Search</h3></td>
  </tr>
</table></td>
    <td align="left" style="padding-left:15">(<b><?=$board_count?></b>개의 게시판, <b><?=number_format($total_count)?></b>개의
     게시글, <?=number_format($page)?>/<b><?=number_format($total_page)?></b>
     페이지)</td>
  </tr>
</table>
   
</div>
<!-- 헤더 끝 -->

<table cellspacing="0" width="940px" align="center">
 <col />
 <tr>
  <td valign="top" align="left">
   <div class="search">
    <?
    if($_GET[stx] != "")
    {
    ?>
    <!--검색 결과 출력-->
    <!-- 출력-->
    <?
     $k=0;
     for ($idx=$table_index, $k=0; $idx<count($search_table) && $k<$rows; $idx++)
     { //테이블 루프 시작
    ?>
    <br class='clear' />
    <!-- 검색된 게시판 이름-->
    <div class="subheader">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
     <td height="20" ><a href='./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>'><p><?=$bo_subject[$idx]?>
     -
     검색 결과</p></a></td>
     <td width="200"  align="right" style="padding-right:35">
      <img src="<?=$search_skin_path?>/img/arrow_sch.gif" alt="" />&nbsp;<a href="./board.php?bo_table=<?=$search_table[$idx]?>&<?=$search_query?>">검색 결과 더 보기</a></td>
      </tr>
    </table>
    </div>
    
    <!-- 검색된 게시판 끝-->
    <!-- 검색된 데이터들 출력 -->
    <?
                $comment_href = "";
                for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++)
                { //데이터 루프

                 //썸네일 코드 시작
        $img = $list[$idx][$i][wr_id];
        $roo = sql_fetch(" select bf_file from $g4[board_file_table] where bo_table = '$search_table[$idx]' and wr_id = '$img' and bf_no = '0' ");

        $data_path = $g4['path'] . "/data/file/{$search_table[$idx]}";//라이브러리 파일 참조
        $thumb_path = $data_path . '/thumbSearch';

        $sch_w = 80; //썸네일 가로사이즈
        $sch_h = 100; //썸네일 세로사이즈
        $sch_q = 100; //썸네일 퀼리티

        //디렉토리 생성
        if (!is_dir($thumb_path)) {
         @mkdir($thumb_path, 0707);
         @chmod($thumb_path, 0707);
        }

           $filename = $roo[bf_file]; //파일명
           //if($filename != "")
           {
            $thumb = $thumb_path.'/'.$filename; //썸네일

            if (!file_exists($thumb))
            {
             $file = $data_path.'/'.$filename; //원본
                if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
                {
                    $size = getimagesize($file);
                    if ($size[2] == 1)
                        $src = imagecreatefromgif($file);
                    else if ($size[2] == 2)
                        $src = imagecreatefromjpeg($file);
                    else if ($size[2] == 3)
                        $src = imagecreatefrompng($file);
                    else
                        continue;

                    $rate = $sch_w / $size[0];
                    $height = (int)($size[1] * $rate);

                    if ($height < $sch_h)
                        $dst = imagecreatetruecolor($sch_w, $height);
                    else
                        $dst = imagecreatetruecolor($sch_w, $sch_h);
                    imagecopyresampled($dst, $src, 0, 0, 0, 0, $sch_w, $height, $size[0], $size[1]);
                    imagejpeg($dst, $thumb_path.'/'.$filename, $sch_q);
                    chmod($thumb_path.'/'.$filename, 0707);
                }
            }
        }
        //else
        {
         //$thumb = "";
        }

           if (file_exists($thumb) && $filename != "")
               $img = $thumb;
           else
            $img = "";

        $iscmt = "";
                    if ($list[$idx][$i][wr_is_comment])
                    {
                        $iscmt = "<font color=999999>[코멘트]</font> ";
                        $comment_href = "#c_".$list[$idx][$i][wr_id];
                    }

    ?>
    <div class="item_text">
     <table cellspacing="0">
     <? if($img == ""){ ?>
     <col width="0" />
     <? } else { ?>
     <col width="<?=$sch_w?>" />
     <? } ?>
     <col/>
      <tr>
       <td valign=top><? if ($img != ""){ ?><table width="100%"  cellspacing="3" cellpadding="3" style="position:relative; border:1px solid #e4e4e4"; bgcolor="#ffffff">
  <tr>
    <td><a href='<?=$list[$idx][$i][href]?><?=$comment_href?>' target='_self'><img src='<?=$img?>'></a></td>
  </tr>
</table><br><? } ?></td>
       <td valign=top>
        <? if ($img != ""){ ?><img src="<?=$search_skin_path?>/img/pipe.png" alt="" /><? } ?>
        <b><a href='<?=$list[$idx][$i][href]?><?=$comment_href?>' target='_self'><?=$iscmt?><?=$list[$idx][$i][subject]?></a></b>&nbsp;&nbsp;&nbsp;<font color=#999999><?=$list[$idx][$i][wr_datetime]?></font><br />
        <div class="item_text2">
         <?=$list[$idx][$i][content]?>
        </div>
       </td>
      </tr>
     </table>
    </div>
    <?
       } //데이터 루프 끝
       //검색 결과 더보기
    ?>
    <br class='clear' />
    <?
     } //테이블 루프 끝
    ?>
    <div class="clear">
    <p align=center><?=$write_pages?>
    <div class="clear">
    <? } else { ?>
    <!--검색어 없음-->
    <div class="boardComment">
     검색어를 입력하세요.
    </div>
    <? } ?>
   </div>
  </td>
 </tr>
</table>

<br class='clear' />

<script language="javascript">
document.fsearch.sfl.value = "<?=$sfl?>";
function fsearch_submit(f)
{
 /*
 // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
 var cnt = 0;
 for (var i=0; i<f.stx.value.length; i++)
 {
  if (f.stx.value.charAt(i) == ' ')
   cnt++;
 }

 if (cnt > 1)
 {
  alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
  f.stx.select();
  f.stx.focus();
  return;
 }
 */
 f.action = "";
 f.submit();
};
function check_value()
{
 var s = document.all.stx.value.replace(" ", "");
 if(s.length == 1)
 {
  alert("2자 이상 입력해 주세요");
  document.all.stx.focus();
  return false;
 }
 return true;
};
</script>

<script language="javascript">document.all.stx.focus();</script>
​ 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
11년 전

<head>와 </head>사이에

<style type="text/css">

img { border: 0; }

</style>

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인