관리자님이 공개해주신 롤링 인기검색어 팁 정보
관리자님이 공개해주신 롤링 인기검색어 팁
본문
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=9311&sca=&sfl=wr_name%2C1&stx=%B0%FC%B8%AE%C0%DA&sop=and
위 팁에서 공개해주셨더군요.. 홈페이지에 적용해볼려고 하는데
scroll.js 를 홈페이지에 올린뒤에 (헐랭이님이 코멘트로 소스를 올려주셨습니다.)
popular.skin.php 를 아래 내용으로 고쳤습니다.
그런데 안되네요.. 혹시 제가 뭘 잘못했는지 알 수 있을까요?
------------------------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div id="newPop" onMouseOver="quicknewstop.stop=true;" onMouseOut="quicknewstop.stop=false;"></div>
<script language="JavaScript" src="<?=$g4[path]?>/js/scroll.js"></script>
<script language="JavaScript">
quicknewstop = new NvScroll();
quicknewstop.name = 'quicknewstop';
quicknewstop.divId = 'newPop';
quicknewstop.height = 22;
quicknewstop.width = 180;
quicknewstop.scrollspeed = 10;
quicknewstop.pausedelay = 1000;
quicknewstop.pausemouseover = true;
<?
popular("sir", 50);
for ($i=0; $i<50; $i++) {
echo "\nquicknewstop.add(\" <span class=small>$pops[$i]</span>\");";
}
?>
quicknewstop.start();
</script>
<table>
<tr>
<td width="80"><font color=#FFFFFF><b>인기검색어 : </b></font></td>
<? for ($i=0; $i<count($list); $i++) { ?>
<td>
<table>
<tr>
<td>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $pops;
srand ((float)microtime()*1000000);
@shuffle ($list);
for ($i=0; $i<count($list); $i++)
{
//$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target=_new>{$list[$i][pp_word]} ({$list[$i][cnt]})</a>";
$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'>{$list[$i][pp_word]}</a>";
}
?>
</td></tr>
</table></td>
<? } ?>
</tr>
</table>
위 팁에서 공개해주셨더군요.. 홈페이지에 적용해볼려고 하는데
scroll.js 를 홈페이지에 올린뒤에 (헐랭이님이 코멘트로 소스를 올려주셨습니다.)
popular.skin.php 를 아래 내용으로 고쳤습니다.
그런데 안되네요.. 혹시 제가 뭘 잘못했는지 알 수 있을까요?
------------------------------------------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div id="newPop" onMouseOver="quicknewstop.stop=true;" onMouseOut="quicknewstop.stop=false;"></div>
<script language="JavaScript" src="<?=$g4[path]?>/js/scroll.js"></script>
<script language="JavaScript">
quicknewstop = new NvScroll();
quicknewstop.name = 'quicknewstop';
quicknewstop.divId = 'newPop';
quicknewstop.height = 22;
quicknewstop.width = 180;
quicknewstop.scrollspeed = 10;
quicknewstop.pausedelay = 1000;
quicknewstop.pausemouseover = true;
<?
popular("sir", 50);
for ($i=0; $i<50; $i++) {
echo "\nquicknewstop.add(\" <span class=small>$pops[$i]</span>\");";
}
?>
quicknewstop.start();
</script>
<table>
<tr>
<td width="80"><font color=#FFFFFF><b>인기검색어 : </b></font></td>
<? for ($i=0; $i<count($list); $i++) { ?>
<td>
<table>
<tr>
<td>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $pops;
srand ((float)microtime()*1000000);
@shuffle ($list);
for ($i=0; $i<count($list); $i++)
{
//$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target=_new>{$list[$i][pp_word]} ({$list[$i][cnt]})</a>";
$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'>{$list[$i][pp_word]}</a>";
}
?>
</td></tr>
</table></td>
<? } ?>
</tr>
</table>
댓글 전체
위치만 바꿔서 테스트 해보니 되던군요. <div id="newPop... 으로 시작되는 소스를 </table> 로
끝나는 맨 밑 하단에 위치시키니 됩니다. 밑에 소스입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table>
<tr>
<td width="80"><font color=#FFFFFF><b>인기검색어 : </b></font></td>
<? for ($i=0; $i<count($list); $i++) { ?>
<td>
<table>
<tr>
<td>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $pops;
srand ((float)microtime()*1000000);
@shuffle ($list);
for ($i=0; $i<count($list); $i++)
{
//$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target=_new>{$list[$i][pp_word]} ({$list[$i][cnt]})</a>";
$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'>{$list[$i][pp_word]}</a>";
}
?>
</td></tr>
</table></td>
<? } ?>
</tr>
</table>
<div id="newPop" onMouseOver="quicknewstop.stop=true;" onMouseOut="quicknewstop.stop=false;"></div>
<script language="JavaScript" src="<?=$g4[path]?>/js/scroll.js"></script>
<script language="JavaScript">
quicknewstop = new NvScroll();
quicknewstop.name = 'quicknewstop';
quicknewstop.divId = 'newPop';
quicknewstop.height = 22;
quicknewstop.width = 180;
quicknewstop.scrollspeed = 10;
quicknewstop.pausedelay = 1000;
quicknewstop.pausemouseover = true;
<?
popular("sir", 50);
for ($i=0; $i<50; $i++) {
echo "\nquicknewstop.add(\" <span class=small>$pops[$i]</span>\");";
}
?>
quicknewstop.start();
</script>
이렇게요. 한번 해 보세요.
끝나는 맨 밑 하단에 위치시키니 됩니다. 밑에 소스입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table>
<tr>
<td width="80"><font color=#FFFFFF><b>인기검색어 : </b></font></td>
<? for ($i=0; $i<count($list); $i++) { ?>
<td>
<table>
<tr>
<td>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $pops;
srand ((float)microtime()*1000000);
@shuffle ($list);
for ($i=0; $i<count($list); $i++)
{
//$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target=_new>{$list[$i][pp_word]} ({$list[$i][cnt]})</a>";
$pops[] = "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'>{$list[$i][pp_word]}</a>";
}
?>
</td></tr>
</table></td>
<? } ?>
</tr>
</table>
<div id="newPop" onMouseOver="quicknewstop.stop=true;" onMouseOut="quicknewstop.stop=false;"></div>
<script language="JavaScript" src="<?=$g4[path]?>/js/scroll.js"></script>
<script language="JavaScript">
quicknewstop = new NvScroll();
quicknewstop.name = 'quicknewstop';
quicknewstop.divId = 'newPop';
quicknewstop.height = 22;
quicknewstop.width = 180;
quicknewstop.scrollspeed = 10;
quicknewstop.pausedelay = 1000;
quicknewstop.pausemouseover = true;
<?
popular("sir", 50);
for ($i=0; $i<50; $i++) {
echo "\nquicknewstop.add(\" <span class=small>$pops[$i]</span>\");";
}
?>
quicknewstop.start();
</script>
이렇게요. 한번 해 보세요.