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

의견좀 주세요~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

· 14년 전 · 1203 · 1
http://news.pj.terrorboy.net/ <-- 시안 없이 작업된것 ⓑ
 
ⓐ에서 보이는 동영상 출력과 그옆에 리스트 부분(리스트에서 클릭시 그옆에 동영상과 설명이 바뀜)의 문제입니다.
현제 ⓑ에서는 이미 구현은 되어있습니다. 하지만 ⓑ의 상태는 자바스크립트라서 글자를 재가공하기 엄청 힘들더군요. 그래서 ⓐ시안이 나온김에 프로그램을 새로 짜려고 합니다만... 아무리 생각해도 ⓑ의 방법밖에 생각이 안나네요.
구현 가능한 의견즘 주세요.

댓글 작성

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

로그인하기

댓글 1개

그냥 소스 약간 변경후 사용하기로 했습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<table border="1" width="99%">
<tr>
<td width="410px"><div id="main_movie"></div></td>
<td valign="top">
<div id="movie_latest_subject"></div>
<div id="movie_latest_content"></div>
</td>
<tr>
<td colspan="2" style="padding-top:5px;">
<?
for ($i=0; $i<count($list); $i++) {
if($i == "0"){
$move_src = $list[$i][file][0][file];
$move_images = $list[$i][file][1][file];
$movie_latest_subject = $list[0][subject];
$movie_latest_content = $list[0][wr_content];
}
$wr = str_replace("\n","&br;",$list[$i][wr_content]);
?>
<span style="font-size:1.2em">
<a href="javascript:main_movie('<?=$list[$i][file][0][file]?>', '<?=$list[$i][file][1][file]?>', '<?=$list[$i][subject]?>', ' <?=$wr?>');"><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'><img src="<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$list[$i][file][1][file]?>" width="50px" height="50px"><?=$list[$i]['subject']?></font></a>
</span>
<? } ?>

<? if (count($list) == 0) { ?><? } ?>
<? $movie_latest_content = nl2br($movie_latest_content); ?>
<script type="text/javascript">
var name = "<?=$move_src?>";
var images = "<?=$move_images?>";
var movie_latest_subject = "<?=$movie_latest_subject?>";
var movie_latest_content = "<?=urlencode($movie_latest_content)?>";

document.getElementById("main_movie").innerHTML = "<object id=\"flash_fallback_1\" class=\"vjs-flash-fallback\" width=\"410\" height=\"300\" type=\"application/x-shockwave-flash\" " +
"data=\"<?=$latest_skin_path?>/flowplayer-3.2.1.swf\">" +
"<param name=\"movie\" value=\"<?=$latest_skin_path?>/flowplayer-3.2.1.swf\" />" +
"<param name=\"allowfullscreen\" value=\"true\" />" +
"<param name=\"flashvars\" value='config={\"playlist\":[\"<?=$g4[path]?>/data/file/<?=$bo_table?>/" + images + "\", {\"url\": \"http://news.pj.terrorboy.net/data/file/movie/" + name + "\",\"autoPlay\":false,\"autoBuffering\":true}]}' />" +
"</object>";
document.getElementById("movie_latest_subject").innerHTML = movie_latest_subject;
movie_latest_content = decodeURIComponent(movie_latest_content);
document.getElementById("movie_latest_content").innerHTML = movie_latest_content.replace(/\+/gi," "); // 변환된 데이터 +(스페이스 대신 들어감)을 공백처리.

function main_movie(name, images, latest_subject, latest_content){
document.getElementById("main_movie").innerHTML = "<object id=\"flash_fallback_1\" class=\"vjs-flash-fallback\" width=\"410\" height=\"300\" type=\"application/x-shockwave-flash\" " +
"data=\"<?=$latest_skin_path?>/flowplayer-3.2.1.swf\">" +
"<param name=\"movie\" value=\"<?=$latest_skin_path?>/flowplayer-3.2.1.swf\" />" +
"<param name=\"allowfullscreen\" value=\"true\" />" +
"<param name=\"flashvars\" value='config={\"playlist\":[\"<?=$g4[path]?>/data/file/<?=$bo_table?>/" + images + "\", {\"url\": \"http://news.pj.terrorboy.net/data/file/movie/" + name + "\",\"autoPlay\":true,\"autoBuffering\":true}]}' />" +
"</object>";
document.getElementById("movie_latest_subject").innerHTML = latest_subject;
latest_content = latest_content.replace(/\&br;/gi,"<br>");
document.getElementById("movie_latest_content").innerHTML = latest_content.replace(/\+/gi," ");
}
</script>
</td>
</tr>
</table>

게시글 목록

번호 제목
1717635
1717629
1717626
1717625
1717621
1717619
1717611
1717610
1717609
1717607
1717601
1717598
1717591
1717590
1717583
1717575
1717572
1717568
1717566
1717549
1717545
1717533
1717512
1717511
1717508
1717495
1717479
1717473
1717470
1717463