T

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

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>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
14년 전 조회 1,240
14년 전 조회 1,353
14년 전 조회 1,943
14년 전 조회 1,191
14년 전 조회 1,339
14년 전 조회 1,723
14년 전 조회 1,301
14년 전 조회 1,558
14년 전 조회 1,214
14년 전 조회 2,979
14년 전 조회 1,133
14년 전 조회 1,242
14년 전 조회 1,160
14년 전 조회 1,737
14년 전 조회 1,219
14년 전 조회 3,977
14년 전 조회 1,146
14년 전 조회 1,867
14년 전 조회 1,129
14년 전 조회 1,443
14년 전 조회 1,147
14년 전 조회 2,527
14년 전 조회 1,156
14년 전 조회 1,747
14년 전 조회 1,208
14년 전 조회 1,308
14년 전 조회 1,142
14년 전 조회 1,365
14년 전 조회 1,198
14년 전 조회 1,716
🐛 버그신고