첨부파일 있을시 출력 방법 질문 드립니다. > 그누4 질문답변

그누4 질문답변

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

첨부파일 있을시 출력 방법 질문 드립니다. 정보

첨부파일 있을시 출력 방법 질문 드립니다.

본문

첨부파일 3번에 등록된 파일을 뽑을라고 하는데요.
동영상파일이 올라가고 자바스크립트로 물려서 플레이 되는 방법이라 좀 어려워서 질문 드립니다.

아래의 영역처럼 스크립트 문구가 포함되어 있어요~3번파일에 파일이 있으면 보여주고 없을떄 보여주지 마라라는 식으로 만들려면 어떻게 해야되는지 질문 올려봅니다.


<script type="text/javascript" src="/flowplayer/examples/js/flashembed.min.js"></script>
          <div align="center">
 <script>
  flashembed("main_movie",
  {
  src:'/flowplayer/FlowPlayerClassic.swf',
  width: 580,
  height: 475
  },
 
  {config: {
  showVolumeSlider: false,
  showMuteVolumeButton: false,
  showMenu: false,
  controlsOverVideo: 'ease',
  controlBarBackgroundColor: -1,
  controlBarGloss: 'low' ,
  autoRewind: 'ture',
  loop: 'false',
  autoPlay: false,
  autoBuffering: true,
  initialScale: 'scale',
  videoFile: 'http://www.motiongraphiclab.com/data/file/<?=$bo_table?>/<?=$view[file][2][file]?>'
  }}
 );
 </script>

<div id="main_movie"></div>

</div>
  • 복사

댓글 전체

<?
if($list[file][2][file]) {
$movie="있을때";
} else {
$movie="없을때";
}
?>
<script type="text/javascript" src="/flowplayer/examples/js/flashembed.min.js"></script>
          <div align="center">
 <script>
  flashembed("main_movie",
  {
  src:'/flowplayer/FlowPlayerClassic.swf',
  width: 580,
  height: 475
  },
 
  {config: {
  showVolumeSlider: false,
  showMuteVolumeButton: false,
  showMenu: false,
  controlsOverVideo: 'ease',
  controlBarBackgroundColor: -1,
  controlBarGloss: 'low' ,
  autoRewind: 'ture',
  loop: 'false',
  autoPlay: false,
  autoBuffering: true,
  initialScale: 'scale',
  videoFile: 'http://www.motiongraphiclab.com/data/file/<?=$bo_table?>/<?=$movie?>'
  }}
 );
 </script>

<div id="main_movie"></div>

</div>
<script type="text/javascript" src="/flowplayer/examples/js/flashembed.min.js"></script>
          <div align="center">
 <script>
  flashembed("main_movie",
  {
  src:'/flowplayer/FlowPlayerClassic.swf',
  width: 580,
  height: 475
  },
 
  {config: {
  showVolumeSlider: false,
  showMuteVolumeButton: false,
  showMenu: false,
  controlsOverVideo: 'ease',
  controlBarBackgroundColor: -1,
  controlBarGloss: 'low' ,
  autoRewind: 'ture',
  loop: 'false',
  autoPlay: false,
  autoBuffering: true,
  initialScale: 'scale',
  videoFile: 'http://www.motiongraphiclab.com/data/file/<?=$bo_table?>/<?=$movie?>'
  }}
 );
 </script>

<div id="main_movie"></div>

</div>

문구가 싹다 안보이게 하고 싶은데 그게 안되네요 ㅠㅠ
© SIRSOFT
현재 페이지 제일 처음으로