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

최근게시글에서 동영상 바로 출력하기 관련 질문 채택완료

해날 10년 전 조회 4,083
최근게시글 스킨 http://sir.co.kr/bbs/board.php?bo_table=g5_skin&wr_id=2102&sca=%EC%B5%9C%EC%8B%A0%EA%B8%80&sfl=wr_subject||wr_content&stx=x-gallery">http://sir.co.kr/bbs/board.php?bo_table=g5_skin&wr_id=2102&sca=%EC%B5%9C%EC%8B%A0%EA%B8%80&sfl=wr_subject||wr_content&stx=x-gallery 동영상게시판 스킨 http://sir.co.kr/bbs/board.php?bo_table=g5_skin&wr_id=2594&sca=&sfl=wr_subject||wr_content&stx=%EC%98%81%EC%83%81">http://sir.co.kr/bbs/board.php?bo_table=g5_skin&wr_id=2594&sca=&sfl=wr_subject||wr_content&stx=%EC%98%81%EC%83%81 를 사용하여 작업중인 샘플 http://ass3333.cafe24.com/">http://ass3333.cafe24.com/ 에서 썸네일의 윗제목을 누르면 곧바로 화면에 영상을 플레이 시키고 싶어서 시도중 안되서 고수님들의 의견 바랍니다. 저는 동영상게시판의 view스킨(view.skin.php) 에 나오는 동영상을 참고로 해서 최근게시글 스킨에서 레이어팝업으로 동영상을 띄워주는 부분에 접목하여 작업을 해보았는데 지식도 짧고 내공도 없어서 해메는 중입니다. 누가 아시면 조언좀 부탁드립니다. [게시판의 view스킨], [최근게시글스킨]은 다음과 같습니다. ----------------------------------- view.skin.php [게시판의 view스킨] ', 0); ?>
   
       

                   

   
   
       

페이지 정보

        작성자         작성일         조회         댓글    
               
       

첨부파일

           
                                    
                                       
               
  • 수정
  •            
  • 삭제
  •            
  • 복사
  •            
  • 이동
  •            
  • 검색
  •            
  • 목록
  •            
  • 답변
  •            
  • 글쓰기
  •        
           
       
       

본문

        \n";             // 첫번째 이미지 출력안함 $i=0 --> $i=1             for ($i=1; $i<=count($view['file']); $i++) {                 if ($view['file'][$i]['view']) {                     //echo $view['file'][$i]['view'];                     echo get_view_thumbnail($view['file'][$i]['view']);                 }             }             echo "
\n";         }          ?>
               
                       

                       
            스크랩                                         추천                                                                                 비추천                                                 
               
            추천             비추천        
                                   
           
   
댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
10년 전

</span><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);">​</span></p><p><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);"><iframe width="<?php echo $v_width?>" height="<?php echo $v_height?>" src="</span><a href="<a href="http://www.youtube.com/embed/%3C?php" target="_blank" rel="noopener noreferrer">http://www.youtube.com/embed/%3C?php</a>" target="_blank" style="color: rgb(0, 0, 0); font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);"></a><a href="<a href="http://www.youtube.com/embed/%3C?php" target="_blank" rel="noopener noreferrer">http://www.youtube.com/embed/%3C?php</a>" target="_blank" style="color: rgb(0, 0, 0); font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);"><a href="http://www.youtube.com/embed/<?php" target="_blank" rel="noopener noreferrer">http://www.youtube.com/embed/<?php</a></a><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);"> echo $view[wr_1]?>?feature=player_embedded</span><font face="gulim, helvetica" style="font-size: 10pt; line-height: 1.5;"><span style="font-size: 13.0799999237061px; line-height: 23.5440006256104px;">&autoplay=1</span></font><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);">​</span><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);">" frameborder="0" allowfullscreen></iframe></span></p><p><span style="font-size: 10pt; line-height: 1.5;">​</span></p><p><span style="font-size: 10pt; line-height: 1.5;"> </span></p><p><span style="font-size: 10pt; line-height: 1.5;"></span></p><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);"><iframe src="//player.vimeo.com/video/<?php echo $view[wr_2]?></span><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px;">&autoplay=1</span><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);">" width="<?php echo $v_width?>" height="<?php echo $v_height?>" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></span><p><span style="font-family: gulim, helvetica; font-size: 13.0799999237061px; line-height: 23.5440006256104px; background-color: rgb(255, 255, 255);">

 

위에가 유튜브 아래가 비메오 입니다

&autoplay=1

이것만 붙여주시면되요​

로그인 후 평가할 수 있습니다

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

10년 전
로그인 후 평가할 수 있습니다

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

10년 전

질문수정해서 다시올립니다.

다시 정리하자면 소스코드는 위와 같은데

 

빨간색 글씨를 눌렀을때 페이지가 안바뀌고 그자리에서 동영상을 실행시키려한다는 겁니다. ㅎㅎ 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

목장주
10년 전
function Video_Move(wr_2){
var url="<iframe src='http://player.vimeo.com/video/"+wr_2+"?autoplay=1' width='1000' height='562' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
$("#glayLayer").show();
$("#overLayer").show().html(url);
}


<a href="#" onclick="Video_Move('<?=$list[$i]['wr_2']?>')" class="btn"><?php echo cut_str($list[$i]['subject'], 20, "..") ?></a>

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

답변을 작성하려면 로그인이 필요합니다.

로그인