유튜브 아이프레임 적용안되는 사이트에 소스 넣는 방법

Profile
hyogle
재생하기

(1) 유튜브 페이지에서 퍼가기를 누르면, 기본적으로 iframe 소스코드를 생성해주는데요.

 

소스생성 예제 : 

 

<iframe width="560" height="315" src="https://www.youtube.com/embed/NjuNP63okdM?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

 

 

 

(2) 카페24빌더에서는 보안상 이유로 iframe 사용을 막아놓았기 때문에,

 

위에서 빨간색으로 표기한 www.youtube.com/embed/NjuNP63okdM?rel=0 을 그대로 복사해서

 

아래 소스의 파란색 부분에 대체해서 입력해주세요.

 

<DIV class=video-container style="TEXT-ALIGN: center"><object type="text/html" width="100%" height="500" data="//www.테스트.com" allowFullScreen></object> </DIV>

 

 

 

(3) 파란색 부분을 대체한 후의 소스는 아래와 같으며,

 

<DIV class=video-container style="TEXT-ALIGN: center"><object type="text/html" width="100%" height="500" data="//www.youtube.com/embed/NjuNP63okdM?rel=0" allowFullScreen></object> </DIV>

 

위의 소스를 html source 입력모드 상태에서 붙여넣기후 저장해주시면

Profile
hyogle Level. 28 74870/75690

^^

댓글
0
Profile

로그인

모바일로 접속하세요.
서버에 요청 중입니다. 잠시만 기다려 주십시오...