a

제발 부탁드립니다...ㅜㅜ

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://xpeedkorea.net/gnuboard4/test.php

아래의 소스입니다.

-------------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">

DIV,blockquote {font-size:9pt; font-family:굴림; color:#666666; line-height:170%;}

A:link {color:666666;text-decoration:none;}
A:visited {color:666666;text-decoration:none;}
A:active {color:666666;text-decoration:none;}
A:hover {color:gray;text-decoration:none;}

</style>
<script language="javascript">
<!--
//Math.random()

var scrollerheight=100; // 스크롤러의 세로
var html,total_area=0,wait_flag=true;

var bMouseOver = 1;
var scrollspeed = 1; // Scrolling 속도
var waitingtime = 2000; // 멈추는 시간
var s_tmp = 0, s_amount = 40;
var scroll_content=new Array();
var startPanel=0, n_panel=0, i=0;

function startscroll()
{ // 스크롤 시작
i=0;
for (i in scroll_content)
n_panel++;

n_panel = n_panel -1 ;
startPanel = Math.round(Math.random()*n_panel);
if(startPanel == 0)
{
i=0;
for (i in scroll_content)
insert_area(total_area, total_area++);
}
else if(startPanel == n_panel)
{
insert_area(startPanel, total_area);
total_area++;
for (i=0; i<startPanel; i++)
{
insert_area(i, total_area);
total_area++;
}
}
else if((startPanel > 0) || (startPanel < n_panel))
{
insert_area(startPanel, total_area);
total_area++;
for (i=startPanel+1; i<=n_panel; i++)
{
insert_area(i, total_area);
total_area++;
}
for (i=0; i<startPanel; i++)
{
insert_area(i, total_area);
total_area++;
}
}
window.setTimeout("scrolling()",waitingtime);
}
function scrolling(){ // 실제로 스크롤 하는 부분
if (bMouseOver && wait_flag)
{
for (i=0;i<total_area;i++){
tmp = document.getElementById('scroll_area'+i).style;
tmp.top = parseInt(tmp.top)-scrollspeed;
if (parseInt(tmp.top) <= -scrollerheight){
tmp.top = scrollerheight*(total_area-1);
}
if (s_tmp++ > (s_amount-1)*scroll_content.length){
wait_flag=false;
window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
}
}
}
window.setTimeout("scrolling()",1);
}
function insert_area(idx, n){
html='<div style="left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">\n';
html+=scroll_content[idx]+'\n';
html+='</div>\n';
document.write(html);
}

// 스크롤러에 들어갈 내용들을 태그와 함께 넣어 줍니다
<?

//$rows = "10"; // 자료가 숫자보다 작으면 안됩니다. - 숫자변경은 10이상 5의 배수로 하세요

$sql = " select *
from {$g4[write_prefix]}{$bo_table}
where wr_comment >= 0
order by wr_id desc limit 0, $rows ";
$result = sql_query($sql);

$i = 0;$j = 0;

while($row = mysql_fetch_array($result)) {

$list[i] = $row;

$list[i][subject]=stripslashes(cut_str($row[wr_subject], 34)); //제목 글자수자르기

if($row[wr_datetime] >= date("Y-m-d H:i:s", time() - 24 * 3600)) {//새글표시---제목색상변경

$subject = "<font color=#323434>{$list[i][subject]}</font>"; //새글에 색상/진하게 등등을 적용하시려면 요기에서 하세요

} else {

$subject = $list[i][subject]; //새글이 아닐경우 그냥 나타남
}

$date1 = substr($list[$i][datetime],0,10); //날짜표시형식변경

$date = explode("-", $date1);

$year = $date[0];

$month = $date[1];

$day = $date[2];

$latest_date = $month."월".$day."일";

if($i==0) {
echo "scroll_content[".$j."]=\"";
}
echo "<b>ㆍ</b><font color=#0080C0>[$latest_date]</font><a href='$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=$row[wr_id]'> {$subject}</a><br>";
$i++;
if($i==5) {
echo "\";\n\t";
$i = 0; $j++;
}
}
?>

//-->
</script>
<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="53">
<tr>

<td width="330" valign=top><div style="position: absolute; width: 330px; height: 500px; overflow:hidden;" onMouseover="bMouseOver=0" onMouseout="bMouseOver=1" id="scroll_image">
<script>
startscroll();
</script>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>

----------------------------------------------

여기서 아예 클릭이 안되게 막고싶은데요 어떻게 해야 하는지 도저히 모르겠습니다...ㅜㅜ

질답 게시판 검색 해보았더니
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=95928&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%C5%AC%B8%AF+%BE%C8%B5%C7%B0%D4&sop=and

위와같은 비슷한 글을 읽고 따라해 보려 했지만 기본지식이 없는지라 도무지 안되더군요..

부디 자세한 답변 부탁드립니다..

진짜 답답해서 미치겠네요 ㅠㅠ
|

댓글 2개

echo "<b>ㆍ</b><font color=#0080C0>[$latest_date]</font> {$subject}<br>";
하이퍼링크를 없애면 됩니다.
아 정말 감사합니다.해결했습니다..
정말 감사해요 꾸벅 ㅜㅜ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 3,331
17년 전 조회 1,090
17년 전 조회 906
17년 전 조회 967
17년 전 조회 691
17년 전 조회 753
17년 전 조회 761
17년 전 조회 754
17년 전 조회 813
17년 전 조회 737
17년 전 조회 709
17년 전 조회 945
17년 전 조회 705
17년 전 조회 969
17년 전 조회 844
17년 전 조회 781
17년 전 조회 725
17년 전 조회 973
17년 전 조회 959
17년 전 조회 839