김

최근게시물 질문이요.

· 2008-12-09 (화) 21:31:17 · 897
<script type="text/javascript" src="/flowplayer/examples/js/flashembed.min.js"></script>

<? for ($i=0; $i<count($list); $i++) {
$sql_d = " select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '{$list[$i][wr_id]}' and bf_no = '1'";
$data = sql_fetch($sql_d);
$name = "{$list[$i][name]}";
$bo_table = "{$list[$i][bo_table]}";
$ski = "{$list[$i][file][1][file]}";
$la_content = "65"; //내용길이
$href = "{$list[$i][href]}";
$subject = "<span $style>".cut_str($list[$i][subject],60)."</span>";
$wr_content = "<span $style>".cut_str(strip_tags($list[$i][wr_content]),$la_content)."</span>";
?>


<div style="height:375px;position:relative">
<div class="movie" style="position:absolute;top:9px;">
<script>
flashembed("main_movie",
{
src:'/flowplayer/FlowPlayerDark.swf',
width: 420,
height: 280
},
{config: {
showVolumeSlider: false,
showMuteVolumeButton: 'true',
showMenu: 'true',
controlsOverVideo: 'ease',
controlBarBackgroundColor: -1,
controlBarGloss: 'low' ,
autoRewind: 'ture',
loop: 'ture',
autoPlay: 'ture',
autoBuffering: 'true',
initialScale: 'scale',
videoFile: 'http://www.motiongraphiclab.com/data/file/<?=$bo_table?>/<?=$ski?>'
}}
);
</script>
<div id="main_movie"></div>

=====================================================================

위에 소스가 제가 사용하는 핵심적인 소스인데요.

데이터베이스가 자바스크립트를 통과한 후 메인페이지에 뿌려지는 역할인데요.

문제는 제가 이 방법을 함으로써 최근게시물이 보였다 안보였다 하는 것 같아 보입니다.

http://www.motiongraphiclab.com

동영상이 메인페이지에 떠야 정상인데 말이죠.

위에 있는 소스가 너무 안좋게 무리가 가는 방법으로 코딩이 된건가 싶기도 하고 궁굼하네요.

전문가님 의견좀 부탁드립니다.
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
08-12-10 조회 785
08-12-10 조회 841
08-12-10 조회 1,043
08-12-10 조회 911
08-12-10 조회 1,215
08-12-09 조회 1,613
08-12-09 조회 1,221
08-12-09 조회 898
08-12-09 조회 2,647
08-12-09 조회 907
08-12-09 조회 1,401
08-12-09 조회 923
08-12-09 조회 1,631
08-12-09 조회 979
08-12-09 조회 858
08-12-09 조회 934
08-12-09 조회 881
08-12-09 조회 1,029
08-12-09 조회 854
08-12-09 조회 1,031