유투브 동영상 노출 시 자동 실행 또는 자동 종료 소스입니다.
유튜브 동영상 레이어 팝업에 넣은 후 자스로 제어하기
유투브 동영상 버튼 클릭 시 레이어 뜨면서 자동실행
또는 종료버튼 클릭 시 자동으로 종료하는 소스 입니다.
유튜브 동영상은 유튜브 주소에 autoplay=1을 하면 유튜브 동영상 노출 시 자동으로 동영상이 실행 되고
autoplay=0 하면 동영상 노출 시 동영상이 실행 되지 않는 것을 이용하여
레이어 팝업이 노출 되면 동영상 실행
레이어 팝업이 없어지면 동영상을 종료 하게 했습니다.
<div id="Ulayer" style="width:560px;height:335px;visibility:hidden;position:absolute;left:200px;top:400px;">
<span style="float:right;width:100px;height:20px;width:560px;text-align:right;padding-right:10px;font-weight:600;"><a href="javascript:;" onClick="UMOVEClose()">[닫기]</a></span>
<object width="560" height="315"><param id="umove1" name="movie" value="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed id="umove2" src="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
style일 때문에 복잡해 보이지만 유튜브 소스는 object로 시작하는 부분이죠.
아래는 자스 소스에요
function UMOVE(){
document.getElementById("Ulayer").style.visibility = "visible";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
}
function UMOVEClose(){
document.getElementById("Ulayer").style.visibility = "hidden";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
}
아이프레임에 src 부분을 새로 넣어 줌으로
유투브 동영상을 시작과 종료를 할 수 있어요
유투브 동영상 버튼 클릭 시 레이어 뜨면서 자동실행
또는 종료버튼 클릭 시 자동으로 종료하는 소스 입니다.
유튜브 동영상은 유튜브 주소에 autoplay=1을 하면 유튜브 동영상 노출 시 자동으로 동영상이 실행 되고
autoplay=0 하면 동영상 노출 시 동영상이 실행 되지 않는 것을 이용하여
레이어 팝업이 노출 되면 동영상 실행
레이어 팝업이 없어지면 동영상을 종료 하게 했습니다.
<div id="Ulayer" style="width:560px;height:335px;visibility:hidden;position:absolute;left:200px;top:400px;">
<span style="float:right;width:100px;height:20px;width:560px;text-align:right;padding-right:10px;font-weight:600;"><a href="javascript:;" onClick="UMOVEClose()">[닫기]</a></span>
<object width="560" height="315"><param id="umove1" name="movie" value="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed id="umove2" src="//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
style일 때문에 복잡해 보이지만 유튜브 소스는 object로 시작하는 부분이죠.
아래는 자스 소스에요
function UMOVE(){
document.getElementById("Ulayer").style.visibility = "visible";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=1";
}
function UMOVEClose(){
document.getElementById("Ulayer").style.visibility = "hidden";
document.getElementById("umove2").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
document.getElementById("umove1").src = "//www.youtube.com/v/djkElboUs1I?version=3&hl=ko_KR&autoplay=0";
}
아이프레임에 src 부분을 새로 넣어 줌으로
유투브 동영상을 시작과 종료를 할 수 있어요
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 442 | ||
| 7929 | 9년 전 | 376 | ||
| 7928 | 9년 전 | 461 | ||
| 7927 | 9년 전 | 373 | ||
| 7926 | 9년 전 | 680 | ||
| 7925 | 9년 전 | 395 | ||
| 7924 | 9년 전 | 378 | ||
| 7923 | 9년 전 | 373 | ||
| 7922 | 9년 전 | 407 | ||
| 7921 | 9년 전 | 421 | ||
| 7920 | 9년 전 | 340 | ||
| 7919 | 9년 전 | 349 | ||
| 7918 | 9년 전 | 502 | ||
| 7917 | 9년 전 | 353 | ||
| 7916 | 9년 전 | 440 | ||
| 7915 | 9년 전 | 443 | ||
| 7914 | 9년 전 | 454 | ||
| 7913 | 9년 전 | 627 | ||
| 7912 | 9년 전 | 460 | ||
| 7911 | 9년 전 | 392 | ||
| 7910 | 9년 전 | 438 | ||
| 7909 | 9년 전 | 540 | ||
| 7908 | 9년 전 | 481 | ||
| 7907 | 9년 전 | 419 | ||
| 7906 | 9년 전 | 439 | ||
| 7905 | 9년 전 | 406 | ||
| 7904 | 9년 전 | 392 | ||
| 7903 | 9년 전 | 389 | ||
| 7902 | 9년 전 | 587 | ||
| 7901 |
|
9년 전 | 764 | |
| 7900 | 9년 전 | 640 | ||
| 7899 | 9년 전 | 424 | ||
| 7898 | 9년 전 | 424 | ||
| 7897 | 9년 전 | 381 | ||
| 7896 | 9년 전 | 396 | ||
| 7895 | 9년 전 | 508 | ||
| 7894 | 9년 전 | 425 | ||
| 7893 | 9년 전 | 397 | ||
| 7892 | 9년 전 | 432 | ||
| 7891 | 9년 전 | 795 | ||
| 7890 | 9년 전 | 1225 | ||
| 7889 | 9년 전 | 762 | ||
| 7888 |
limsy1987
|
9년 전 | 573 | |
| 7887 | 9년 전 | 601 | ||
| 7886 | 9년 전 | 492 | ||
| 7885 | 9년 전 | 455 | ||
| 7884 | 9년 전 | 450 | ||
| 7883 | 9년 전 | 452 | ||
| 7882 | 9년 전 | 515 | ||
| 7881 | 9년 전 | 480 | ||
| 7880 | 9년 전 | 608 | ||
| 7879 | 9년 전 | 498 | ||
| 7878 | 9년 전 | 1269 | ||
| 7877 | 9년 전 | 795 | ||
| 7876 | 9년 전 | 531 | ||
| 7875 | 9년 전 | 606 | ||
| 7874 |
|
9년 전 | 825 | |
| 7873 | 9년 전 | 541 | ||
| 7872 | 9년 전 | 709 | ||
| 7871 | 9년 전 | 525 | ||
| 7870 | 9년 전 | 645 | ||
| 7869 | 9년 전 | 458 | ||
| 7868 | 9년 전 | 495 | ||
| 7867 | 9년 전 | 491 | ||
| 7866 | 9년 전 | 546 | ||
| 7865 | 9년 전 | 487 | ||
| 7864 | 9년 전 | 552 | ||
| 7863 | 9년 전 | 548 | ||
| 7862 | 9년 전 | 503 | ||
| 7861 | 9년 전 | 687 | ||
| 7860 | 9년 전 | 657 | ||
| 7859 | 9년 전 | 437 | ||
| 7858 | 9년 전 | 740 | ||
| 7857 | 9년 전 | 1127 | ||
| 7856 | 9년 전 | 558 | ||
| 7855 | 9년 전 | 787 | ||
| 7854 | 9년 전 | 743 | ||
| 7853 | 9년 전 | 634 | ||
| 7852 | 9년 전 | 556 | ||
| 7851 | 9년 전 | 544 | ||
| 7850 | 9년 전 | 626 | ||
| 7849 | 9년 전 | 390 | ||
| 7848 | 9년 전 | 460 | ||
| 7847 | 9년 전 | 701 | ||
| 7846 | 9년 전 | 491 | ||
| 7845 | 9년 전 | 460 | ||
| 7844 | 9년 전 | 430 | ||
| 7843 | 9년 전 | 469 | ||
| 7842 | 9년 전 | 445 | ||
| 7841 | 9년 전 | 422 | ||
| 7840 | 9년 전 | 433 | ||
| 7839 | 9년 전 | 477 | ||
| 7838 | 9년 전 | 541 | ||
| 7837 | 9년 전 | 381 | ||
| 7836 | 9년 전 | 434 | ||
| 7835 | 9년 전 | 510 | ||
| 7834 |
|
10년 전 | 1220 | |
| 7833 | 10년 전 | 478 | ||
| 7832 | 10년 전 | 455 | ||
| 7831 | 10년 전 | 613 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기