T

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

· 2011-09-08 (목) 09:50:31 · 1357 · 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>
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

202,906건
+
제목 글쓴이 날짜 조회
11-09-08 조회 1,358
11-09-08 조회 4,141
11-09-08 조회 1,293
11-09-08 조회 2,038
11-09-08 조회 1,268
11-09-08 조회 1,583
11-09-08 조회 1,310
11-09-08 조회 2,673
11-09-08 조회 1,279
11-09-08 조회 1,909
11-09-08 조회 1,346
11-09-08 조회 1,440
11-09-08 조회 1,269
11-09-08 조회 1,501
11-09-08 조회 1,355
11-09-08 조회 1,865
11-09-08 조회 1,619
11-09-07 조회 2,836
11-09-07 조회 1,934
11-09-07 조회 2,789